public class SAMUtils
public static java.lang.String[] getVariants(java.lang.String inputLine)
Parses an input line from a SAM file to determine all variants.
inputLine - A line from a SAM file.public static kotlin.Array[] adjustCoordinates(java.lang.String cigarString,
int startCoordinate)
Uses a CIGAR code and the start coordinate of a BWA alignment to find the corresponding end coordinate. Adjusts start coordinate if beginning of alignment was soft clipped.
cigarString - startCoordinate - public static long endCoordinate(java.lang.String cigarString,
long startCoordinate)
Uses a CIGAR code and the start coordinate of a BWA alignment to find the corresponding end coordinate.
cigarString - startCoordinate - public static java.lang.String[] parseCIGAR(java.lang.String cigarString,
java.lang.String tagSequence)
Searches a CIGAR string for insertions in the reference sequence.
cigarString - The text of the CIGAR string.tagSequence - The sequence of the CIGAR string's corresponding tag.public static java.lang.String[] parseMDField(java.lang.String mdField,
java.lang.String tagSequence)
Decodes the MD: field in a SAM file to determine the location of polymorphisms and whether they are mismatches or deletions from the reference sequence.
mdField - The text of the MD: field, NOT including the MD:Z: prefix!tagSequence - The sequence of the tag corresponding to mdField.