getBowtie2AlignMetrics | R Documentation |
Gets the reads counts for all the various alignment success categories from the (stderr) output of Bowtie2.
getBowtie2AlignMetrics(metricsFile, bowtieTiming = NULL, verbose = TRUE)
metricsFile |
the filename to receive all Bowtie2 output that got send to |
bowtieTiming |
a list of 2 |
Since the call to Bowtie2 is a pipe sending its output to samtools, the final
summary counts that Bowtie2 reports get saved to a text file that captures stderr
. This function
extracts those counts and returns them to the R session that called Bowtie2.
A list of numeric read counts (not the number of alignments).
RawReads |
the count of reads in the input FASTQ file. |
UniqueReads |
the count of reads that aligned exactly once. |
MultiReads |
the count of reads that aligned >1 times. |
NoHitReads |
the count of reads that failed to aligned. |
Time |
the elapsed time of the call to Bowtie, as a
|
Dependant on the Bowtie2 version for successful parsing of Bowtie's count output. No rigorous testing for any runtime errors is done.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.