mantispy.ds.jump_cells#
- mantispy.ds.jump_cells(annotate=True, selected=False, cache_dir=None)#
Single cells from one JUMP plate, as CellProfiler measured them.
Twenty-four wells of
BR00121438at four fields of view each: eight DMSO wells, four compounds with both of their replicate wells, and eight more compounds at one well. The strongest movers on this plate are cytotoxic, so ranking wells by distance alone selects for empty wells; every well here holds more than 120 cells in its first field.The same plate’s well-level profiles are
jump_target2(), so a profile aggregated from these cells can be compared with the one the consortium published.The first call downloads about 1.5 GB of CellProfiler output, reads 480 tables and writes the assembled object next to them, which takes a few minutes. Later calls read that one file.
- Parameters:
annotate (
bool(default:True)) – Join the JUMP annotation, which suppliesMetadata_PerturbationandMetadata_Control. Downloads another 14 MB. Needed forselected, which is computed against the controls.selected (
bool(default:False)) – Return only the featuresvar["selected"]marks, 1607 of 5857, asmantispy.pp.subset_features()would. The subset is kept beside the whole object, so a notebook that only wants the reduced one reads 87 MB instead of 308 MB.cache_dir (
str|Path|None(default:None)) – Where to keep the download. Defaults tomantispy.settings.cache_dir.
- Raises:
KeyError –
selectedwas asked for withoutannotate, so there are no controls to select against.- Return type:
- Returns:
Cells by features at cell resolution, carrying
Metadata_Source,Metadata_Plate,Metadata_Well,Metadata_Siteand, when annotated,Metadata_JCP2022,Metadata_Perturbation,Metadata_InChIKeyandMetadata_Control. When annotated,var["selected"]marks the features feature selection keeps, so the object can be reduced withadata[:, adata.var["selected"]]the way scanpy’shighly_variableis used. A cell carries no count.mantispy.tl.aggregate()writesMetadata_CellCountover the four fields read and aMetadata_SiteCountof four, so a well counts about four ninths of the cellsjump_target2()gives it over all nine.
References
Chandrasekaran et al. [2023].