Description Usage Arguments Value Author(s) Examples
Get read depths per gene as defined by the RSamtools pileup function.
1 | GetPileUpPerGene(BamFilePath, TopCDSDF, max_depth = 10000)
|
BamFilePath |
Location of aligned bam file. Corresponding bai index file must be in the same directory. |
TopCDSDF |
Data frame of CDS returned from select(Homo.sapiens). |
max_depth |
Parameter of the same name passed to Rsamtools pileup. Default value is 10000. |
A data.frame created via Rsamtools:pileup for each CDS region in TopCDSDF.
Nathaniel J. Madrid, Jason Byars
1 2 3 4 5 6 7 | BamFilePaths <- dir(path="/home/ubuntu/BamFiles", pattern=".*.bam$", full.names=T)
TopGenesDF <- data.frame(gene = c("NM_016824", "NM_019903", "NP_001112"))
cdsColumns <- c("CDSCHROM", "CDSSTART", "CDSEND", "CDSSTRAND", "SYMBOL")
TopCDSDF <- select(Homo.sapiens, keys=as.character(TopGenesDF$gene), columns=cdsColumns, keytype="REFSEQ")
TopCDSDF$CDSCHROM <- sub("chr", "", TopCDSDF$CDSCHROM)
TopCDSDF <- TopCDSDF[which(TopCDSDF$CDSCHROM %in% c(1:22, "X", "Y")), ]
PileUpPerFile <- lapply(BamFilePaths[1:3], function(f) GetPileUpPerGene(f, TopCDSDF))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.