InspectInfile#
- class pyopenms.InspectInfile#
Bases:
objectInspect input file adapter
- __init__() None#
- __init__(arg: pyopenms.InspectInfile, /) None
Methods
__init__()getBlind()Run inspect in a blind mode
getDb()Specifies the name of a database (.trie file) to search
Specifies the name of a enzyme.
If set to QTOF, uses a QTOF-derived fragmentation model, and does not attempt to correct the parent mass
The maximum modification size (in Da) to consider in a blind search
Returns the modifications
Number of PTMs permitted in a single peptide
If set to true, attempt to guess the precursor charge and mass, and consider multiple charge states if feasible
How far b and y peaks can be shifted from their expected masses.
Specifies the parent mass tolerance, in Daltons
Specifies a spectrum file to search
Number of tags to generate
handlePTMs(modification_line, ...)Retrieves the name, mass change, affected residues, type and position for all modifications from a string
setBlind(blind)Run inspect in a blind mode
setDb(db)Specifies the name of a database (.trie file) to search
setEnzyme(enzyme)Specifies the name of a enzyme.
setInstrument(instrument)If set to QTOF, uses a QTOF-derived fragmentation model, and does not attempt to correct the parent mass
setMaxPTMsize(maxptmsize)The maximum modification size (in Da) to consider in a blind search
Number of PTMs permitted in a single peptide
setMulticharge(multicharge)If set to true, attempt to guess the precursor charge and mass, and consider multiple charge states if feasible
setPeakMassTolerance(peak_mass_tolerance)How far b and y peaks can be shifted from their expected masses
Specifies the parent mass tolerance, in Daltons
setSpectra(spectra)Specifies a spectrum file to search
setTagCount(TagCount)Number of tags to generate
store(filename)Stores the experiment data in an Inspect input file that can be used as input for Inspect shell execution
- getBlind() int#
Run inspect in a blind mode
- getDb() str#
Specifies the name of a database (.trie file) to search
- getEnzyme() str#
Specifies the name of a enzyme. “Trypsin”, “None”, and “Chymotrypsin” are the available values
- getInstrument() str#
If set to QTOF, uses a QTOF-derived fragmentation model, and does not attempt to correct the parent mass
- getMaxPTMsize() float#
The maximum modification size (in Da) to consider in a blind search
- getModifications() dict[str, list[str]]#
Returns the modifications
- getModificationsPerPeptide() int#
Number of PTMs permitted in a single peptide
- getMulticharge() int#
If set to true, attempt to guess the precursor charge and mass, and consider multiple charge states if feasible
- getPeakMassTolerance() float#
How far b and y peaks can be shifted from their expected masses.
- getPrecursorMassTolerance() float#
Specifies the parent mass tolerance, in Daltons
- getSpectra() str#
Specifies a spectrum file to search
- getTagCount() int#
Number of tags to generate
- handlePTMs(modification_line: str, modifications_filename: str, monoisotopic: bool) None#
Retrieves the name, mass change, affected residues, type and position for all modifications from a string
- Parameters:
modification_line
modifications_filename
monoisotopic – if true, masses are considered to be monoisotopic
- Raises:
Exception: FileNotReadable if the modifications_filename could not be read
- Raises:
Exception: FileNotFound if modifications_filename could not be found
- Raises:
Exception: ParseError if modifications_filename could not be parsed
- setBlind(blind: int) None#
Run inspect in a blind mode
- setDb(db: str) None#
Specifies the name of a database (.trie file) to search
- setEnzyme(enzyme: str) None#
Specifies the name of a enzyme. “Trypsin”, “None”, and “Chymotrypsin” are the available values
- setInstrument(instrument: str) None#
If set to QTOF, uses a QTOF-derived fragmentation model, and does not attempt to correct the parent mass
- setMaxPTMsize(maxptmsize: float) None#
The maximum modification size (in Da) to consider in a blind search
- setModificationsPerPeptide(modifications_per_peptide: int) None#
Number of PTMs permitted in a single peptide
- setMulticharge(multicharge: int) None#
If set to true, attempt to guess the precursor charge and mass, and consider multiple charge states if feasible
- setPeakMassTolerance(peak_mass_tolerance: float) None#
How far b and y peaks can be shifted from their expected masses
- setPrecursorMassTolerance(precursor_mass_tolerance: float) None#
Specifies the parent mass tolerance, in Daltons
- setSpectra(spectra: str) None#
Specifies a spectrum file to search
- setTagCount(TagCount: int) None#
Number of tags to generate
- store(filename: str) None#
Stores the experiment data in an Inspect input file that can be used as input for Inspect shell execution