Description Usage Arguments Value Examples
Get read counts for a list of BAM files and given count windows
1 | countBamListInGRanges(bam.files, countWindows, read.width = 150, ...)
|
bam.files |
list with absolute or relative paths to BAM files |
countWindows |
data.frame with contents of a BED file as returned by getWindows |
read.width |
read.width parameter for countBamInGRanges or FALSE if actual read width should be extracted from BAM file |
... |
additional parameters |
a GRanges object over the countWindows with read counts for each sample as elementMetadata
1 2 3 4 5 6 7 8 | bed <- system.file("extdata/Genes_part.bed", package = "panelcn.mops")
countWindows <- getWindows(bed)
## Not run:
testbam <- "SAMPLE1.bam"
test <- countBamListInGRanges(countWindows = countWindows,
bam.files = testbam, read.width = 150)
## End(Not run)
|
Loading required package: cn.mops
Loading required package: parallel
Loading required package: GenomicRanges
Loading required package: stats4
Loading required package: BiocGenerics
Attaching package: ‘BiocGenerics’
The following objects are masked from ‘package:parallel’:
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from ‘package:stats’:
IQR, mad, sd, var, xtabs
The following objects are masked from ‘package:base’:
anyDuplicated, append, as.data.frame, basename, cbind, colnames,
dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which.max, which.min
Loading required package: S4Vectors
Attaching package: ‘S4Vectors’
The following object is masked from ‘package:base’:
expand.grid
Loading required package: IRanges
Loading required package: GenomeInfoDb
Attaching package: ‘cn.mops’
The following object is masked from ‘package:S4Vectors’:
params
naming without chr prefix chosen, but BED contains chr -> removing chr
Processing SAMPLE1.bam ... 1 / 1
No index file (.bai) found for BAM fileSAMPLE1.bam. RCs cannot be calculated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.