-
Notifications
You must be signed in to change notification settings - Fork 16
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
add support for layers in AnnData objects #78
Comments
You can join to h5ad files using launch by separating multiple paths by a comma, or in serve by supplying multiple datasets to prepare_data. I prefer this approach because both dimensions of arrays in layers must match X, which is not the case for multimodal data. |
the release notes of anndata mentions they are unifying the layers and X in the upcoming release - https://anndata.readthedocs.io/en/latest/release-notes.html I am not sure what this entails, but something to keep track of... |
@jkanche Is your use case to support multi-modal data? |
Its not, i can imagine a dataset containing many layers - counts, logcounts, normalized counts and so on... it would be nice to choose which layer to use for coloring especially when i color the umap/tsne by expression of a gene. right now, its pretty much whatever X is and the user has less/no control on this. |
Do you want to be able to view multiple layers simultaneously for easy comparison? Thanks. |
@joshua-gould Hi, thanks for this great app! yes, would it be possible to chose which layer to use in anndata object? i.e if someone can chose raw_data or X as well switch between different layers stored in the anndata object? Thanks |
@MubasherMohammed Do you want to be able to view multiple layers simultaneously or would switching between which layer is shown be sufficient? Thanks. |
@joshua-gould thanks for swift reply! switching between layers could be sufficient. alternatively, some single-cell data objects contain layers of spliced/unspliced reads. it will be great to consider this info to the app in the future. thanks.. |
Version 1.1.34 provides support for layers. Please let me know what you think. Thanks. |
@joshua-gould thanks for the update! i was unable to install 1.1.34 using |
Please run the following command to update to the latest version: |
Thanks, it has now successfully updated. Looking at the difference between "Cell Metadata" and "Metadata Categories" it seems they are belonging to <adata.obs> or at least its how my Anndata structure look like: i have tried to visualize i.e one gene spliced VS unspliced reads in UMAP but i think it will only shows the spliced reads (Expression). could this because of the layers should be 'layers: 'ambiguous', 'matrix', 'spliced', 'unspliced', 'Ms', 'Mu', 'velocity', 'variance_velocity', 'fit_t', 'fit_tau', 'fit_tau_', 'velocity_u'' |
You can obtain an example h5ad with layers from scvelo using the code:
Note-the version 1.1.35 of cirrocumulus fixes an error when more than one layer is selected. |
I have updated to V1.1.35 and the support for layers works nicely. possible to visualize the spliced vs unspliced reads for a gene. |
Currently the app uses the
X
slot of the AnnData object for extracting expression values. It would be great to supports thelayers
slot and enable exploration of any assay (or matrix) from the AnnData objectThe text was updated successfully, but these errors were encountered: