View source: R/checkMotifSyntax.R
checkMotifSyntax | R Documentation |
Checks if motif syntax is valid.
checkMotifSyntax(motif, filename)
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. |
filename |
The full file path of the user specified dataset if the user wishes to use their own file, or the pre-bundled Solberg dataset. User provided datasets must be a .dat, .txt, or.csv file, and must conform to the structure and format of the Solberg dataset. |
TRUE if the motif syntax is valid. Otherwise, a vector containing FALSE and an error message is returned.
For internal SSHAARP use only.
#Example with correct motif syntax where user specified dataset is the Solberg dataset
checkMotifSyntax("DRB1*26F~28E~30Y", filename=SSHAARP::solberg_dataset)
#Example with incorrect motif syntax where user specified dataset is the Solberg dataset
checkMotifSyntax("DRB1****26F~28E", filename=SSHAARP::solberg_dataset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.