theislab / sfaira

data and model repository for single-cell data
https://sfaira.readthedocs.io
BSD 3-Clause "New" or "Revised" License
133 stars 13 forks source link

enable store subsetting by prefix / excluded prefix #720

Open le-ander opened 1 year ago

le-ander commented 1 year ago

as we're now allowing for custom metadata entries in ontologies, it would be good to filter out such entries (which are not part of the ontology) via store subsetting. eg. here: https://github.com/theislab/sfaira/blob/5cedf47a21319c7cb5396c3b87a6ac0415e06847/sfaira/estimators/base.py#L225 https://github.com/theislab/sfaira/blob/5cedf47a21319c7cb5396c3b87a6ac0415e06847/sfaira/train/summaries.py#L913 https://github.com/theislab/sfaira/blob/5cedf47a21319c7cb5396c3b87a6ac0415e06847/sfaira/train/summaries.py#L1078 https://github.com/theislab/sfaira/blob/5cedf47a21319c7cb5396c3b87a6ac0415e06847/sfaira/train/summaries.py#L1428