Description Usage Arguments Value Author(s) See Also Examples
Gets depth of coverage for each exon across all samples from whole exome sequencing files.
1 | getcoverage(bambedObj, mapqthres)
|
bambedObj |
Object returned from |
mapqthres |
Mapping quality threshold hold of reads. |
Y |
Read depth matrix |
readlength |
Vector of read length for each sample |
Yuchao Jiang yuchaoj@wharton.upenn.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(WES.1KG.WUGSC)
dirPath <- system.file("extdata", package = "WES.1KG.WUGSC")
bamFile <- list.files(dirPath, pattern = '*.bam$')
bamdir <- file.path(dirPath, bamFile)
sampnameFile <- file.path(dirPath, "sampname")
sampname <- as.matrix(read.table(sampnameFile))
chr <- 22
bambedObj <- getbambed(bamdir = bamdir, bedFile = file.path(dirPath,
"chr22_400_to_500.bed"), sampname = sampname,
projectname = "CODEX_demo", chr)
bamdir <- bambedObj$bamdir
sampname <- bambedObj$sampname
ref <- bambedObj$ref
projectname <- bambedObj$projectname
chr <- bambedObj$chr
coverageObj <- getcoverage(bambedObj, mapqthres = 20)
Y <- coverageObj$Y
readlength <- coverageObj$readlength
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.