View source: R/scan_spike_contigs.R
scan_spike_contigs | R Documentation |
default workflow is
scan_spike_contigs(bam, spike, how = "max", param = NULL, mc.cores = 16, ...)
bam |
the BAM or CRAM filename, or a vector of such filenames |
spike |
the spike-in reference database (e.g. data(spike)) |
how |
how to summarize the per-spike coverage (max) |
param |
a ScanBamParam object, or NULL (will default to MAPQ=20 etc) |
mc.cores |
Number of cores to run on (default 16) |
... |
additional arguments to pass to scanBamFlag() |
scan spike contigs and count fragments per contig or per bin.
fit the appropriate model for adjusting genomic contigs based on spikes.
scan and adjust binned fragment tallies along genomic contigs per above.
scan_spike_contigs implements step 1.
If multiple BAM or CRAM filenames are provided, all indices will be checked before attempting to run through any of the files.
a CompressedGRangesList with bin- and spike-level coverage
Rsamtools::ScanBamParam
library(GenomicRanges) data(spike, package="spiky") sb <- system.file("extdata", "example.spike.bam", package="spiky", mustWork=TRUE) # switch to a CRAM res <- scan_spike_contigs(sb, spike=spike) # use default ScanBamParam summary(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.