Plexora

plexora dataset create

Make a dataset, registering its images if needed.

Generated from Plexora 0.0.55View source

Usage

plexora dataset create [-h] [--images PATH [PATH ...]] [--from SPEC.json]
                              [--scan DIR [DIR ...]] [--dry-run] [--description DESCRIPTION]
                              [--node NAME] [--exist-ok] [--json]
                              name

Arguments

namerequired

Options

--images PATH [PATH ...]

Images to register as projects and put in it. An image is all a project needs.

--from SPEC.json

A JSON file: {name, description, projects: [...]} or a bare list of project specs. Command-line arguments win over what is in it.

--scan DIR [DIR ...]

Folders to scan. Every image under them becomes a project, with the segmentation mask, cell table and channel names matched to it by name and folder. Files that cannot be matched with confidence are listed and left out. With --node, folders on that data node.

--dry-run

With --scan: show what would be created and register nothing. With --json, print it as a spec file that --from reads, to edit and rerun.

--description DESCRIPTION
--node NAME

The data node these files are on. Every path that does not say otherwise is a path over there, and the projects address it rather than copying anything here.

--exist-ok

Add to the dataset if it already exists.

--json

Print the result as JSON.

Examples

Register images as projects and group them

plexora dataset create "Melanoma cohort" --images slide1.ome.tif slide2.ome.tif --description "Stage III, 2024"

From a JSON spec of several projects

plexora dataset create "Melanoma cohort" --from cohort.json

Files that live on a data node

plexora dataset create "Cluster cohort" --node hpc --images /scratch/me/slide1.ome.tif /scratch/me/slide2.ome.tif

Scan a folder and show what would be created

plexora dataset create "Melanoma cohort" --scan /data/cohort --dry-run

Print the scan as a spec file that --from reads, to save and edit

plexora dataset create "Melanoma cohort" --scan /data/cohort --dry-run --json

Python equivalent

import plexora

cohort = plexora.create_dataset(
    "Melanoma cohort",
    images=["slide1.ome.tif", "slide2.ome.tif"],
    description="Stage III, 2024",
)

On this page