Description Usage Arguments Value Author(s) See Also Examples
Calculates fraction of target bases covered by at least k reads
1 |
coverageTarget |
|
k |
integer vector of |
Named vector of same length as k
giving the corresponding fractions of target bases
achieving coverages >= k
Manuela Hummel m.hummel@dkfz.de
coverage.target
, coverage.hist
, coverage.uniformity
,
coverage.plot
, coverage.targetlength.plot
1 2 3 4 5 6 7 8 9 10 11 | ## get reads and targets
exptPath <- system.file("extdata", package="TEQC")
readsfile <- file.path(exptPath, "ExampleSet_Reads.bed")
reads <- get.reads(readsfile, idcol=4, skip=0)
targetsfile <- file.path(exptPath, "ExampleSet_Targets.bed")
targets <- get.targets(targetsfile, skip=0)
## calculate per-base coverages
Coverage <- coverage.target(reads, targets, perBase=TRUE)
covered.k(Coverage$coverageTarget, k=c(1,10,20))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.