Agent skill

Bulkrna Trajblend

by TianGzlab in TianGzlab/OmicsClaw

Load when placing bulk RNA-seq samples on a single-cell reference's pseudotime axis (NNLS deconvolution + nearest-neighbour mapping).

Apache-2.0Auto-check passedResearch & Science

Install Bulkrna Trajblend

skills CLI
$ npx skills add TianGzlab/OmicsClaw --skill bulkrna-trajblend -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TianGzlab/OmicsClaw bulkrna-trajblend --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TianGzlab/OmicsClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/bulkrna/bulkrna-trajblend .claude/skills/bulkrna-trajblend && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bulkrna-trajblend
GitHub stars
161
Token cost
~1.6k tokens
SKILL.md length
579 words
Files
8 (incl. references)
Skills in repo
88
Repo updated
First seen
Licence
Apache-2.0

At a glance

Load when placing bulk RNA-seq samples on a single-cell reference's pseudotime axis (NNLS deconvolution + nearest-neighbour mapping).

  • Tasks that involve Bioinformatics
  • SKILL.md covers When to use, Use from a step, API and Methods and parameters, plus 5 more sections
  • Runs Python scripts from its folder; calls python
  • Tasks that involve DataFrames

What it does

Bulkrna Trajblend is an agent skill from TianGzlab/OmicsClaw. Load when placing bulk RNA-seq samples on a single-cell reference's pseudotime axis (NNLS deconvolution + nearest-neighbour mapping). Skip when plain cell-type proportions (use bulkrna-deconvolution); native single-cell trajectory inference (use sc-pseudotime).

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including reference files (for example `_api.py`, `bulkrna_trajblend.py` and `examples/example_step.py`).

It sits in Research & Science, covering Bioinformatics and DataFrames. The repository describes itself as: Conversational & memory-enabled AI research partner for multi-omics analysis. CLI + Desktop App (installers in Releases). From biological idea to full research paper. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Bioinformatics
  • Tasks that involve DataFrames

Example prompts

  • “/bulkrna-trajblend”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 90a3bec. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bulkrna Trajblend loads about 1.6k tokens when it runs, and up to ~2k if it reads all its reference files. Until then it costs about 70 tokens; SKILL.md has 579 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TianGzlab/OmicsClaw at commit 90a3bec, republished under its Apache-2.0 licence (© TianGzlab). 579 words, ~1,551 tokens.

Download SKILL.mdSave it as .claude/skills/bulkrna-trajblend/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
bulkrna-trajblend
description
Load when placing bulk RNA-seq samples on a single-cell reference's pseudotime axis (NNLS deconvolution + nearest-neighbour mapping). Skip when plain cell-type proportions (use bulkrna-deconvolution); native single-cell trajectory inference (use sc-pseudotime).
trigger
trajblend, trajectory, bulk to single cell, interpolation, bulk2single, VAE, deconvolution trajectory
tags
bulkrna, trajectory, pseudotime, deconvolution, single-cell

bulkrna-trajblend

When to use

Place bulk samples on an observed single-cell pseudotime axis and estimate cell-type fractions. Use bulkrna-deconvolution for fractions without placement and sc-pseudotime to infer a trajectory on the reference first.

Use from a step

python
from skills._sdk.notebook import load_skill, write_output
library = load_skill('bulkrna-trajblend')
data, reference, labels, pseudotime = library.demo_data(random_state=42)
result = library.map_trajectory(data, reference=reference, labels=labels, pseudotime=pseudotime)
write_output(result, 'tables/pseudotime_estimates.csv')

For real files, pass read_fastq, read_log or read_reference as appropriate to read_input(..., reader=...). examples/example_step.py is executable.

API

<!-- api:begin generated from _api.py; regenerate with run.py api <skill dir> --write -->
read_reference(path: str | Path, *, cell_type_key: str='cell_type', pseudotime_key: str='pseudotime') -> tuple

Read a reference with annotations; pass this function as reader= to read_input.

