ExperimentalDesign_SampleSection#

class pyopenms.ExperimentalDesign_SampleSection#

Bases: object

OpenMS class ExperimentalDesign_SampleSection

__init__() → None#
__init__(arg0: collections.abc.Sequence[list[str]], arg1: dict[str, int], arg2: dict[str, int], /) → None
__init__(arg: pyopenms.ExperimentalDesign_SampleSection, /) → None

Methods

__init__()

getFactorValue(sample_name, factor)

Returns value of factor for given sample and factor name

getFactors()

Returns a set of all factors (column names) that were defined for the sample section

getSamples()

Returns a set of all samples that are present in the sample section

hasFactor(factor)

Checks whether Sample Section has a specific factor (i.e. column name).

hasSample(sample)

Checks whether sample section has row for a sample number

getFactorValue(sample_name: str, factor: str) → str#
getFactorValue(sample_idx: int, factor: str) → str

Returns value of factor for given sample and factor name

getFactors() → set[str]#

Returns a set of all factors (column names) that were defined for the sample section

getSamples() → set[str]#

Returns a set of all samples that are present in the sample section

hasFactor(factor: str) → bool#

Checks whether Sample Section has a specific factor (i.e. column name)

hasSample(sample: str) → bool#

Checks whether sample section has row for a sample number