Description Usage Arguments Value Author(s)
Calculates all the mutated bases and the positions thereof from the information given about a single read. Produces either a data frame of those mutations, or a string detailing why no mutations were found in that specific read.
1 |
md |
String representing an MD tag of a specific read extracted from a BAM file. |
position |
Number representing the start position of the read (this is adjusted automatically if the read is hard clipped) |
cigar |
String representing the cigar string of the read, in the correct format. |
seq |
String representing the sequence of bases in the read (TCAG). |
operation |
Character representing a CIGAR string operation, either M, I, D, N, S, H, P, =, or X. |
Returns either a data frame or a string. If the read does not contain any mutations, returns the string "unmutated". If the read contains either an insertion or deletion in comparison to the reference genome, then this function returns the string "indel". If the read is mutated and does not contain any length differences, then this function returns a data frame with the columns *alt* and *position* which represent the alternative base, and at which position the SNV occurs.
L. Christine Schreiner
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.