chanzuckerberg / cellxgene-census

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

Add convenience wrapper for axis_query #1036

Open hthomas-czi opened 8 months ago

hthomas-czi commented 8 months ago

This would be similar to cellxgene_census.get_anndata and reduce the amount of code users have to write.

Current

human = census["census_data"]["homo_sapiens"]
query = human.axis_query(
   measurement_name = "RNA",
   obs_query = tiledbsoma.AxisQuery(
       value_filter = "tissue == 'brain' and sex == 'male'"
   )
)

Proposal

query = cellxgene_census.axis_query(
   census = census,
   measurement_name = "RNA",
   organism = "Homo sapiens",
   obs_value_filter = "tissue == 'brain' and sex == 'male'"
)
pablo-gar commented 6 months ago

Let's ask TileDB team their thoughts on this. @ebezzi @prathapsridharan