Package: cell-locator-cli
Cell Locator CLI ToolsProvides some utility CLI tools for dealing with Cell Locator annotation files.cl-export enables converting an annotation file to VTK model or binary labelmap.cl-convert enables upgrading annotation files for compatibility with different versions of Cell Locator.Quick StartInstallation$pipinstallcell-locator-cliSample UsageUpdate an old annotation file$cl-convertconvert-v'?'-tv0.2older.jsonnewer.json
Inferredversion'v0.0.0+2020.08.26'$cl-convertinfernewer.jsonv0.2.1+2022.03.04Export a CCF annotation to labelmap and model$cl-export\ccf-annotation.json\-mccf-annotation.vtk\-lccf-annotation.label.nrrd\-accf_annotation_25_contiguous.nrrd\--pir
$f3dccf-annotation.vtk
$f3d-vccf-annotation.label.nrrdExport a MNI annotation to labelmap and model$cl-export\mni-annotation.json\-mmni-annotation.vtk\-lmni-annotation.label.nrrd\-amni_annotation_contiguous.nrrd
$f3dmni-annotation.vtk
$f3d-vmni-annotation.label.nrrdCLI Documentationcl-exportusage: cl-export [-h] [-m MODEL_PATH] [-l LABELMAP_PATH] [-a ATLAS_PATH]
                 [--pir]
                 annotation

Export Cell Locator annotations to VTK model or labelmap.

positional arguments:
  annotation            Input Cell Locator annotation file (JSON).

options:
  -h, --help            show this help message and exit
  -m MODEL_PATH, --model MODEL_PATH
                        Output path for annotation model. If not provided,
                        model generation is skipped.
  -l LABELMAP_PATH, --labelmap LABELMAP_PATH
                        Output path for annotation labelmap. If not provided,
                        labelmap generation is skipped. Requires --atlas for
                        spacing information.
  -a ATLAS_PATH, --atlas ATLAS_PATH
                        Atlas volume or labelmap. Used to set
                        spacing/direction on the output labelmap.
  --pir                 If set, read the annotation in PIR format rather than
                        RAS. This should only be necessary for old-style CCF
                        annotations.Future WorkAdd option for different strategies regarding merged/separated model files, or use a multi-valued segmentation format
rather than binary labelmap.cl-convertusage: cl-convert convert [-h] -v VERSION [-t TARGET] [--no-indent] src dst

positional arguments:
  src                   Source JSON file. Use '-' to read from stdin.
  dst                   Destination JSON file. Use '-' to write to stdout.

options:
  -h, --help            show this help message and exit
  -v VERSION, --version VERSION
                        Source file version. Use '-v?' to infer the version.
  -t TARGET, --target TARGET
                        Target file version. Defaults to the latest version.
  --no-indent           Do not indent output JSON.usage: cl-convert versions [-h] [target]

positional arguments:
  target      Show versions matching this target. If empty, show all versions.

options:
  -h, --help  show this help message and exitusage: cl-convert infer [-h] src

positional arguments:
  src         Source JSON file. Use '-' to read from stdin.

options:
  -h, --help  show this help message and exit