Coder Social home page Coder Social logo

r_udf's Introduction

Deprecated

Will be merged into oncofunco package:

https://github.com/oncogenetics/oncofunco

R functions

1. SampleLocation

DNA selection from plates...

2. GeneSymbol

Collapse transcripts into gene symbols. Output is a Granges object for defined region in a chromosome.

Required packages:

require(dplyr)
require(GenomicFeatures)
require(TxDb.Hsapiens.UCSC.hg19.knownGene)
require(org.Hs.eg.db)

Example 1:

Get all genes for chr17

allGenesChr17 <- GeneSymbol(chrom = "chr17")
# Define region of interest - ROI
roi <- GRanges(seqnames="chr17",
               IRanges(start=41150000,
               end=41300000,
               names="myRegion"))
# Plot using ggbio - geom_alignment
ggplot(subsetByOverlaps(allGenesChr17,roi)) + 
  geom_alignment(aes(group=gene_id,fill=strand,col=strand))

Example 2:

Get all genes for chr17:41150000,41300000

subsetGenesChr17 <- GeneSymbol("chr17",41150000,41300000)
ggplot(subsetGenesChr17) + 
 geom_alignment(aes(group=gene_id,fill=strand,col=strand))

Plot output for Example 1 and 2

GeneSymbols_chr17_41150000_41300000

3. SNPProductRisk

Calculate Odds ratio weighted SNP risk... In progress...

r_udf's People

Contributors

zx8754 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.