ExperimentalDesign#
- class pyopenms.ExperimentalDesign#
Bases:
objectRepresentation of an experimental design in OpenMS. Instances can be loaded with the ExperimentalDesignFile class
- __init__() None#
- __init__(arg: pyopenms.ExperimentalDesign, /) None
- __init__(arg0: collections.abc.Sequence[pyopenms.ExperimentalDesign_MSFileSectionEntry], arg1: pyopenms.ExperimentalDesign_SampleSection, /) None
Methods
__init__()Extract experimental design from consensus map
Extract experimental design from feature map
fromIdentifications(proteins)Extract experimental design from identifications
Returns the MS file section
Allows to group fraction ids and source files.
Returns the number of fractions (= highest fraction index)
Returns the number of labels per file
Returns the number of MS files (= fractions * fraction_groups)
Returns the number of samples measured (= highest sample index)
getSample(fraction_group[, label])Returns sample index (depends on fraction_group and label)
Returns the sample section
Returns whether at least one fraction_group in this experimental design is fractionated
Returns if each fraction number is associated with the same number of fraction_group
setMSFileSection(msfile_section)Sets the MS file section
setSampleSection(sample_section)Sets the sample section
- static fromConsensusMap(c: pyopenms.ConsensusMap) pyopenms.ExperimentalDesign#
Extract experimental design from consensus map
- static fromFeatureMap(f: pyopenms.FeatureMap) pyopenms.ExperimentalDesign#
Extract experimental design from feature map
- static fromIdentifications(proteins: collections.abc.Sequence[pyopenms.ProteinIdentification]) pyopenms.ExperimentalDesign#
Extract experimental design from identifications
- getMSFileSection() list[pyopenms.ExperimentalDesign_MSFileSectionEntry]#
Returns the MS file section
- getNumberOfFractionGroups() int#
Allows to group fraction ids and source files. Return the number of fraction_groups
- getNumberOfFractions() int#
Returns the number of fractions (= highest fraction index)
- getNumberOfLabels() int#
Returns the number of labels per file
- getNumberOfMSFiles() int#
Returns the number of MS files (= fractions * fraction_groups)
- getNumberOfSamples() int#
Returns the number of samples measured (= highest sample index)
- getSample(fraction_group: int, label: int = 1) int#
Returns sample index (depends on fraction_group and label)
- getSampleSection() pyopenms.ExperimentalDesign_SampleSection#
Returns the sample section
- isFractionated() bool#
Returns whether at least one fraction_group in this experimental design is fractionated
- sameNrOfMSFilesPerFraction() bool#
Returns if each fraction number is associated with the same number of fraction_group
- setMSFileSection(msfile_section: collections.abc.Sequence[pyopenms.ExperimentalDesign_MSFileSectionEntry]) None#
Sets the MS file section
- setSampleSection(sample_section: pyopenms.ExperimentalDesign_SampleSection) None#
Sets the sample section