ExperimentalDesign#

class pyopenms.ExperimentalDesign#

Bases: object

Representation 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__()

fromConsensusMap(c)

Extract experimental design from consensus map

fromFeatureMap(f)

Extract experimental design from feature map

fromIdentifications(proteins)

Extract experimental design from identifications

getMSFileSection()

Returns the MS file section

getNumberOfFractionGroups()

Allows to group fraction ids and source files.

getNumberOfFractions()

Returns the number of fractions (= highest fraction index)

getNumberOfLabels()

Returns the number of labels per file

getNumberOfMSFiles()

Returns the number of MS files (= fractions * fraction_groups)

getNumberOfSamples()

Returns the number of samples measured (= highest sample index)

getSample(fraction_group[, label])

Returns sample index (depends on fraction_group and label)

getSampleSection()

Returns the sample section

isFractionated()

Returns whether at least one fraction_group in this experimental design is fractionated

sameNrOfMSFilesPerFraction()

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