:param path: H5AD with expression in X, or cell-by-gene CSV/TSV with annotation columns. :param cell_type_key: CLI default cell_type; change for a named annotation column. :param pseudotime_key: CLI default pseudotime; supply an observed reference trajectory value. :returns: Cell-by-gene DataFrame, indexed cell-type Series and indexed pseudotime Series. :raises ValueError: Required annotations are missing. :raises ImportError: H5AD reading needs anndata; install it with install_skill_deps.

map_trajectory(bulk: pd.DataFrame, *, reference: pd.DataFrame, labels: pd.Series, pseudotime: pd.Series, k: int=15, random_state: int=42) -> pd.DataFrame

Return bulk pseudotime estimates from NNLS and joint PCA/kNN placement.

:param bulk: Sample-by-gene nonnegative expression on a scale comparable with the reference. :param reference: Cell-by-gene expression with at least fifty shared genes. :param labels: Cell-type labels indexed by reference cell identifiers. :param pseudotime: Observed reference pseudotime indexed by cell identifiers; never synthesized. :param k: CLI default 15 nearest reference cells; reduce for a smaller reference. :param random_state: CLI seed 42 forwarded to PCA; change to assess randomized-solver sensitivity. :returns: New sample-indexed pseudotime table; fractions and embeddings remain in attrs. :raises ValueError: Matrices, annotations, gene overlap or neighbor count are invalid. :raises ImportError: Missing scipy/scikit-learn; use install_skill_deps.

fractions(result: pd.DataFrame) -> pd.DataFrame

Return the estimated cell-type fractions.

:param result: Output of map_trajectory retaining attrs. :returns: A separate sample-by-cell-type DataFrame. :raises KeyError: Fraction diagnostics are absent.

run_info(result: pd.DataFrame, *, keep: bool=True) -> dict

Read placement diagnostics and plot data.

:param result: Output of map_trajectory. :param keep: True preserves attrs; False removes diagnostics before serialization. :returns: Separate method, seed, fractions, embedding and annotation values. :raises TypeError: The result is not a DataFrame.

trajectory_figure(result: pd.DataFrame)

Plot bulk and reference PCA coordinates colored by reference pseudotime.

:param result: Placement result retaining its diagnostic attrs. :returns: A matplotlib Figure without writing files. :raises KeyError: Embedding diagnostics are absent.

Show full SKILL.md (224 more words)Show less
fractions_figure(result: pd.DataFrame)

Plot sample-by-cell-type proportions.

:param result: Placement result retaining its diagnostic attrs. :returns: A matplotlib Figure without writing files. :raises KeyError: Fraction diagnostics are absent.

demo_data(*, random_state: int=42) -> tuple

Generate synthetic bulk mixtures and an annotated reference in memory.

:param random_state: CLI seed 42; change for another simulation without global RNG mutation. :returns: Bulk table, reference table, cell-type Series and pseudotime Series. :raises ValueError: The seed is invalid.

<!-- api:end -->

Methods and parameters

map_trajectory takes sample/cell rows and gene columns. NNLS estimates cell-type fractions. Joint reference-plus-bulk log1p expression is standardized, projected with PCA, and mapped with 15 nearest reference cells. Use comparable expression scales; at least 50 shared genes are required. PCA receives random_state=42. The CLI's --n-epochs remains unused; no VAE or GNN is fitted.

Gotchas

  • read_reference requires cell_type and pseudotime annotations; it does not fabricate Unknown labels or zero pseudotime.
  • map_trajectory aligns both annotation Series by reference cell index.
  • pseudotime_std is neighbor spread, not a calibrated confidence interval.
  • run_info retains fractions and PCA coordinates in DataFrame attrs; CSV serialization does not preserve them.

Inputs and outputs

The CLI writes these artifacts; functions return DataFrames and Figures without writing them:

  • tables/cell_fractions.csv
  • tables/pseudotime_estimates.csv
  • figures/fraction_heatmap.png
  • figures/bulk_on_trajectory.png
  • figures/pseudotime_distribution.png
  • figures/trajectory_embedding.png
  • report.md
  • result.json
  • reproducibility/commands.sh

