Skip to content
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

interactive_visualization for stereo-seq #674

Closed
lvmt opened this issue Apr 3, 2023 · 10 comments
Closed

interactive_visualization for stereo-seq #674

lvmt opened this issue Apr 3, 2023 · 10 comments
Assignees

Comments

@lvmt
Copy link

lvmt commented Apr 3, 2023

Hi, i have a h5ad file (stereo-seq sequencing and analysis by SAW pipeline), but i want
to explore the data interactive. So, i find squidpy is a nice tools while i cannot use it successfully for my data.

Can you give me some tips.

Thanks.
...

@LLehner
Copy link
Member

LLehner commented Apr 6, 2023

Hi @lvmt, thank you for your interest in squidpy.

There is no particular reading function for stereo-seq files. Since they basically just consist of coordinates and expression data you can store the coordinates yourself in adata.obsm. A tutorial on how to do this can be found in the squidpy docs here.

@LLehner
Copy link
Member

LLehner commented Apr 18, 2023

Were you able to make use of the data @lvmt? If no more issue persists, I would close this.

@LLehner
Copy link
Member

LLehner commented Jul 19, 2023

Hi @lvmt Just as an update, we currently implement a reader for Stereo-seq files, which can then be used with squidpy. It should be available this week.

Also this earlier statement of mine

Since they basically just consist of coordinates and expression data you can store the coordinates yourself in adata.obsm.

was clearly wrong. Back then I wasn't fully aware how the Stereo-seq pipeline output actually looks like.

@lvmt
Copy link
Author

lvmt commented Jul 21, 2023

thanks, i'll ahve a try.

@lvmt lvmt closed this as completed Aug 18, 2023
@Zjianglin
Copy link

Hi @lvmt have you solved this problem? @LLehner , is there any tutorial for analyzing stereo-seq spatial transcriptomics data (especially for multiple samples)? Thanks.

@LLehner
Copy link
Member

LLehner commented May 22, 2024

Hi @Zjianglin, there is no tutorial available yet since the corresponding stereo-seq reader in spatialdata-io is not complete and therefore not merged yet. The corresponding PR can be found here. Regarding multiple samples, do you mean bins? In general it shouldn't be an issue since spatialdata can store multiple images and tables etc.

@LucaMarconato
Copy link
Member

I am actually preparing a short tutorial today, please checked the PR linked by @LLehner.

@Zjianglin
Copy link

thanks for your reply. I will try it later. Regarding multiple slices/samples, I mean if I have several SRT samples,is there any recommended method/tutorial to integrate them and then analyze together (i.e. removing batch effects, comparative analysis, .etc.), or should I individually analyze one by one? BTW, for stereo-seq data, there are two typical types: square bin (eg. bin50) and cellbin, is there any difference during analysis by squiddy? thanks.

@LucaMarconato
Copy link
Member

@Zjianglin just a heads up, I have just uploaded the notebook, you can find the notebook here.

@LLehner
Copy link
Member

LLehner commented May 25, 2024

@Zjianglin

Regarding multiple slices/samples, I mean if I have several SRT samples,is there any recommended method/tutorial to integrate them and then analyze together (i.e. removing batch effects, comparative analysis, .etc.), or should I individually analyze one by one?

In general it is recommend to apply pre-processing for each slide individually. Regarding the batch effect removal that is a good question, however from what I've heard so far, many people don't apply batch integration for slides. Instead they pre-process each slide individually and the concatenate/merge them. However, I want to emphasize that this is just anecdotal and there is no consensus on whether one should or should not account for batches when analysing many slides. This probably also depends on the data.

BTW, for stereo-seq data, there are two typical types: square bin (eg. bin50) and cellbin, is there any difference during analysis by squiddy? thanks.

  • Yes they differ in their content. The cellbin.gef is the required file for analysis in Squidpy, since it is used to build the table with count matrix and additional information about cells and genes. It's also a required file for the reader.

  • squarebin.gef contains different aggregations of the data: The larger the bin size, the more cells (and therefore their gene expression) are contained in one observation, so bin50 is already of much lower resolution, since you aggregate cells from a much bigger area than at the lowest bin size. If you read in stereo-seq data then reading the squarebin file is optional. In stereoseq() set read_square_bin=False to not load it into the spatialdata object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants