petab.v1.conditions
Functions operating on the PEtab condition table
Functions
|
Create empty condition DataFrame |
|
Read the provided condition file into a |
|
Get parametric overrides from condition table |
|
Write PEtab condition table |
- petab.v1.conditions.create_condition_df(parameter_ids: Iterable[str], condition_ids: Iterable[str] | None = None) DataFrame [source]
Create empty condition DataFrame
- Parameters:
parameter_ids – the columns
condition_ids – the rows
- Returns:
A
pandas.DataFrame
with empty given rows and columns and all nan values
- petab.v1.conditions.get_condition_df(condition_file: str | DataFrame | Path | None) DataFrame [source]
Read the provided condition file into a
pandas.Dataframe
Conditions are rows, parameters are columns, conditionId is index.
- Parameters:
condition_file – File name of PEtab condition file or pandas.Dataframe