CLI

bash
python skills/bulkrna/bulkrna-trajblend/bulkrna_trajblend.py --demo --output /tmp/bulkrna_trajblend

For real files use --input <file>; trajectory placement also needs --reference <file>.

See also

  • references/methodology.md
  • references/parameters.md
  • references/output_contract.md

Dependencies

matplotlib, numpy, pandas, anndata, scikit-learn, scipy

© TianGzlab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (references) in skills/bulkrna/bulkrna-trajblend of TianGzlab/OmicsClaw.

  • SKILL.md
  • _api.py
  • bulkrna_trajblend.py
  • examples/example_step.py
  • references/methodology.md
  • references/output_contract.md
  • references/parameters.md
  • tests/test_api.py

Open the folder on GitHubat commit 90a3bec

Compare with similar skills

Bulkrna Trajblend next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Bulkrna Trajblend compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bulkrna Trajblend this skillTianGzlab/OmicsClaw161—~1.6kAutomated safety check: PassApache-2.0
ArboretoK-Dense-AI/scientific-agent-skills48k1 repos~2.7kAutomated safety check: PassBSD-3-Clause
Bio Proteomics Spectral LibrariesGPTomics/bioSkills1.2k1 repos~4.6kAutomated safety check: PassMIT
Arboreto Grn Inferencejaechang-hits/SciAgent-Skills3742 repos~5.3kAutomated safety check: PassBSD-3-Clause
Lamindb Data Managementjaechang-hits/SciAgent-Skills3742 repos~4kAutomated safety check: PassApache-2.0
Bio Expression Matrix Sparse HandlingGPTomics/bioSkills1.2k1 repos~5.6kAutomated safety check: PassMIT

