DecoyGenerator#

class pyopenms.DecoyGenerator#

Bases: object

Methods to generate isobaric decoy sequences for DDA target-decoy searches

__init__() → None#
__init__(arg: pyopenms.DecoyGenerator, /) → None

Methods

__init__()

reversePeptides(protein, protease)

Reverses the protein's peptide sequences between enzymatic cutting positions

reverseProtein(protein)

Reverses the protein sequence

setSeed(seed)

shuffle(protein, protease[, decoy_factor])

Generate decoy protein sequences using shuffle algorithm.

shufflePeptides(aas, protease[, max_attempts])

Shuffle the protein's peptide sequences between enzymatic cutting positions.

reversePeptides(protein: pyopenms.AASequence, protease: str) → pyopenms.AASequence#

Reverses the protein’s peptide sequences between enzymatic cutting positions

reverseProtein(protein: pyopenms.AASequence) → pyopenms.AASequence#

Reverses the protein sequence

setSeed(seed: int) → None#
shuffle(protein: pyopenms.AASequence, protease: str, decoy_factor: int = 1) → list[pyopenms.AASequence]#

Generate decoy protein sequences using shuffle algorithm. Digests protein using specified protease and shuffles each peptide. For top-down proteomics use “no cleavage”. decoy_factor is the number of complete decoy proteins to generate. Returns vector of AASequence

shufflePeptides(aas: pyopenms.AASequence, protease: str, max_attempts: int = 100) → pyopenms.AASequence#

Shuffle the protein’s peptide sequences between enzymatic cutting positions. Each peptide is shuffled max_attempts times to minimize sequence identity