reduce_sequences: Reduce Peptide Sequences by One Residue
Description
This function takes a vector of peptide sequences and generates all possible
sequences by removing one amino acid residue at a time. It can also associate each
sequence with an ID, if provided.
Usage
reduce_sequences(peptides, id = NULL)
Value
A list of data frames, each containing all possible sequences resulting
from removing one amino acid from the original sequence.
Arguments
peptides
A character vector of peptide sequences.
id
A character vector of IDs that correspond to the peptides.
# Generate a mock vector of peptide sequencespeptides <- c("AVILG", "VILGA", "ILGAV", "LGAVI")
# Apply the function to the mock datareduce_sequences(peptides)