checkMotif {SSHAARP} | R Documentation |
Checks input motif for errors in format and amino acid positions not present in the locus alignment.
checkMotif(motif)
motif |
An amino acid motif in the following format: Locus*##$~##$~##$, where ## identifies a peptide position, and $ identifies an amino acid residue. Motifs can include any number of amino acids. |
A warning message if the input motif is formatted incorrectly, or contains an amino acid position not present in the alignment. Otherwise, a list object with extracted locus information, a correctly formatted motif, and locus specific amino acid dataframe are returned. Note checkMotif() does not check amino acid variants in a specified motif; that is done by findMotif().
For internal SSHAARP use only.
#Example where a motif is formatted correctly
checkMotif("DRB1*26F~28E~30Y")
#Example where format is incorrect
checkMotif("DRB1**26F~28E~30Y")
#Example where an amino acid position does not exist
checkMotif("DRB1**26F~28E~300000Y")