Description Usage Arguments Value Examples
View source: R/remove_nonstandard_aa.R
This function removes anything that is not one of the 20 standard amino acids in protein sequences
1 |
df |
A dataframe which contains protein sequence names as the first column and amino acid sequence as the second column |
a dataframe like the input dataframe but with removed proteins that contained non standard amino acids
1 2 3 4 5 6 7 8 9 10 | non_standard_df <- readRDS(system.file("extdata/non_standard_df.rds", package = "ampir"))
# non_standard_df
# seq_name seq_aa
# [1] G1P6H5_MYOLU MALTVRIQAACLLLLLLASLTSYSLLLSQTTQLADLQTQ....
# [2] fake_sequence MKVTHEUSYR$GXMBIJIDG*M80-%
remove_nonstandard_aa(non_standard_df)
# seq_name seq_aa
# [1] G1P6H5_MYOLU MALTVRIQAACLLLLLLASLTSYSLLLSQTTQLADLQTQ....
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.