You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to document the expected directory structure for the stereoseq reader? The results we got from the stereoseq team don't follow the directory structure being assumed by this implementation. So, if it's properly documented, like the folder names to expect and which files should be put in which folder, then we can manually restructure our directories to conform to this stereoseq reader implementation.
As an example, this is the results folder we receive from the Stereoseq team:
Thanks @aadimator for reporting this. @LLehner could you please have a look into this?
Precisely, please I would add a line in the docstring of the stereoseq function specifying which stereoseq data version we expected and adding a link to the technical document from the STOmics website that specifies the file structure.
@aadimator which version of the data is the screenshot referring to?
Thanks @aadimator for reporting this. @LLehner could you please have a look into this?
Precisely, please I would add a line in the docstring of the stereoseq function specifying which stereoseq data version we expected and adding a link to the technical document from the STOmics website that specifies the file structure.
@aadimator which version of the data is the screenshot referring to?
We got this as is from the Stereoseq Team, and I think it's not following any particular format. I think I'll have to manually rename/place the files into their relative/expected directories. I'll try to follow the SAW 7.0.0. format for now.
Thank you for the comment. For the moment I will restrict or document that the reader operates only on 7.x. Unfortunately we don't have the bandwidth to support the latest version at the moment. But a community contribution is welcomed and we would be happy to review the code in such case.
Todo for us:
restrict or document that the stereoseq reader only works for 7.x data.
This works with the "folder structure" from SAW v8; for also a duplicate issue #322
Side note 1: datasets from stormics website are not with a folder structure but files all in one directory https://en.stomics.tech/col1357/index ; to test on output folder structure from SAW v8, we could create such structure and put the data from the website. For now I tested on in-house data, showed following replaced the real id to {sample_id}
Side note 2: In my practice, actually, for collaboration project, we only transfer necessary data, but not the entire folder structure where @z-spider copied. Unnecessary folder and files are: bam/; feature_expression/{sample_id}.raw.gef; feature_expression/.txt; analysis/.marker_features.csv; visualization.tar.gz*; {sample_id}.report.html); doesn't hurt to keep them, i.e., the outs/ folder intact with all files. Below is a minimal example:
Question is this still something that someone wants worked on?
While I usually load directly from cell bins or specific bin size I am using for analysis.
I have believe I have a script that can handle input directly saw 8.2* and I have more than enough internal data to test on.
Let me know and I will work on updating the script a function to contribute.
Hi @akcasasent, unfortunately we don't have the capacity at the moment to expand the stereoseq reader. In general we are trying to keep the focus upstream (spatialdata) rather than spatialdata-io since achieving a more stable and better documented data format would simplify data ingestions and even remove the need for a library like spatialdata-io in the long term (commercial platform could directly out a SpatialData object once the format is mature).
Regarding your script, I believe that it would be useful for other users. An option would be to publish a reader in a separate repo from spatialdata-io. We can still point to your code in our Readme, adding a link to your repo to the text "Only Stereo-seq 7.x is supported, 8.x is not currently supported. #161". Or if you prefer you can also add the code directly in this issue since it is easily discoverable from the Readme.
I was actually offering to assist in writing / expanding the stereoseq reader both to handle 8.x and handle microbiome.
It seems like you would prefer it in a separate repo which is fine. I will finish it and then link it here once I have tested it a few ways. I have a project I am working on where I have to have it handle the omni microbiome options as well as GEX standard spatial bins and cell bins options. So, I will be creating a function anyway. :-) I just joined the scverse community and am planning to contribute some where people need it. Hence the offer. I have used scverse for a while, but my current job it happy with me working on analysis and contributing here as well.
Activity
LucaMarconato commentedon Jul 10, 2024
Thanks @aadimator for reporting this. @LLehner could you please have a look into this?
stereoseqfunction specifying whichstereoseqdata version we expected and adding a link to the technical document from the STOmics website that specifies the file structure.@aadimator which version of the data is the screenshot referring to?
LucaMarconato commentedon Jul 10, 2024
This comment: #70 (comment) is from July 31st, 2023, therefore I believe that the reader is designed for the format 7.0.0: https://github.com/STOmics/SAW/tree/0808e44619f84b67d44c063b2fd24762f6633051/Documents/FileFormat and that the latest 7.1.1 (or even 7.1.0) is not supported.
aadimator commentedon Aug 1, 2024
We got this as is from the Stereoseq Team, and I think it's not following any particular format. I think I'll have to manually rename/place the files into their relative/expected directories. I'll try to follow the SAW 7.0.0. format for now.
z-spider commentedon Aug 7, 2024
saw 8.0 has new output directory structure

