PEFFEntry#

class pyopenms.PEFFEntry#

Bases: object

Represents a single entry in a PEFF file with all annotations.

Each entry corresponds to one description line and sequence. The description line format is: >Prefix:DbUniqueId \key=value …

Attributes:

prefix: Database prefix from description line identifier: Protein identifier (Prefix:DbUniqueId) sequence: Amino acid sequence protein_names: List of protein names gene_name: Gene name ncbi_tax_id: NCBI taxonomy ID taxonomy_name: Taxonomy name sequence_length: Sequence length modifications: List of modifications simple_variants: List of simple variants complex_variants: List of complex variants processed_regions: List of processed regions proteoforms: List of proteoforms in ProForma notation

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

Methods

__init__()

digestWithVariants(digestor[, min_length, ...])

Digest with variants.

fromFASTAEntry(fasta)

generatePeptides(digestor[, fixed_mods, ...])

Generate peptides with PEFF annotations.

getModifiedSequence()

Get an AASequence with all annotated modifications applied.

getProcessedSequence(region_accession)

Get processed sequence (e.g., mature protein without signal peptide).

getSequence()

Get the base AASequence for this entry (unmodified sequence)

getVariantSequences(include_complex)

Get all variant sequences (each variant applied individually).

toFASTAEntry()

Convert to a FASTAEntry (loses PEFF-specific annotations)

Attributes

alt_accessions

complex_variants

(self) -> list[OpenMS::PEFFVariantComplex]

custom_annotations

db_unique_id

disulfide_bonds

entry_id

entry_version

gene_name

identifier

modifications

(self) -> list[OpenMS::PEFFModification]

ncbi_tax_id

prefix

processed_regions

(self) -> list[OpenMS::PEFFProcessedRegion]

protein_existence

protein_names

proteoforms

sequence

sequence_length

sequence_version

simple_variants

(self) -> list[OpenMS::PEFFVariantSimple]

taxonomy_name

property alt_accessions: list[str]#
property complex_variants: list[pyopenms.PEFFVariantComplex]#

(self) -> list[OpenMS::PEFFVariantComplex]

property custom_annotations: dict[str, str]#
property db_unique_id: str#
digestWithVariants(digestor: pyopenms.ProteaseDigestion, min_length: int = 6, max_length: int = 40, include_reference: bool = True, include_variants: bool = True, include_modifications: bool = False) → tuple#

Digest with variants. Returns (descriptions, sequences)

property disulfide_bonds: list[pyopenms.PEFFDisulfideBond]#
property entry_id: str#
property entry_version: str#
static fromFASTAEntry(fasta: pyopenms.FASTAEntry) → pyopenms.PEFFEntry#
property gene_name: str#
generatePeptides(digestor: pyopenms.ProteaseDigestion, fixed_mods: list[str] = [], variable_mods: list[str] = [], max_variable_mods_per_peptide: int = 2, min_length: int = 6, max_length: int = 40, include_reference: bool = True, include_peff_variants: bool = True, include_peff_modifications: bool = True) → tuple#

Generate peptides with PEFF annotations. Returns (descriptions, sequences)

getModifiedSequence() → pyopenms.AASequence#

Get an AASequence with all annotated modifications applied. Modifications with unknown positions (position == 0) or that cannot be resolved are skipped.

getProcessedSequence(region_accession: str) → pyopenms.AASequence#

Get processed sequence (e.g., mature protein without signal peptide).

Parameters:

region_accession – PEFF CV accession of the region type (e.g., “PEFF:0001021” for signal peptide)

Returns:

Processed AASequence, or an empty AASequence if no region has this accession

getSequence() → pyopenms.AASequence#

Get the base AASequence for this entry (unmodified sequence)

getVariantSequences(include_complex: bool) → tuple[list[str], list[pyopenms.AASequence]]#

Get all variant sequences (each variant applied individually).

Parameters:

include_complex – If True, also include complex variants; otherwise only simple variants

Returns:

Tuple (descriptions, sequences) of variant descriptions and AASequences

property identifier: str#
property modifications: list[pyopenms.PEFFModification]#

(self) -> list[OpenMS::PEFFModification]

property ncbi_tax_id: int#
property prefix: str#
property processed_regions: list[pyopenms.PEFFProcessedRegion]#

(self) -> list[OpenMS::PEFFProcessedRegion]

property protein_existence: int#
property protein_names: list[str]#
property proteoforms: list[str]#
property sequence: str#
property sequence_length: int#
property sequence_version: str#
property simple_variants: list[pyopenms.PEFFVariantSimple]#

(self) -> list[OpenMS::PEFFVariantSimple]

property taxonomy_name: str#
toFASTAEntry() → pyopenms.FASTAEntry#

Convert to a FASTAEntry (loses PEFF-specific annotations)