You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Convert: SCope looms from SCENIC+, pySCENIC and pycistopic #27
categorical obs columns, labels taken from MetaData
other SCope global attrs (SCopeTreeL1..3, Genome, CreationDate)
uns/scope/…
pycistopic looms (export_region_accessibility_to_loom, export_gene_activity_to_loom) store regions or gene activity in /matrix — detect region-style names (chr:start-end) and use them as var_names.
Export (stretch goal): h5ad → SCope loom with regulon AUC and embeddings, so results can be browsed in SCope.
Needs
Real pySCENIC, SCENIC+ and pycistopic looms to build small fixtures from.
Plan: download one loom of each flavour (gene-based pySCENIC, SCENIC+ eRegulon, pycistopic region accessibility / gene activity), record the dataset name and URL, and inspect the layout (adata ls / h5ls -r). Then write a script under tests/fixtures/ that cuts each one down to a few hundred cells and genes while keeping every attribute, compound array and the MetaData structure. Only the cut-down fixtures are committed.
Full-size files can back an optional test under the integration marker that downloads them on demand.
Note
Current SCENIC+ writes MuData (.h5mu) rather than looms; that is tracked in #31.
Done in #62, released in 0.12.0. adata convert reads a SCope loom's regulons (obsm["RegulonsAUC"], varm["Regulons"], dataframes with the regulons' names as columns), embeddings (obsm["X_<name>"]) and clusterings (categorical obs columns) named from MetaData, and MetaData itself into uns["scope"]. It matches the pySCENIC tutorial's loompy recipe on Zenodo 10944066's pbmc3k loom, which anndata.read_loom refuses. Region-based looms (SCENIC+, pycistopic) are named by region. Export to SCope is #61.
Activity
adata convertto and from h5ad/zarr #20Claptar commentedon Oct 20, 2026
Done in #62, released in 0.12.0.
adata convertreads a SCope loom's regulons (obsm["RegulonsAUC"],varm["Regulons"], dataframes with the regulons' names as columns), embeddings (obsm["X_<name>"]) and clusterings (categorical obs columns) named fromMetaData, andMetaDataitself intouns["scope"]. It matches the pySCENIC tutorial's loompy recipe on Zenodo 10944066's pbmc3k loom, whichanndata.read_loomrefuses. Region-based looms (SCENIC+, pycistopic) are named by region. Export to SCope is #61.