View source: R/assign_peptide_type.R
| assign_peptide_type | R Documentation |
Based on preceding and C-terminal amino acid, the peptide type of a given peptide is assigned. Peptides with preceeding and C-terminal lysine or arginine are considered fully-tryptic. If a peptide is located at the N- or C-terminus of a protein and fulfills the criterium to be fully-tryptic otherwise, it is also considered as fully-tryptic. Peptides that only fulfill the criterium on one terminus are semi-tryptic peptides. Lastly, peptides that are not fulfilling the criteria for both termini are non-tryptic peptides. In addition, peptides that miss the initial Methionine of a protein are considered "tryptic" at that site if there is no other peptide starting at position 1 for that protein.
assign_peptide_type(
data,
aa_before = aa_before,
last_aa = last_aa,
aa_after = aa_after,
protein_id = NULL,
start = start
)
data |
a data frame containing at least information about the preceding and C-terminal amino acids of peptides. |
aa_before |
a character column in the |
last_aa |
a character column in the |
aa_after |
a character column in the |
protein_id |
a character column in the |
start |
a numeric column in the |
A data frame that contains the input data and an additional column with the peptide type information.
data <- data.frame(
aa_before = c("K", "M", "", "M", "S", "M", "-"),
last_aa = c("R", "K", "R", "R", "Y", "K", "K"),
aa_after = c("T", "R", "T", "R", "T", "R", "T"),
protein_id = c("P1", "P1", "P3", "P3", "P2", "P2", "P2"),
start = c(38, 2, 1, 2, 10, 2, 1)
)
assign_peptide_type(data, aa_before, last_aa, aa_after, protein_id, start)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.