ct runs sample

Sample trajectories from a run, optionally partitioning into multiple parts.

Usage

ct runs sample [OPTIONS] RUN_ID SIZES...

Arguments

ArgumentTypeRequired
RUN_IDtextYes
SIZES...textYes

Options

OptionDescription
--keep-restCapture remaining trajectories as a final partition.
--include-errorsInclude trajectories that have an error (default: exclude them).
--stratifiedSample proportionally by environment (rounded counts).
--seed INTEGERRandom seed for reproducible sampling.
-o, --output DIRECTORYDirectory to write the sampled run (default: data/run_trajs/<run_id>-sample-<n>). For multi-partition, used as parent directory with part-1/, part-2/ subdirs.
--overwriteOverwrite existing output directory.
--uploadUpload the sampled run and its trajectories to the database (requires MONGOURI).
--helpShow this message and exit.