Description Usage Arguments Value Examples
This function is used to validate whether the missense variants are consistent with the fasta sequences of the proteins
1 | validateVariants(df, fasta, nodeN = 1)
|
df |
A data.frame or data.table containing minimally the following columns: 1. uniprotAccession 2. wtAA (wild-type amino acid) 3. pos (the position of the wild-type amino acid in the protein sequence) |
fasta |
AAStringSet object of protein sequences, in which names of the list items should correspond to the uniprotAccession column of the 'df' input |
nodeN |
Number of cores to use to parallelise the run |
A data.frame consisting of the input data.frame and two additional columns for 1. mappedResidue (the actual residue at the variant position) 2. validity (boolean TRUE/FALSE) showing if the mapped residue matches the wild-type residue in the corresponding variant.
1 2 3 4 | glutFastaFile <- system.file("extdata", "glut.fasta", package = 'slimR')
glutFasta <- Biostrings::readAAStringSet(glutFastaFile)
data("glutMutations")
val <- validateVariants(df = glutMutations[1:10,], fasta = glutFasta, nodeN = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.