STOmics / Stereopy

A toolkit of spatial transcriptomic analysis.
MIT License
187 stars 64 forks source link

region flag for read_gem #138

Closed ViHammer closed 1 year ago

ViHammer commented 1 year ago

read_gef() already supports passing a region to reduce the size of the data set. This is not supported by read_gem(), but would be greatly appreciated.

Is there a subset function that can be applied to StereoExpData objects?

tanliwei-coder commented 1 year ago

Hi!

You can use the function data.tl.filter_coordinates to filter data by setting min_x, min_y, max_x and max_y.

For example: data.tl.filter_coordinates(min_x=100, max_x=500, min_y=100, max_y=100)