cuspa.io.Transcripts#
- class cuspa.io.Transcripts( )#
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 ofgene_column), orNoneif no gene column.- gene_names
List of gene names in category order, so
gene_names[gene_ids[i]]recovers the original string.Noneif no gene column.
Attributes
Alias for field number 1 |
|
Alias for field number 2 |
|
Alias for field number 0 |