petab.v1.mapping
Functionality related to the PEtab entity mapping table
Functions
|
Run sanity checks on PEtab mapping table |
|
Read the provided mapping file into a |
|
Resolve mapping for a given element. |
|
Write PEtab mapping table |
- petab.v1.mapping.check_mapping_df(df: DataFrame, model: Model | None = None) None [source]
Run sanity checks on PEtab mapping table
- Parameters:
df – PEtab mapping DataFrame
model – Model for additional checking of parameter IDs
- Raises:
AssertionError – in case of problems
- petab.v1.mapping.get_mapping_df(mapping_file: None | str | Path | DataFrame) DataFrame [source]
Read the provided mapping file into a
pandas.Dataframe
.- Parameters:
mapping_file – Name of file to read from or pandas.Dataframe
- Returns:
Mapping DataFrame