chanzuckerberg / cellxgene-census

CZ CELLxGENE Discover Census
https://chanzuckerberg.github.io/cellxgene-census/
MIT License
84 stars 20 forks source link

`cellxgene_census.get_anndata()` should have an argument `X_layers` #760

Closed pablo-gar closed 1 year ago

pablo-gar commented 1 year ago

To load any additional layers from Census to an AnnData via cellxgene_census.get_anndata(), the method should have an argument X_layers

bkmartinjr commented 1 year ago

There already is an X_name which provides the ability to ask for an alternate layer - how is this different?

pablo-gar commented 1 year ago

Goes directly into X_layers arg of to_anndata i.e. adds those as additional layers under AnnData.layers on top of X_name that goes to AnnData.X

bkmartinjr commented 1 year ago

got it - so the use case is exporting multiple layers.