bulkrna-cosinor-rhythm

bulkrna-cosinor-rhythm is a skill for Claude Code, Codex from TianGzlab/OmicsClaw. It costs 52 tokens per session (833 once invoked), scanned A, original, Apache-2.0.

A scientific analysis skill for fitting a fixed 24-hour cosine curve to each gene in a bulk RNA time-course CSV. Bulk RNA time-course data measures gene activity across samples collected at different times.

In plain words
What is it for?
Use it with gene-indexed CSV data whose sample columns follow names such as `T00_R1`, to calculate rhythm parameters, diagnostics, summaries, and fitted-rhythm plots.
Why use it?
It provides a defined method for identifying daily rhythmic patterns without changing the period or adding unsupported model complexity. It also reports fit parameters and diagnostic information.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it with gene-indexed CSV data whose sample columns follow names such as T00_R1, to calculate rhythm parameters, diagnostics, summaries, and fitted-rhythm plots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tiangzlab/omicsclaw/bulkrna-cosinor-rhythm
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add TianGzlab/OmicsClaw --skill bulkrna-cosinor-rhythm
Clone the repo
git clone --depth 1 https://github.com/TianGzlab/OmicsClaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bulkrna-cosinor-rhythm

README.md
[![agentmods](https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/bulkrna-cosinor-rhythm/github.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/bulkrna-cosinor-rhythm)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/bulkrna-cosinor-rhythm"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/bulkrna-cosinor-rhythm/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bulkrna-cosinor-rhythm

Your own site · 80×15
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/bulkrna-cosinor-rhythm"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/bulkrna-cosinor-rhythm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 833 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00833
Opus 5.5 $0.00021 $0.00333
Sonnet 5.5 $0.00010 $0.00167
Haiku 4.5 $0.00005 $0.00083

Measured 1mo ago against content hash 7e0565554016, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bulkrna-cosinor-rhythm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (_api.py, bulkrna_cosinor_rhythm.py, examples/example_step.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bulkrna/run-derived/bulkrna-cosinor-rhythm/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

bulkrna-cosinor-rhythm

Purpose

Use this Skill for a bulk RNA time-course CSV whose sample columns follow T{hour}_R{replicate} and require a deterministic 24-hour, single-component cosinor OLS fit per gene. Use another method when the period must be estimated, the design has covariates, or multi-harmonic/non-sinusoidal rhythms are needed.

Inputs & Outputs

Outputs

  • report.md
  • result.json
  • cosinor_results.csv
  • semantic_summary.json

API

fit(timecourse)

Fit a fixed 24-hour sinusoid independently to each gene.

:param timecourse: Gene-indexed DataFrame with T00_R1-style sample columns. :returns: Parameter DataFrame with descriptive rhythmic flags and diagnostics. :raises ValueError: Empty data, missing time columns or infinite expression.

run_info(result, *, keep=True)

Read gene counts and time-column filtering decisions.

:param result: DataFrame returned by fit. :param keep: Default True; False removes diagnostic attrs. :returns: Diagnostic dictionary, empty after removal.

rhythm_figure(result)

Plot fitted amplitude against phase, without writing files.

:param result: Parameter DataFrame returned by fit. :returns: matplotlib Figure. :raises KeyError: Parameter columns are missing.

Flow

  1. Load --input <csv> or the repository-bound demo dataset via --demo.
  2. Parse time and replicate identities from the sample columns.
  3. Fit mesor + beta_cos*cos(2*pi*t/24) + beta_sin*sin(2*pi*t/24) by OLS.
  4. Derive amplitude, phase, fit statistics, and the per-gene rhythmicity verdict.
  5. Write cosinor_results.csv, semantic_summary.json, report.md, and the standard result envelope.

Gotchas

  • cosinor_results.csv marks rhythmic genes with descriptive thresholds (R-squared ≥ 0.8 and amplitude/mesor ≥ 0.2), not a significance test.
  • semantic_summary.json lists columns dropped for more than 20% missing values. Duplicate gene identifiers keep their first row; fits with insufficient observations or a singular design return missing parameters.
  • cosinor_results.csv uses a fixed 24-hour period; --method is retained as a report label, not a backend selector.

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 98 lines · 52 tokens per session scan A 7e0565554016

Subscribe to this mod's changes

bulkrna-cosinor-rhythm is a skill published in the GitHub repository TianGzlab/OmicsClaw (161 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 52 tokens to every session and 833 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-08.

Related

bulkrna-cosinor-rhythm compared with skills from other repositories

bulkrna-cosinor-rhythm next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bulkrna-cosinor-rhythmTianGzlab/OmicsClawSkill1611mo agoApache-2.0A52Claude Code, Codex
scanpysynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A68Claude Code, Codex
cellxgene-census-queryPharMolix/OpenBioMedSkill1.1k4mo agoMITA105Claude Code, Codex
single-cell-scrna-seq-analysis-scanpyPharMolix/OpenBioMedSkill1.1k4mo agoMITA85Claude Code, Codex
single-cell-multi-omics-analysis-scviPharMolix/OpenBioMedSkill1.1k4mo agoMITA94Claude Code, Codex
molview-specPDBeurope/PDBe-MCP-ServersSkill4814d agoApache-2.0A57Claude Code, Codex
anndatasynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A63Claude Code, Codex