petab.conditions¶
Functions operating on the PEtab condition table
Functions
create_condition_df (parameter_ids, condition_ids) |
Create empty condition DataFrame |
get_condition_df (condition_file_name) |
Read the provided condition file into a pandas.Dataframe |
-
petab.conditions.
create_condition_df
(parameter_ids: Iterable[str], condition_ids: Optional[Iterable[str]] = None) → pandas.core.frame.DataFrame¶ 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.conditions.
get_condition_df
(condition_file_name: str) → pandas.core.frame.DataFrame¶ Read the provided condition file into a
pandas.Dataframe
Conditions are rows, parameters are columns, conditionId is index.
Parameters: condition_file_name – File name of PEtab condition file