CollectAlignmentSummaryMetrics | R Documentation |
Produces a summary of alignment metrics from a SAM or BAM file with picard.
CollectAlignmentSummaryMetrics(inBams, fastaFn,
metricLevel = c("ALL_READS", "SAMPLE",
"LIBRARY", "READ_GROUP"),
mc.cores=ezThreads())
inBams |
|
fastaFn |
|
metricLevel |
|
mc.cores |
|
This function relies on the picard tools's CollectAlignmentSummaryMetrics. By default, it computes the metric on all reads of the bam file. When read group tag is used, it's recommended to summarise over “SAMPLE”, “LIBRARY” or “READ_GROUP”.
A data.frame
of metrics.
Ge Tan
http://broadinstitute.github.io/picard/picard-metric-definitions.html#AlignmentSummaryMetrics
## Not run:
inBam <- "/srv/gstore/projects/p2497/SCCountsApp_24762_2018-02-20--21-32-42/20171222.A-SiCSeq_SCs_P5.bam"
fastaFn <- "/srv/GT/reference/Mus_musculus/Ensembl/GRCm38.p5/Sequence/WholeGenomeFasta/genome.fa"
metricLevel <- "SAMPLE"
CollectAlignmentSummaryMetrics(inBam, fastaFn, metricLevel)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.