Scan your whole stack
Are you using sampledisco?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.6.1
sampledisco was last scanned on 23 Nov 2026 at version 0.6.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.6.1 LATEST | 23 Nov 2026 | No rules fired |
| 0.6.0 | 23 Nov 2026 | No rules fired |
| 0.5.0 | 29 Oct 2026 | No rules fired |
Findings for v0.6.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.6.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A cross-omics, cross-condition sample embedding tool for single-cell data.
SampleDisco takes a cell-level embedding (from any standard scRNA / scATAC / multi-omics integration method) and lifts it to a sample-level embedding that captures both cell-type composition and the per-cell-type state of each sample. Every downstream analysis — sample-to-sample distance, clustering, trajectory inference, phenotype association — then runs on that single shared sample embedding, regardless of modality.
Documentation and tutorial: https://j041120h.github.io/SampleDisco_tutorial/
For each modality (RNA, ATAC, or integrated multi-omics) the pipeline produces two cell-level views:
| Key | Role | Source |
|---|---|---|
Z_comp |
sample-removed embedding — used for cell typing and the composition blocks | Harmony (single-omics) / Harmony post-pass on scGLUE (multi-omics) |
Z_rmd |
sample-preserved embedding — used for the reference-relative mean displacement (RMD) block | second Harmony pass (single-omics) / scGLUE primary output (multi-omics) |
It then assembles four blocks per sample (or per sample × modality for multi-omics):
Z_rmdThe four blocks are inverse-variance weighted, Frobenius-stacked, PCA-reduced to 10 dimensions (at most the number of samples − 1), and Harmony-corrected at sample level when there are at least 8 samples in more than one batch / modality group. The result is stored as adata.uns['X_DR_sample'] and feeds every downstream module.
./
├── pyproject.toml # package metadata; `pip install -e .` installs the `sampledisco` command
├── config/ # 10 YAML configs for the paper's datasets: covid / blood (1M-scBloodNL) / eye / heart / ENCODE / healthy-aging PBMC / long_covid / unpaired (+ RNA-tuned) / default
├── src/sampledisco/ # the package
│ ├── cli.py # `sampledisco` command: `-m complex --config <yaml>`, `--init-config <path>`
│ ├── config/config_demo.yaml # demo config written by `sampledisco --init-config`
│ ├── wrapper/ # Orchestration
│ │ ├── wrapper.py # Master wrapper; gates RNA + ATAC + multiomics + shared downstream
│ │ ├── rna_wrapper.py
│ │ ├── atac_wrapper.py
│ │ └── multiomics_wrapper.py
│ ├── preparation/ # Preprocessing
│ │ ├── rna_preprocess_{cpu,gpu}.py # QC → HVG → PCA → dual Harmony → Z_comp + Z_rmd
│ │ ├── atac_preprocess_{cpu,gpu}.py # QC → TF-IDF → HVF → LSI → dual Harmony → Z_comp + Z_rmd
│ │ ├── cell_type_{cpu,gpu}.py # Leiden clustering on Z_comp (RNA or ATAC)
│ │ ├── ATAC_cell_type{,_gpu}.py # ATAC-specific cell typing variants
│ │ ├── multi_omics_glue.py # scGLUE integration (cross-modality VAE + guidance graph)
│ │ ├── multi_omics_batch_correction.py # Harmony post-pass on X_glue → Z_comp
│ │ ├── multi_omics_merge.py # post-GLUE merge + per-modality preprocess/slimming
│ │ └── multi_omics_cell_type_{cpu,gpu}.py # RNA-Leiden + k-NN label transfer to ATAC
│ ├── sample_embedding/ # Core method
│ │ ├── blocks.py # composition, RMD, weighting, Frobenius stack, final PCA + Harmony
│ │ ├── sample_embedding.py # CPU pipeline
│ │ └── sample_embedding_gpu.py # GPU pipeline (cuML + cupy)
│ ├── parameter_selection/
│ │ └── autotune.py # Bayesian GP sweep over RMD α; adaptive proxy ensemble
│ ├── sample_distance/ # Pairwise sample distances (DR / EMD / chi-square / JS)
│ ├── sample_clustering/ # K-means sample clusters, proportion test, RAISIN cluster DGE
│ ├── sample_trajectory/ # CCA (supervised) and TSCAN (unsupervised) + GAM-based trajectory DGE
│ ├── sample_association/ # Per-PC variance explained vs sample-level covariates (permutation FDR)
│ ├── sample_prediction/ # Cross-validated phenotype prediction from the PCs; kNN label transfer
│ ├── visualization/ # Embedding plots, dendrograms, DGE volcanos, modality-aware multi-omics scatters
│ ├── utils/ # Shared helpers: seed, safe h5ad I/O, limma, TF-IDF, batch regress, Grouping
│ └── gene_activity/ # ATAC peak → gene activity inference + RNA-ATAC validation
├── Benchmark_covid/, Benchmark_multiomics/ # benchmark drivers used for the paper
└── claude/ # one-off run scripts (rerun launchers, monitored runs, parameter sweeps)
sampledisco -m complex --config config/config.yaml # same as: python -m sampledisco.cli -m complex --config ...
The YAML drives every flag and parameter for all three pipelines:
run_rna_pipeline, run_atac_pipeline, run_multiomics_pipeline*_preprocessing, *_cell_type_cluster, *_derive_sample_embedding*_sample_distance_calculation, *_trajectory_analysis, *_trajectory_dge, *_sample_cluster, *_proportion_test, *_cluster_dge, *_visualize_data, *_dimension_association_analysismultiomics_run_glue_*, multiomics_treat_sample_as_batch, multiomics_run_glue_twice_for_sample_removalThe 10 ready-to-use configs in config/ are point-in-time snapshots for the datasets used in the paper; copy one and adjust paths / column names for your own data.
sampledisco --init-config my_config.yaml
writes the demo config (tuned for the Zenodo demo dataset) to my_config.yaml. The YAML is validated against every wrapper() parameter, so edit values rather than deleting keys.
A standard scanpy AnnData file with at minimum:
.X — count matrix (genes for RNA, peaks for ATAC).obs['sample'] — sample column (required).obs['batch'], .obs['cell_type'], sample-level metadata file (CSV) to mergeFor multi-omics, the pipeline takes two separate h5ads (RNA + ATAC) and integrates them via scGLUE; samples may be paired (1:1 cell correspondence) or unpaired.
output_dir)<output_dir>/
├── rna/
│ ├── preprocess/adata_preprocessed.h5ad
│ ├── sample_embedding/sample_embedding.csv
│ ├── Sample_distance/{cosine,correlation}/*
│ ├── CCA/ or TSCAN/ # whichever trajectory mode
│ ├── trajectoryDEG/
│ ├── sample_cluster/{kmeans_*,proportion_test/}
│ ├── sample_association/variance_explained_sample.csv + figures/
│ └── visualization/*.png
├── atac/ (parallel structure)
├── multiomics/
│ ├── integration/glue/{rna-pp,atac-pp,guidance.graphml.gz}
│ ├── preprocess/adata_sample.h5ad # post-GLUE merged adata with Z_comp + Z_rmd
│ ├── sample_embedding/sample_embedding.csv
│ └── (same downstream subdirs as single-omics)
└── sys_log/main_process_status.json # which stages completed
One conda environment runs every part of the package: the RNA / ATAC / multi-omics
pipelines, scGLUE training (with bedtools), MaxFuse and all downstream analyses.
# CPU (recommended)
conda env create -f environment-cpu.yml && conda activate sampledisco-cpu
# GPU (Linux + NVIDIA): the CPU environment + RAPIDS 24.12
conda env create -f environment-gpu.yml && conda activate sampledisco-gpu
pip install --no-deps rapids-singlecell==0.13.1 sampledisco==0.6.1
# pip only
conda create -n sampledisco -c conda-forge -c bioconda python=3.10 pip bedtools && conda activate sampledisco
pip install "sampledisco[all]"
pip install sampledisco alone gives the core pipeline; the extras [glue], [maxfuse]
and [all] add scGLUE and MaxFuse. GPU acceleration runs only with use_gpu: true in the
config (otherwise, or when RAPIDS is missing, the CPU path runs). See INSTALL.md for the
version pins, driver notes and troubleshooting.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.