nipoppy.config.main¶
Dataset configuration.
Module Contents¶
- class nipoppy.config.main.Config(/, **data)¶
Bases:
nipoppy.config.container.SchemaWithContainerConfigSchema for dataset configuration.
- Parameters:
data (Any)
- BIDS_PIPELINES: list[nipoppy.config.pipeline.BidsPipelineConfig]¶
- DICOM_DIR_MAP_FILE: pathlib.Path | None¶
- PROC_PIPELINES: list[nipoppy.config.pipeline.ProcPipelineConfig]¶
- model_config¶
- apply_substitutions_to_json(json_obj)¶
Apply substitutions to a JSON object.
- classmethod check_input(data)¶
Validate the raw input.
Specifically: - If session_ids is not given, set to be the same as visit_ids
- Parameters:
data (Any)
- get_pipeline_config(pipeline_name, pipeline_version)¶
Get the config for a BIDS or processing pipeline.
- Parameters:
- Return type:
- get_pipeline_version(pipeline_name)¶
Get the first version associated with a pipeline.
- classmethod load(path, apply_substitutions=True)¶
Load a dataset configuration from a file.
- Parameters:
path (nipoppy.env.StrOrPathLike)
- Return type:
typing_extensions.Self
- propagate_container_config()¶
Propagate the container config to all pipelines.
- Return type:
typing_extensions.Self
- save(fpath, **kwargs)¶
Save the config to a JSON file.
- Parameters:
fpath (nipoppy.env.StrOrPathLike) – Path to the JSON file to write
- validate_and_process()¶
Validate and process the configuration.
- Return type:
typing_extensions.Self