ct runs sample
Sample trajectories from a run, optionally partitioning into multiple parts.
Usage
ct runs sample [OPTIONS] RUN_ID SIZES...
Arguments
| Argument | Type | Required |
|---|---|---|
RUN_ID | text | Yes |
SIZES... | text | Yes |
Options
| Option | Description |
|---|---|
--keep-rest | Capture remaining trajectories as a final partition. |
--include-errors | Include trajectories that have an error (default: exclude them). |
--stratified | Sample proportionally by environment (rounded counts). |
--seed INTEGER | Random seed for reproducible sampling. |
-o, --output DIRECTORY | Directory 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. |
--overwrite | Overwrite existing output directory. |
--upload | Upload the sampled run and its trajectories to the database (requires MONGOURI). |
--help | Show this message and exit. |