Learn R Programming

peptoolkit (version 0.0.1)

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.

Examples

Run this code
# Generate a mock vector of peptide sequences
peptides <- c("AVILG", "VILGA", "ILGAV", "LGAVI")
# Apply the function to the mock data
reduce_sequences(peptides)

Run the code above in your browser using DataLab