mantispy.ds.pooled_rare#
- mantispy.ds.pooled_rare(cache_dir=None, *, feature_selected=False)[source]#
Pooled rare variants, 290 barcodes in a pooled screen.
cpg0032-pooled-rare, aggregated to one row per barcode rather than per well, so there is no plate or well inobs.The base and its feature-selected block are pre-built by
scripts/build_staged_datasets.pyfrom the raw gene-normalized table and rehosted onscverse-exampledata, so the loader fetches a single h5ad rather than reassembling it on every call.- Parameters:
cache_dir (
str|Path|None(default:None)) – Where to keep the download. Defaults tomantispy.settings.cache_dir.feature_selected (
bool(default:False)) – Return the block after pycytominer-default feature selection instead of all features.
- Returns:
Metadata_Perturbation: the variant the barcode expresses (Metadata_Foci_Barcode_MatchedTo_GeneCode, 290 of them), the unit the library varied. It is a gene ("ACTB") or a specific coding variant of it ("ACTB E364K").Metadata_Perturbation_Type:"orf", the variants being expressed from constructs.Metadata_Gene(the gene the variant belongs to, the token before the first space) andMetadata_Allele(the full variant label).- Return type:
- Raises:
ValueError –
feature_selectedis not a bool.