Introduction¶
When performing bulk transcriptomics, the common path is: browsing GEO in NCBI, downloading matrices locally, and using R scripts to chain together QC, limma, enrichment, and survival analysis. Every time you switch tools or modify parameters, you have to remember the paths and versions yourself. On the single-cell side, if a dsh-singlecell workbench already exists, the genes filtered in bulk need to be copied to h5ad and separate mapping scripts written, resulting in high integration costs.
dsh-geobulk (maintainer jszjdyt, category: Workflow) is a GEO / Bulk transcriptomics workbench installed within DeepSeek Harness (DSH): search and download GEO in the browser, import custom matrices, go through the same cleaning and analysis pipeline, and map molecular signatures back to single-cell; the interface is consistent with the sister single-cell workbench project (left column process cards, middle charts, right column Agent), and page buttons use the same implementation as the geobulk tool in the dialogue. The plugin is released under the MIT license, and the current npm package version is 0.1.2 (see repository package.json).
What is it¶
In one sentence: A bulk transcriptomics analysis platform in DSH plugin form. It uses a Python engine as the main driver, with an optional R bridge (limma, DESeq2, clusterProfiler, IOBR, etc.); when R is absent or the network is restricted, it falls back to a built-in Python implementation, and the results will be marked as lite.
The data flow is roughly: Browser requests /geobulk/* → Node-side impl.mjs → Python worker (JSON-lines) → Various analysis modules → Charts and tables return to UI; The Agent calls the same set of logic through a single geobulk tool.
Core Features¶
The modules listed in the README below are summarized, and only abilities clearly mentioned in the materials are written.
GEO Search and Download¶
- Search GEO Series via NCBI E-utilities; built-in Chinese-English dictionary, Chinese keywords can be automatically translated; if results are too few, search criteria are relaxed level by level.
- Filter by species, study type, minimum number of samples, and whether clinical information is available.
- Parse
matrix/andsuppl/; download directory can be specified, supports resume and progress display; can be imported and QC’d after download.
Data Import and Cleaning¶
- Expression matrices:
csv/tsv/txt/xlsx(can be.gz), GEO series matrix,zip/tar.gz, R’s.rds/.RData(ExpressionSet / SummarizedExperiment / matrix). - Sample information tables and clinical tables are automatically joined by sample name; custom counts / TPM / FPKM follow the same pipeline as GEO data.
- Cleaning chain: QC (library size, detected genes, outliers) → Low expression filtering → Normalization (log2(CPM+1), quantile, TMM, median) → Batch correction (ComBat simplified / removeBatchEffect) → PCA, sample correlation, hierarchical clustering.
Differential Expression and Functional Enrichment¶
- Differential: limma (R, default), supports covariates and paired designs; counts available for DESeq2; Welch t + BH fallback when R is absent. Volcano plots, MA plots, heatmaps.
- Enrichment: ORA hypergeometric + GSEA; built-in GO, KEGG, Hallmark, Reactome, etc., can connect to Enrichr; ssGSEA / GSVA-lite pathway activity.
Immune Infiltration, Survival, and Prognosis¶
- Immune: IOBR (R) — CIBERSORT, EPIC, MCP-counter, xCell, quanTIseq, ESTIMATE, ssGSEA, TIMER, IPS, etc.; Python fallback when R is absent.
- Survival: Automatically identify time/event columns; KM + log-rank, single/multi-factor Cox, cutoff scanning, time-dependent ROC, subgroup forest plots, baseline tables.
- Advanced prognosis: Cox, LASSO-Cox, RSF-lite risk scores; risk plots, grouped KM, C-index, calibration curves, DCA, nomogram-related data.
Single-Cell Mapping and Non-coding / Structural Variants¶
- Single-cell: Select local
h5ad, or pull the current dataset from thedsh-singlecellworkbench; score with mean / AUCell / AddModuleScore, output cell type × score, subpopulation expression, relevant heatmaps, etc. - Non-coding and variants: circRNA, miRNA (including ceRNA), lncRNA, fusion (STAR-Fusion / Arriba reports), alternative splicing (rMATS / SUPPA-type results).
Export, Self-Check, and Agent Tools¶
- Export expression matrices, differential tables, enrichment tables, immune and survival tables as CSV,
summary_json,protocol, English Methods, Markdown reports, and reproducible scripts. - Self-check audit: standardization status, inter-group balance, batch mixing, etc., with a score of 0–100 and suggestions.
- The
geobulktool covers actions such asstatus/search/detail/download/open/demo/inspect/preview/samples/run/plot/analyses/analysis/attach/export/audit/suggest/recipe/sc_refs/sc_attach/formats/reset.
Left column main process card order (original text):
qc → filter → normalize → batch → pca → de → enrich → immune → survival → prognosis → scmap → ncrna
There are also about 70 advanced analysis items grouped by category; they will be grayed out and provide a Chinese reason if prerequisites are not met.
Installation and Activation¶
DSH adopts a “everything is a plugin” ecosystem; see the SkillHub Plugins page for the community directory. There is no official affiliation with DeepSeek / Hypothesis; it is recommended to read the source code and the MIT license before installing. The plugin runs under the local dsh process permissions, will read/write paths specified in Harness and may invoke local Python / R.
Prerequisites¶
- Python ≥ 3.10 (README notes verified locally on 3.14):
numpy,pandas,scipy,scikit-learn,matplotlib,anndata,h5py,lifelines,statsmodels,openpyxl,pillow,networkx, etc. (see repositoryrequirements.txt). - R ≥ 4.2 (optional but recommended):
limma,edgeR,DESeq2,clusterProfiler,IOBR,GSVA, etc.; automatically degrades and marks when missing.
Install Python dependencies:
python3 -m pip install -r requirements.txt
Optional check if R packages are ready:
Rscript -e 'for (p in c("limma","DESeq2","clusterProfiler","fgsea","GSVA","IOBR")) cat(p, requireNamespace(p, quietly=TRUE), "\n")'
Install into Harness¶
It is recommended to use the bundle in the Release (same as the plugin market, no local packaging needed):
plugin_manager action=install_bundle target=https://github.com/jszjdyt/dsh-geobulk/releases/download/v0.1.1/dsh-geobulk-0.1.1.tgz
If you already have an extracted plugin directory, you can also:
plugin_manager action=install_bundle target=<absolute path to plugin directory>
After installation, refresh the page: “Bulk Workbench” appears on the left, and the geobulk tool appears in the dialogue. Details can be found in the repository INSTALL.md.
Typical Usage¶
Walk through the left column with sample data¶
- Open the sidebar “Bulk Workbench” → Top bar “Load Sample Data” (36 samples × 4000 genes, includes grouping/batch/clinical columns).
- Click “Run” from top to bottom in the left column: QC → Filter → Normalize → Dimensionality Reduction → Differential → Enrichment → Immune → Survival → Prognosis.
- In the “Single-cell” tab, specify
h5ador pull from the single-cell workbench → Run single-cell mapping. - In the “Record” tab, export reports / Methods / reproducible scripts.
GEO and Custom Matrices¶
- GEO: Top bar “GEO Search” → Chinese/English keywords (e.g.,
gastric cancer cisplatin resistance expression profile) → See details in result card → Fill download directory → Download → “Import and Clean”. - Custom Data: “Import Data” select expression matrix + sample table + clinical table; or called by Agent, for example:
geobulk action=open path=/data/counts.csv sample_sheet=/data/samples.csv clinical=/data/clinical.csv
Drive the Agent with Natural Language¶
Example intents in README include: GEO search and import followed by QC and differential; KM and multi-factor Cox based on OS; map differential genes to the current single-cell workbench dataset; batch correction after importing counts then KEGG enrichment; mount STAR-Fusion results to filter fusions and plot. The absolute path of graphs returned by the Agent can be viewed using read_image.
Applicable Scenarios and Notes¶
Who is it for: Developers of analysis and agents who need to put GEO search, bulk cleaning, differential/enrichment/immune/survival/prognosis, and single-cell mapping in the same interface within DSH, and want consistent results between “clicking buttons” and “letting the Agent execute”.
Notes:
- Without R, many steps are Python/lite implementations and may differ slightly from official R package results; the interface will mark them.
- GEO download and online capabilities like Enrichr depend on the network; offline environments need to provide their own matrices and gene sets.
- Single-cell linkage depends on local h5ad or installed
dsh-singlecellworkbench data. - The repository CI covers syntax and unit tests (no need to install R); full acceptance can be run with
python3 test/py_acceptance.py(README says 40/40 PASS).
Conclusion¶
dsh-geobulk turns GEO / bulk transcriptomics from search and cleaning to differential, enrichment, immune, survival, prognosis, single-cell mapping, and non-coding analysis into a reusable workflow within DSH, sharing implementation with the geobulk tool. For further understanding and installation:
- Community directory: https://www.skillhub.cn/plugins/jszjdyt/dsh-geobulk
- Source code and documentation: https://github.com/jszjdyt/dsh-geobulk