View source: R/read_substitutions.R
read_substitutions | R Documentation |
This function reads a file with amino acid substitutions. The format of should be the same one as requested by the web version of Align-GVGD.
read_substitutions( file = stop("`file` must be specified"), amino_acid_code = c("one_letter", "three_letter") )
file |
The path to a file with amino acid substitutions. |
amino_acid_code |
The type of symbol used for amino acids in the returned output. |
A tibble listing the amino acids substitutions.
# "sub.txt" is an example file containing missense substitutions formatted # according to the requirements indicated in http://agvgd.hci.utah.edu/help.php. my_file <- system.file("extdata", "sub.txt", package = "agvgd") cat(readLines(my_file), sep = "\n") read_substitutions(file = my_file) # lee2010_sub.txt is a file containing the missense variants studied by # Lee et al. (2010): https://doi.org/10.1158/0008-5472.CAN-09-4563. read_substitutions(file = system.file("extdata", "lee2010_sub.txt", package = "agvgd"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.