Plexora

plexora project set

Answer a question about a registered project.

Generated from Plexora 0.0.55View source

Usage

plexora project set [-h] [--name NAME] [--segmentation SEGMENTATION] [--data DATA]
                           [--table TABLE] [--subset COLUMN=VALUE] [--cell-id CELL_ID] [--x X]
                           [--y Y] [--z Z] [--sample SAMPLE] [--celltype CELLTYPE]
                           [--markers COLUMN [COLUMN ...]] [--metadata COLUMN [COLUMN ...]]
                           [--layer LAYER] [--log1p] [--single-image] [--row-number-ids]
                           [--channel-names NAME [NAME ...]]
                           [--image-type {brightfield,fluorescence}] [--copy] [--node NAME]
                           [--dataset DATASET] [--from SPEC.json] [--json]
                           name

Arguments

namerequired

Options

--name NAME

What to call the project. Defaults to the image's filename.

--segmentation SEGMENTATION

A segmentation mask to attach.

--data DATA

A feature table: CSV, Parquet, AnnData (.h5ad) or SpatialData (.zarr).

--table TABLE

Which table inside a .zarr store holds the cells. Optional -- Plexora asks when something needs it.

--subset COLUMN=VALUE

Which image, for a table that spans several.

--cell-id CELL_ID

The column holding the cell identifier.

--x X

The column holding the X coordinate.

--y Y

The column holding the Y coordinate.

--z Z

The column holding the Z coordinate (each cell's plane), for a table over a z-stack.

--sample SAMPLE

The column holding the image or sample id.

--celltype CELLTYPE

The column holding a phenotype or cell type.

--markers COLUMN [COLUMN ...]

Columns holding marker intensities. Naming one of the two lists is enough -- the columns left over become the other.

--metadata COLUMN [COLUMN ...]

Columns describing the cells rather than measuring them. Naming one of the two lists is enough -- the columns left over become the other.

--layer LAYER

Which matrix to read intensities from, for AnnData.

--log1p

Log-transform the intensities as they are read.

--single-image

This table covers exactly one image.

--row-number-ids

Number the rows instead of reading an id column.

--channel-names NAME [NAME ...]

One per image channel, in order.

--image-type {brightfield,fluorescence}one of: brightfield, fluorescence

Override how the image is read.

--copy

Copy the files into the project directory.

--node NAME

The data node the files are on, for any path that does not say for itself. In a spec file, {"path": ..., "node": null} keeps one file on this machine.

--dataset DATASET

Move it into this dataset.

--from SPEC.json
--json

Examples

Say which columns are markers

plexora project set slide --markers CD3 CD8 CD20

Add a cell table later

plexora project set slide --data cells.csv

Move the project into a dataset

plexora project set slide --dataset "Melanoma cohort"

Python equivalent

import plexora

plexora.configure_project("slide", markers=["CD3", "CD8", "CD20"])

On this page