-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change points to shapes for stereo-seq #253
Comments
@wangjiawen2013 thanks for the feedback! The change you suggest is quite straightforward (basically it amounts to replace this code here
We have limited bandwidth as we are working on some parts of the core library at the moment and won't be able to work on this specific task soon, but if you would like to try making a PR, we will be happy to review it! |
Also, please check out this feature scverse/spatialdata#578, and this new one (merged yesterday) scverse/spatialdata#811, as you could find them useful for performant handling of Stereo-seq data. |
I tested and find that
I'll define a new function argument to allow the parsing of bins as shapes, while keeping the default as points. As only bin 10-200 are used for most stereoseq users, the preformance should not be affected seriously by setting the appropriate bin size. |
Thanks for sharing. If performance is not an issue, I'd indeed proceed as you described. Please notice that the approach shown here scverse/spatialdata#811 (i.e. calling Finally a comment on the challenges you faced. Not having the row/col ready is definitely inconvenient, but these could be reconstructed. If performance starts being an issue in case you need to show the smallest bins you could consider this.
True, |
Glad to hear that we can use We have been cooperating with BGI (the inventor of stereoseq) for many years. bin50-bin200 are used frequently for production purpose, and bin1 is rarely used (it is used occasionally for testing purpose). The memory and running time are acceptable for bin 50-bin200 (or even bin10) when using scanpy/squidpy/seurat. So don't worry a lot about the performance. When we want to use bin1, we can use The following is the envisaged reader function signature: def stereoseq(
path: str | Path,
dataset_id: str | None = None,
read_square_bin: bool = True,
bin_to_shape: list[int] | int | None = None,
optional_tif: bool = False,
imread_kwargs: Mapping[str, Any] = MappingProxyType({}),
image_models_kwargs: Mapping[str, Any] = MappingProxyType({}),
) -> SpatialData When |
Originally posted by @wangjiawen2013 in #97
The text was updated successfully, but these errors were encountered: