sciagent-skill-creator
Scaffold a new SciAgent-Skills entry. Picks pipeline/toolkit/database/guide template, creates skills/{category}/{name}/SKILL.md…
Compute the bacterial pan-genome from Prokka/Bakta GFF3 annotations with Roary's CD-HIT + BLAST + MCL clustering pipeline. Builds gene presence/absence matrices, core/soft-core/shell/cloud partitions, multi-FASTA core gene alignments (with `-e`), and a pan-genome reference. Use
Claude Code
$ npx -y skills add jaechang-hits/SciAgent-Skills --skill roary-pangenome --agent claude-code
Codex
$ npx skills add jaechang-hits/SciAgent-Skills --skill roary-pangenome -a codex -y
Cursor
$ npx skills add jaechang-hits/SciAgent-Skills --skill roary-pangenome -a cursor -y
Gemini CLI
$ npx skills add jaechang-hits/SciAgent-Skills --skill roary-pangenome -a gemini-cli -y
GitHub Copilot
$ npx skills add jaechang-hits/SciAgent-Skills --skill roary-pangenome -a github-copilot -y
OpenCode
$ npx skills add jaechang-hits/SciAgent-Skills --skill roary-pangenome -a opencode -y
Windsurf
$ npx skills add jaechang-hits/SciAgent-Skills --skill roary-pangenome -a windsurf -y
name: "roary-pangenome" description: "Compute the bacterial pan-genome from Prokka/Bakta GFF3 annotations with Roary's CD-HIT + BLAST + MCL clustering pipeline. Builds gene presence/absence matrices, core/soft-core/shell/cloud partitions, multi-FASTA core gene alignments (with `-e`), and a pan-genome reference. Use Panaroo for higher-accuracy pan-genomes from highly fragmented assemblies, PIRATE for paralog-aware clustering, or PPanGGOLiN for graph-based partitioning." license: "GPL-3.0"
Roary is a high-throughput pan-genome pipeline for prokaryotes that takes per-sample GFF3 annotations (typically from Prokka or Bakta) and produces a clustered gene presence/absence matrix across the entire input set. It first reduces redundancy with CD-HIT iterative clustering, then performs an all-vs-all BLASTP within each pre-cluster, and finally applies MCL graph clustering to define orthologous gene families. The output partitions the gene space into core (≥ 99 %), soft-core (95–99 %), shell (15–95 %), and cloud (< 15 %) genes and optionally builds a concatenated core-gene alignment suitable for phylogenetic inference.
> **Check before installing**: The tool may already be available in the current environment (e.g., inside a `pixi` / `conda` env). Run `command -v roary` first and skip the install commands below if it returns a path. When running inside a pixi project, invoke the tool via `pixi run roary` rather than bare `roary`.
# Install Roary via conda/mamba (recommended) mamba install -c conda-forge -c bioconda roary # Verify installation roary --version # 3.13.0 # Verify dependent tools which cd-hit blastp mcl bedtools mafft # /opt/conda/bin/cd-hit # /opt/conda/bin/blastp # /opt/conda/bin/mcl # /opt/conda/bin/bedtools # /opt/conda/bin/mafft # Install Python parsing dependencies pip install pandas matplotlib seaborn biopython dendropy
Settle these with the user before writing any analysis code.
decisions:
- id: D1
param: inputAnnotations
kind: derived
source: upstream
ask: "Which GFF3 files, and were they all produced by the same annotation tool and version?"
default: "the annotation stage output"
- id: D2
param: identityThreshold
kind: required
source: user
ask: "How similar must two proteins be to count as the same gene? Lower values merge diverged orthologs; higher values split them."
default: "95%"
- id: D3
param: coreDefinition
kind: required
source: user
ask: "In what fraction of isolates must a gene appear before it counts as core?"
default: "99%"
- id: D4
param: paralogSplitting
kind: required
source: user
ask: "Should duplicated genes within a genome be split into separate families, or kept together?"
default: "split"
- id: D5
param: coreAlignment
kind: required
source: upstream
ask: "Is a concatenated core-gene alignment needed for a downstream phylogeny?"
default: "not produced - it is the slowest stage by a wide margin"
- id: D6
param: alignmentSpeed
kind: optional
source: user
depends_on: [D5]
ask: "Align every gene accurately, or use the fast route sufficient for tree building?"
default: "fast alignment"
skip_if: "no core alignment requested"
- id: D7
param: clusterInflation
kind: optional
source: user
ask: "How tightly should the clustering step group families?"
default: 1.5
- id: D8
param: maxClusters
kind: optional_conditional
source: data
ask: "Is the expected number of gene families above the default cap?"
default: 50000
- id: D9
param: processes
kind: never_ask
source: data
reason: "Affects runtime only, not the gene families"
default: "min(8, available_cores)"D1 is derived and carries a consistency requirement rather than a choice: Roary compares annotations, so GFF3 files from different annotation tools or database versions produce apparent presence/absence differences that are annotation artefacts, not biology. D2 and D3 together decide the size of the core genome, which is usually the headline number of the analysis.
# Run Roary on all GFF3 files in current directory; emit core gene alignment roary -e --mafft -p 8 -o pangenome -f roary_out/ *.gff # Inspect summary statistics cat roary_out/summary_statistics.txt # Core genes (99% <= strains <= 100%) 2823 # Soft core genes (95% <= strains < 99%) 78 # Shell genes (15% <= strains
Turn your AI coding agent into a life sciences expert — 199 bioinformatics skills for Claude Code covering RNA-seq, single-cell analysis, genomics, proteomics, drug discovery, and more. Boosted BixBench from 65% to 92%. Open source.
Scaffold a new SciAgent-Skills entry. Picks pipeline/toolkit/database/guide template, creates skills/{category}/{name}/SKILL.md…
Bayesian modeling with PyMC 5: priors, likelihood, NUTS/ADVI sampling, diagnostics (R-hat, ESS), LOO/WAIC comparison, prediction.…
Time-to-event modeling with scikit-survival: Cox PH (elastic net), Random Survival Forests, Boosting, SVMs for censored data.…
Guided statistical analysis: test choice, assumption checks, effect sizes, power, APA reporting. Pick tests, verify assumptions,…
Python statistical modeling: regression (OLS, WLS, GLM), discrete (Logit, Poisson, NegBin), time series (ARIMA, SARIMAX, VAR),…
DL cell/nucleus segmentation for fluorescence and brightfield microscopy. Pre-trained models (cyto3, nuclei, tissuenet) and a…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.