View source: R/scan_spike_counts.R
scan_spike_counts | R Documentation |
Typically one will want to fit a correction model to multiple samples. This function eases this task by merging the output of spike_counts into a data.frame that model_glm_pmol can directly fit.
scan_spike_counts(files, spike, methylated = 1, sep = "_")
files |
a vector of BAM/CRAM file names |
spike |
a spike-in database |
methylated |
a logical (0/1) to include only methylated fragments |
sep |
the separator for spike-in contig names ("_") |
a data.frame with columns "frag_grp", "id", and "read_count"
data(spike) library(GenomicRanges) sb <- system.file("extdata", "example.spike.bam", package="spiky", mustWork=TRUE) scan_spike_counts(sb, spike=spike) fit <- model_glm_pmol(scan_spike_counts(sb, spike=spike),spike=spike)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.