Runs FASTQ-to-VCF germline and somatic variant calling via the Nextflow nf-core/sarek pipeline (pinned to v3.10.0). Builds samplesheet, runs alignment (bwa-mem/bwa-mem2/dragmap), GATK4 MarkDuplicates, BQSR, and selects callers (HaplotypeCaller, DeepVariant, Strelka, Mutect2). Includes a non-Nextflow GATK4 fallback.
The workflow-runner entry point for raw-reads-to-variants: drive the
Nextflow nf-core/sarek pipeline (pinned -r 3.10.0)
to take germline or somatic short-read FASTQ through alignment, GATK4 duplicate
marking and base-quality recalibration, and SNV/indel calling, then hand the
resulting VCFs to the suite's database and parsing skills for interpretation.
This skill is the command-line / workflow counterpart to the suite's
Python-library bioinformatics skills. Use it for the raw-data-to-VCF leg;
use the library skills (alterlab-pysam, alterlab-tiledbvcf) once you hold a VCF.
Trigger this skill when the user wants to:
--step (already have BAM/CRAM, only need
recalibration or variant calling).| The request is really about… | Route to |
|---|---|
| Parsing / filtering / reading an existing VCF/BAM in Python (pysam/htslib) | alterlab-pysam |
| Storing / querying large multi-sample variant stores (TileDB-VCF arrays) | alterlab-tiledbvcf |
| Clinical significance of a called variant (pathogenic/benign) | alterlab-clinvar |
| Population allele frequencies for a called variant | alterlab-gnomad |
| Somatic mutation catalogue / cancer census lookup | alterlab-cosmic |
| RNA-seq transcript/gene quantification (salmon/kallisto), not DNA variants | alterlab-rnaseq-quant |
| 16S/ITS amplicon / microbiome FASTQ → feature table | alterlab-qiime2-amplicon |
| Sequence homology / similarity search (BLAST+, DIAMOND) | alterlab-blast |
| Spatial transcriptomics neighborhood/SVG analysis | alterlab-squidpy-spatial |
| Differential expression stats from counts | alterlab-pydeseq2 |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-pysam) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
If the user has no workflow engine and cannot install Nextflow + containers,
do not refuse — fall back to the manual GATK4 recipe (below /
references/manual_gatk4.md).
Per the 3.10.0 usage docs, when
--tools is not set, sarek runs preprocessing and then Strelka only. It does
not default to GATK HaplotypeCaller or DeepVariant. Always set --tools
explicitly to match the user's intent:
| Intent | Pass |
|---|---|
| GATK4 best-practice germline | --tools haplotypecaller |
| Highest germline F1 (CNN) | --tools deepvariant |
| Somatic, matched tumor/normal | --tools mutect2 (often mutect2,strelka) |
| Joint germline genotyping across a cohort | --tools haplotypecaller --joint_germline |
| GPU-accelerated germline (needs an NVIDIA GPU profile) | --tools parabricks_haplotypecaller |
--tools accepts (per the 3.10.0 schema): deepvariant, freebayes,
haplotypecaller, parabricks_haplotypecaller, mutect2, lofreq, mpileup,
muse, strelka, sentieon_*, structural-variant callers (manta, tiddit,
indexcov), CNV/purity tools (ascat, cnvkit, controlfreec), QC
(ngscheckmate, msisensorpro), varlociraptor, and the annotation tools
(snpeff, vep, snpsift, bcfann). Caller choice materially changes precision/recall — see
references/caller_accuracy.md for the nf-core benchmark (Hanssen et al., 2024).
sarek's input is a CSV. Required columns for --step mapping:
patient, sample, lane, fastq_1, fastq_2. Optional: sex (XX/XY,
default NA) and status (0 = normal, 1 = tumor, default 0) — status
is what tells sarek a pair is somatic.
Use the helper to generate a valid sheet from a FASTQ directory (it pairs R1/R2,
fills lane, and validates the schema before you burn compute):
uv run python scripts/make_samplesheet.py \
--fastq-dir ./fastq --patient PATIENT_01 --sample TUMOR_01 \
--status 1 --sex XY --out samplesheet.csv
Append more rows (e.g. the matched normal with --status 0 --append) before
running. See references/samplesheet_schema.md for every column, BAM/CRAM
re-entry rows, and a tumor-normal example.
nextflow run nf-core/sarek -r 3.10.0 \
-profile docker \
--input samplesheet.csv \
--outdir ./results \
--genome GATK.GRCh38 \
--tools haplotypecaller \
--aligner bwa-mem2
-r 3.10.0 — unpinned runs drift to a different pipeline version.-profile is mandatory: docker, singularity, apptainer, or conda
for the local environment (clusters add test, institutional configs, etc.).--genome GATK.GRCh38 selects the iGenomes/GATK GRCh38 reference and its
bundled BQSR known-sites (dbSNP, Mills/1000G indels) automatically.--aligner options: bwa-mem (default), bwa-mem2, dragmap, sentieon-bwamem,
parabricks (GPU).--wes and --intervals targets.bed: --intervals
restricts where calling happens, while --wes switches the tools to
targeted-sequencing settings. Exome data run without --wes completes happily with
WGS-tuned thresholds.--step (mapping default, then markduplicates,
prepare_recalibration, recalibrate, variant_calling, annotate) and
Nextflow's -resume.Preprocessing follows GATK best practice: align → MarkDuplicates →
BaseRecalibrator/ApplyBQSR (BQSR) → variant calling. Details and every flag:
references/usage_3.10.0.md.
Per-caller VCFs land under results/variant_calling/<tool>/. Then:
alterlab-pysam.alterlab-tiledbvcf.alterlab-clinvar; population frequency →
alterlab-gnomad; somatic catalogue → alterlab-cosmic.If the user cannot run Nextflow + containers, run the equivalent GATK4
best-practices chain by hand: bwa-mem2 mem → gatk MarkDuplicates →
gatk BaseRecalibrator + gatk ApplyBQSR (with dbSNP + Mills/1000G known
sites) → gatk HaplotypeCaller -ERC GVCF → gatk GenotypeGVCFs. Full command
sequence and the resource-bundle paths are in references/manual_gatk4.md.
--tools set explicitly? Never let a run fall through to the Strelka
default unless the user truly wants Strelka.-r 3.10.0), a -profile chosen, and is Nextflow
>=25.10.4 (the version 3.10.0 requires)?status 1 tumor and a
status 0 normal under the same patient?--wes and --intervals <capture.bed> supplied?references/usage_3.10.0.md — pinned run command, profiles, --step/--aligner
options, the --wes + --intervals pairing, BQSR preprocessing, sourced from the
3.10.0 usage docs.references/samplesheet_schema.md — full CSV column spec, BAM/CRAM re-entry,
tumor-normal worked example.references/caller_accuracy.md — choosing --tools, summarizing the nf-core
benchmark (Hanssen et al., 2024, NAR Genomics & Bioinformatics).references/manual_gatk4.md — the non-Nextflow GATK4 best-practices fallback.Part of the AlterLab Academic Skills suite.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
variant-calling, nf-core-sarek, gatk4, nextflow, bioinformatics, fastq-to-vcf
Not loaded · from alterlab-writing-tools
Claude Code won't load this skill
It ships in alterlab-writing-tools at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Generated from the plugin's indexed repository (alterlab-ieu/alterlab-academic-skills) — no native marketplace selected
npx claudepluginhub p/alterlab-ieu-alterlab-writing-tools241 skills in this plugin
/alterlab-abm-mesaBuilds agent-based models of social systems with Mesa 3 — the current AgentSet API (model.agents.shuffle_do('step'), auto-assigned unique_id, mandatory super().__init__(rng=...)), cell spaces (mesa.discrete_space OrthogonalMooreGrid / classic mesa.space grids), the DataCollector, batch_run parameter sweeps, and SolaraViz — for emergence, segregation, diffusion, opinion dynamics, and cooperation models. It uses the Mesa 3.x API (the old mesa.time schedulers like RandomActivation are removed) and treats the model as a generative theory to be validated, not just run. Use when the request mentions an agent-based model, Mesa, simulating interacting agents, or emergent macro behavior from micro rules. For discrete-event (queueing/process) simulation prefer alterlab-simpy; for reinforcement learning prefer alterlab-stable-baselines3. Part of the AlterLab Academic Skills suite./alterlab-academic-careerPrepares academic career documents and professional-development materials for faculty and researchers. Use when drafting academic CVs, research statements, teaching philosophies, diversity statements, faculty-position cover letters, tenure dossiers, promotion narratives, academic portfolios, or mentorship statements, and when planning conference-networking strategy, building academic web presence, setting up ORCID profiles, or understanding impact metrics. Part of the AlterLab Academic Skills suite.2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
Other plugins' skills for the same job