nipoppy.layout¶
Dataset layout.
Module Contents¶
- class nipoppy.layout.DatasetLayout(dpath_root, fpath_config=None)¶
Bases:
nipoppy.base.BaseFile/directory structure for a specific dataset.
- Parameters:
dpath_root (nipoppy.env.StrOrPathLike)
fpath_config (Optional[nipoppy.env.StrOrPathLike])
- dpath_descriptions()¶
Return a list of directory paths and associated description strings.
- Return type:
list[Tuple[pathlib.Path, str]]
- dpaths()¶
Return a list of all required directory paths.
- Return type:
- fpaths()¶
Return a list of all required file paths.
- Return type:
- get_dpath_bids_db(pipeline_name, pipeline_version, participant_id=None, session_id=None)¶
Return the path to a pipeline’s BIDS database directory.
- Parameters:
- Return type:
- get_dpath_pipeline(pipeline_name, pipeline_version)¶
Return the path to a pipeline’s directory.
- Parameters:
- Return type:
- get_dpath_pipeline_output(pipeline_name, pipeline_version)¶
Return the path to a pipeline’s output directory.
Note: This path is the same given a pipeline name and version (i.e. does not depend on participant or session).
- Parameters:
- Return type:
- get_dpath_pipeline_work(pipeline_name, pipeline_version, participant_id=None, session_id=None)¶
Return the path to a pipeline’s working directory.
- Parameters:
- Return type:
- get_full_path(path)¶
Build a full path from a relative path.
- Parameters:
path (nipoppy.env.StrOrPathLike)
- Return type:
- get_paths(directory=True, include_optional=False)¶
Return a list of all directory or file paths.
- Return type:
- class nipoppy.layout.DpathInfo(/, **data)¶
Bases:
PathInfoRelative path and description for a directory.
- Parameters:
data (Any)
- class nipoppy.layout.FpathInfo(/, **data)¶
Bases:
PathInfoRelative path and description for a file.
- Parameters:
data (Any)
- class nipoppy.layout.LayoutConfig(/, **data)¶
Bases:
pydantic.BaseModelRelative paths for the dataset layout.
- Parameters:
data (Any)
- fpath_doughnut: OptionalFpathInfo¶
- fpath_imaging_bagel: OptionalFpathInfo¶
- model_config¶
- get_path_info(path_label)¶
Return the PathInfo object associated with the given path label.
- path_infos()¶
Return a list of all PathInfo objects defined in the layout.
- class nipoppy.layout.OptionalFpathInfo(/, **data)¶
Bases:
FpathInfoRelative path and description for a file that is optional.
- Parameters:
data (Any)
- class nipoppy.layout.PathInfo(/, **data)¶
Bases:
pydantic.BaseModelRelative path and description for a directory or file.
- Parameters:
data (Any)
- path: pathlib.Path¶
- nipoppy.layout.DEFAULT_LAYOUT_INFO¶