FAIMSHelper#

class pyopenms.FAIMSHelper#

Bases: object

Helper functions for FAIMS data (compensation voltages, peptide ID filtering)

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

Methods

__init__()

filterPeptidesByFAIMSCV(peptides, target_cv)

Filters peptide identifications by FAIMS compensation voltage.

getCompensationVoltages(exp)

Returns the unique FAIMS compensation voltages (CVs) found across spectra of exp whose drift time unit is FAIMS_COMPENSATION_VOLTAGE.

static filterPeptidesByFAIMSCV(peptides: pyopenms.PeptideIdentificationList, target_cv: float, cv_tolerance: float = 0.01) → pyopenms.PeptideIdentificationList#

Filters peptide identifications by FAIMS compensation voltage. IDs without FAIMS_CV annotation are kept for backward compatibility.

static getCompensationVoltages(exp: pyopenms.MSExperiment) → set[float]#

Returns the unique FAIMS compensation voltages (CVs) found across spectra of exp whose drift time unit is FAIMS_COMPENSATION_VOLTAGE. Empty set if none.