Description Usage Arguments Value Author(s) Examples
View source: R/get_coverage_scDNA.R
Get read coverage for each genomic bin across all single cells from scDNA-seq. Blacklist regions, such as segmental duplication regions and gaps near telomeres/centromeres will be masked prior to getting coverage.
1 | get_coverage_scDNA(bambedObj, mapqthres, seq, hgref = "hg19")
|
bambedObj |
object returned from |
mapqthres |
mapping quality threshold of reads |
seq |
the sequencing method to be used. This should be either 'paired-end' or 'single-end' |
hgref |
reference genome. This should be 'hg19', 'hg38' or 'mm10'.
Default is human genome |
Y |
Read depth matrix |
Rujin Wang rujin@email.unc.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(WGSmapp)
library(BSgenome.Hsapiens.UCSC.hg38)
bamfolder <- system.file('extdata', package = 'WGSmapp')
bamFile <- list.files(bamfolder, pattern = '*.dedup.bam$')
bamdir <- file.path(bamfolder, bamFile)
sampname_raw <- sapply(strsplit(bamFile, '.', fixed = TRUE), '[', 1)
bambedObj <- get_bam_bed(bamdir = bamdir,
sampname = sampname_raw,
hgref = "hg38")
# Getting raw read depth
coverageObj <- get_coverage_scDNA(bambedObj,
mapqthres = 40,
seq = 'paired-end',
hgref = "hg38")
Y_raw <- coverageObj$Y
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.