Similar skills

  • Arboreto

    K-Dense-AI/scientific-agent-skills

    Infers candidate gene regulatory networks from bulk or single-cell expression data using AertsLab Arboreto GRNBoost2 and GENIE3.

    48k GitHub starsUsed in 1 repo~2.7k tokens
    Research & ScienceAuto-check passed
  • Builds and manages DIA spectral libraries as peptide query parameters (precursor m/z, a few fragment m/z plus relative intensities, normalized RT, optional CCS), covering experimental DDA…

    1.2k GitHub starsUsed in 1 repo~4.6k tokens
    Research & ScienceAuto-check passed
  • Arboreto Grn Inference

    jaechang-hits/SciAgent-Skills

    GRN inference from expression via GRNBoost2 (gradient boosting) or GENIE3 (Random Forest).

    374 GitHub starsUsed in 2 repos~5.3k tokens
    Research & ScienceAuto-check passed
  • Lamindb Data Management

    jaechang-hits/SciAgent-Skills

    Open-source FAIR biology data framework. An agent skill from jaechang-hits/SciAgent-Skills.

    374 GitHub starsUsed in 2 repos~4k tokens
    Research & ScienceAuto-check passed
  • Stores and operates on sparse expression matrices for single-cell and large bulk RNA-seq, covering dgCMatrix/dgRMatrix/dgTMatrix when-each-is-fast, the dgCMatrix (CSC, R) <- CSR (Python) implicit…

    1.2k GitHub starsUsed in 1 repo~5.6k tokens
    Research & ScienceAuto-check passed
  • Bio Proteomics Dia Analysis

    GPTomics/bioSkills

    Analyzes data-independent acquisition (DIA) proteomics by scoring reconstructed fragment-chromatogram peak groups against a decoy null with DIA-NN (library-free directDIA, library-based, or…

    1.2k GitHub starsUsed in 1 repo~5.4k tokens
    Research & ScienceAuto-check passed

More from TianGzlab/OmicsClaw

All 88 skills in this repo
  • Bulkrna Cosinor Rhythm

    TianGzlab/OmicsClaw

    Load when the user needs Deterministic fixed-period 24-hour single-component cosinor OLS rhythm analysis for a bulk RNA time-course CSV.

    161 GitHub stars~840 tokensUpdated 2 days ago
    Auto-check passed
  • Bulkrna Batch Correction

    TianGzlab/OmicsClaw

    Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation.

    161 GitHub stars~1.2k tokensUpdated 2 days ago
    Auto-check passed
  • Bulkrna Coexpression

    TianGzlab/OmicsClaw

    Load when discovering bulk gene co-expression modules and hub genes with R WGCNA.

    161 GitHub stars~1.3k tokensUpdated 2 days ago
    Auto-check passed
  • Bulkrna De

    TianGzlab/OmicsClaw

    Load when comparing gene expression between two conditions in bulk RNA-seq count data.

    161 GitHub stars~867 tokensUpdated 2 days ago
    Auto-check passed
  • Bulkrna Deconvolution

    TianGzlab/OmicsClaw

    Load when estimating cell-type proportions in bulk RNA-seq samples from a single-cell or signature-matrix reference.

    161 GitHub stars~757 tokensUpdated 2 days ago
    Auto-check passed
  • Bulkrna Enrichment

    TianGzlab/OmicsClaw

    Load when running pathway / GO term enrichment on a bulk RNA-seq DE result list.

    161 GitHub stars~860 tokensUpdated 2 days ago
    Auto-check passed

Questions about Bulkrna Trajblend

What does Bulkrna Trajblend do?

Load when placing bulk RNA-seq samples on a single-cell reference's pseudotime axis (NNLS deconvolution + nearest-neighbour mapping). Bulkrna Trajblend is an agent skill from TianGzlab/OmicsClaw. Load when placing bulk RNA-seq samples on a single-cell reference's pseudotime axis (NNLS deconvolution + nearest-neighbour mapping).

When should I use Bulkrna Trajblend?

Bulkrna Trajblend fits situations like: tasks that involve Bioinformatics; tasks that involve DataFrames.

How do I install Bulkrna Trajblend in Claude Code?

Run `npx skills add TianGzlab/OmicsClaw --skill bulkrna-trajblend -a claude-code`. Or copy the skill folder (skills/bulkrna/bulkrna-trajblend in TianGzlab/OmicsClaw) into .claude/skills/bulkrna-trajblend in your project. Claude Code loads it when a task matches its description.

How do I install Bulkrna Trajblend in Codex?

Run `npx skills add TianGzlab/OmicsClaw --skill bulkrna-trajblend -a codex`. Or copy the skill folder (skills/bulkrna/bulkrna-trajblend in TianGzlab/OmicsClaw) into .agents/skills/bulkrna-trajblend in your project. Codex loads it when a task matches its description.

Can I use Bulkrna Trajblend in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TianGzlab/OmicsClaw --skill bulkrna-trajblend -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bulkrna-trajblend, .gemini/skills/bulkrna-trajblend, .github/skills/bulkrna-trajblend and .opencode/skills/bulkrna-trajblend in your project.

What does Bulkrna Trajblend need to run?

Going by SKILL.md and its folder, Bulkrna Trajblend needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Bulkrna Trajblend access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Bulkrna Trajblend safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Bulkrna Trajblend use?

Bulkrna Trajblend is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Bulkrna Trajblend use?

About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 422 tokens, read only when the agent opens those files.

What are the alternatives to Bulkrna Trajblend?

Skills that share tags, products or a category with Bulkrna Trajblend: Arboreto (K-Dense-AI/scientific-agent-skills, 48k stars), Bio Proteomics Spectral Libraries (GPTomics/bioSkills, 1.2k stars), Arboreto Grn Inference (jaechang-hits/SciAgent-Skills, 374 stars) and Lamindb Data Management (jaechang-hits/SciAgent-Skills, 374 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bulkrna Trajblend?

TianGzlab (a GitHub organization) maintains it in TianGzlab/OmicsClaw, which has 161 GitHub stars. The repository holds 88 skills in this directory. The repository was last updated on October 7, 2026.

Source: TianGzlab/OmicsClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.