reduce_sequences {peptoolkit}R Documentation

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)

Arguments

peptides

A character vector of peptide sequences.

id

A character vector of IDs that correspond to the peptides.

Value

A list of data frames, each containing all possible sequences resulting from removing one amino acid from the original sequence.

Examples

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

[Package peptoolkit version 0.0.1 Index]