pyXenium.perturb#
pyXenium.perturb is the lightweight SpatialPerturb Bridge surface. It writes
handoff specs and stable external CLI commands for running Perturb-seq reference
projection with the separately installed SpatialPerturb package.
- class SpatialPerturbBridgeConfig(xenium_path, output_dir, prepared_h5ad=None, cache_dir='.spatialperturb-cache', cell_group_path=None, roi_geojson_path=None, sample_name=None, reference_datasets=('gse241115_breast_cropseq',), install_requirement='SpatialPerturb>=0.3')#
Bases:
objectConfiguration for a pyXenium-to-SpatialPerturb handoff specification.
- Parameters:
- spatialperturb_status()#
Return environment status for the optional external SpatialPerturb package.
- build_spatialperturb_handoff(config)#
Build a JSON-serializable handoff spec for the external SpatialPerturb CLI.