cuspa.io.Transcripts#

class cuspa.io.Transcripts(
xy: Any,
gene_ids: Any | None,
gene_names: list[str] | None,
)#

Transcript coordinates and gene metadata from SpatialData.

Attributes:
xy

Device tensor of shape (N, 2).

gene_ids

Optional device int32[N] of gene indices (from a categorical encoding of gene_column), or None if no gene column.

gene_names

List of gene names in category order, so gene_names[gene_ids[i]] recovers the original string. None if no gene column.

Attributes

gene_ids

Alias for field number 1

gene_names

Alias for field number 2

xy

Alias for field number 0

Transcripts.gene_ids: Any | None#

Alias for field number 1

Transcripts.gene_names: list[str] | None#

Alias for field number 2

Transcripts.xy: Any#

Alias for field number 0