from this manual:
https://en.stomics.tech/service/new-saw-operation-manual.html
LucaMarconato commentedon Aug 7, 2024
Thank you for the comment. For the moment I will restrict or document that the reader operates only on 7.x. Unfortunately we don't have the bandwidth to support the latest version at the moment. But a community contribution is welcomed and we would be happy to review the code in such case.
Todo for us:
stereoseqreader only works for 7.x data.scverse#161 stereoseq v8
brainfo commentedon Oct 14, 2025
Hi Luca,
I tried https://github.com/brainfo/spatialdata-io/blob/main/src/spatialdata_io/readers/stereoseq.py
This works with the "folder structure" from SAW v8; for also a duplicate issue #322
Side note 1: datasets from stormics website are not with a folder structure but files all in one directory https://en.stomics.tech/col1357/index ; to test on output folder structure from SAW v8, we could create such structure and put the data from the website. For now I tested on in-house data, showed following replaced the real id to {sample_id}
Side note 2: In my practice, actually, for collaboration project, we only transfer necessary data, but not the entire folder structure where @z-spider copied. Unnecessary folder and files are: bam/; feature_expression/{sample_id}.raw.gef; feature_expression/.txt; analysis/.marker_features.csv; visualization.tar.gz*; {sample_id}.report.html); doesn't hurt to keep them, i.e., the outs/ folder intact with all files. Below is a minimal example:
then I got an sdata
LucaMarconato commentedon Oct 15, 2025
Hi, great to hear that you found a workaround. Thanks for sharing!
scverse#161 stereoseq v8
akcasasent commentedon Jun 21, 2026
Question is this still something that someone wants worked on?
While I usually load directly from cell bins or specific bin size I am using for analysis.
I have believe I have a script that can handle input directly saw 8.2* and I have more than enough internal data to test on.
Let me know and I will work on updating the script a function to contribute.
LucaMarconato commentedon Jun 23, 2026
Hi @akcasasent, unfortunately we don't have the capacity at the moment to expand the stereoseq reader. In general we are trying to keep the focus upstream (
spatialdata) rather thanspatialdata-iosince achieving a more stable and better documented data format would simplify data ingestions and even remove the need for a library likespatialdata-ioin the long term (commercial platform could directly out aSpatialDataobject once the format is mature).Regarding your script, I believe that it would be useful for other users. An option would be to publish a reader in a separate repo from spatialdata-io. We can still point to your code in our Readme, adding a link to your repo to the text "Only Stereo-seq 7.x is supported, 8.x is not currently supported. #161". Or if you prefer you can also add the code directly in this issue since it is easily discoverable from the Readme.
akcasasent commentedon Jun 23, 2026
Hi @LucaMarconato,
I was actually offering to assist in writing / expanding the stereoseq reader both to handle 8.x and handle microbiome.
It seems like you would prefer it in a separate repo which is fine. I will finish it and then link it here once I have tested it a few ways. I have a project I am working on where I have to have it handle the omni microbiome options as well as GEX standard spatial bins and cell bins options. So, I will be creating a function anyway. :-) I just joined the scverse community and am planning to contribute some where people need it. Hence the offer. I have used scverse for a while, but my current job it happy with me working on analysis and contributing here as well.
~AKC
asmlgkj commentedon Jul 6, 2026
@akcasasent hi, do you have time to share, thanks a lot
akcasasent commentedon Jul 11, 2026
@asmlgkj yes. I will share on Monday. Sorry about the delay.
asmlgkj commentedon Jul 11, 2026
Thanks a lot. I just used scanpy now. not spatialdata-io to do the task