Gem
Constructor
|
A Gem object is a pandas.DataFrame with adapted method for stereo-seq GEM file. |
Attributes
the shape of representative image. |
|
Center of the object in both axis coordinate and data coordinate (axis_x, axis_y, data_x, data_y) |
Reading
|
Alternate constructor to create a Gem from a file. |
Reshaping / selection
|
Subset the gem object with specified coordinate, width and height |
|
Subset the gem object with a numpy array mask |
|
Re-locate the object coordinates with |
|
Auto rearrange the location for batch gem |
Computations / descriptive stats
|
Compute some basic statistic for the object |
Grouping
|
Group gem into square bins with fixed width and height. |
Conversion / IO
|
Convert gem into image using nCount or nFeature as pixel value. |
|
convert the tabular structure to sparse matrix. |
|
Convert the binning or cell labeling object to anndata |
Plotting
|
Plot the object in spatial coordinate |