theislab / scarches

Reference mapping for single-cell genomics
https://docs.scarches.org/en/latest/
BSD 3-Clause "New" or "Revised" License
331 stars 51 forks source link

Include both gene IDs and gene symbols for check of feature correspondence between query and reference #171

Open LisaSikkema opened 1 year ago

LisaSikkema commented 1 year ago

Hi!

It would be really great if you could somehow make the function sca.models.SCANVI.prepare_query_anndata able to take into consideration both gene Ensembl IDs and gene symbols (i.e. actual gene names), in particular for the subsetting and padding that is done there. Do you think that would be doable? For example, the Human Lung Cell Atlas model was trained on gene IDs, but some datasets might only have gene names available. As I have the mapping of the gene IDs to gene names available for the HLCA model, it should be relatively easy to accommodate for those datasets.