Description Usage Arguments Value Examples
View source: R/motifAnalysis.R
Find out which SLiMs are gained or lost (no longer matching the regex pattern) via point amino acid substitutions in protein sequences
1 | findMotifChanges(sequence, variants, motifRegex = slimR::motifRegex)
|
sequence |
A character string of amino acid sequence |
variants |
A data.frame consisting of minimum four columns: 1.uniprotAccession, 2.wtAA, 3.mutAA, 4.pos where pos is the mutation position in the sequence, wtAA is the wild-type amino acid (one letter code) in the sequence and mutAA is the mutant amino acid (one letter code). |
motifRegex |
List of slim regular expressions. By default, the built-in slimR::motifRegex from the ELM database is used. |
data.table data.frame object
1 2 3 4 5 6 | glutFastaFile <- system.file("extdata", "glut.fasta", package = 'slimR')
glutFasta <- Biostrings::readAAStringSet(glutFastaFile)
variants <- data.frame('uniprotAccession' = 'P11166', 'pos' = 485, 'wtAA' = 'P', 'mutAA' = 'L')
findMotifChanges(paste(glutFasta), variants, slimR::motifRegex)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.