Skip to main content
skill CX Codex GP ChatGPT official · OpenAI

ngs-dna-variant-calling — Codex skill: what it does, how to install

Dispatches WGS, WES, and targeted DNA variant analysis to specialized skills. Plans pipelines with nf-core/sarek, GATK4, DeepVariant, or bcftools.

Install into Codex · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/plugins --skill ngs-dna-variant-calling -a codex
Open on GitHub

What ngs-dna-variant-calling does

This skill acts as a front dispatcher for DNA variant analysis across WGS, WES, and targeted panel sequencing. It accepts FASTQ, BAM, or CRAM inputs and clarifies the experimental setup. Requests route directly to ngs-dna-germline-variants for inherited traits, ngs-dna-somatic-variants for cancer samples, or ngs-dna-umi-panel-variants for duplex barcode data.

For production pipelines, it favors nf-core/sarek workflows under Nextflow. It also includes a local script, run_dna_variant_calling.py, for focused samtools and bcftools checks. That runner calculates read depth, generates soft-filtered VCF files, and emits reference readiness artifacts.

Clinical interpretation remains strictly out of scope. Mixing genome builds between FASTA, BED files, and annotation caches will invalidate downstream analysis.

What it helps with

  • route DNA variant analysis to germline, somatic, or UMI subskills
  • draft nf-core/sarek execution commands for WGS and WES data
  • execute local variant calling via samtools and bcftools on BAM or CRAM
  • verify reference genome resources before launching large pipelines

Example prompts for the agent

  • Plan a somatic variant calling run for tumor-normal pairs using nf-core/sarek on GRCh38.
  • Run local variant calling on sample.bam for region chr20:1-100000 with reference.fa.
  • Determine the right workflow for a targeted panel sequencing dataset with UMI barcodes.

How to install ngs-dna-variant-calling

1Skills CLI (Vercel)

npx skills add openai/plugins --skill ngs-dna-variant-calling -a codex

2Manually: put the files in place

.agents/skills/ngs-dna-variant-calling/SKILL.md

For all projects use ~/.agents/skills/

Step by step, with commands for each platform: Codex skills: how to install, where they live, how to call them

Questions about ngs-dna-variant-calling

How to install ngs-dna-variant-calling in Codex?

Run npx skills add openai/plugins --skill ngs-dna-variant-calling in your terminal. To target Codex explicitly, run npx skills add openai/plugins --skill ngs-dna-variant-calling -a codex.

Where does the skill route variant calling requests?

It routes requests to ngs-dna-germline-variants for germline sequencing, ngs-dna-somatic-variants for tumor-normal or tumor-only cancer sets, and ngs-dna-umi-panel-variants for UMI barcode panels.

When does the skill use the local runner instead of nf-core/sarek?

The bundled run_dna_variant_calling.py script handles targeted region checks and coverage summaries on BAM or CRAM inputs. End-to-end WGS or WES runs default to nf-core/sarek.

Source text

SKILL.md · MIT
---
name: ngs-dna-variant-calling
description: Dispatch WGS, WES, or targeted DNA variant requests to germline, somatic, or UMI-panel skills, then plan public nf-core/sarek, GATK4, DeepVariant, samtools, or bcftools workflows.
---

# DNA Variant Calling

Use this skill as the DNA variant-calling dispatcher for WGS, WES, or targeted DNA panel analysis from FASTQ, BAM, or CRAM. Once the sample model is clear, hand off to the narrow subtype skill.

## Essential Inputs

Confirm:

- data type: WGS, WES, or panel
- sample model: germline single sample, cohort, trio, tumor-only, or tumor-normal
- input type: FASTQ, BAM, or CRAM
- organism and reference genome
- known-sites resources for BQSR, if required
- target BED for WES or panels
- UMI or duplex handling
- desired callers and annotation outputs

## Dispatch

Route by biological/sample model:

- Germline singleton, cohort, family, trio, WGS, WES, or ordinary inherited panel: `ngs-dna-germline-variants`
- Tumor-normal, tumor-only, relapse-baseline, or other cancer somatic calling: `ngs-dna-somatic-variants`
- UMI, duplex, molecular-barcode, or low-frequency targeted panel calling: `ngs-dna-umi-panel-variants`

If the request is ambiguous, ask only for the missing sample model and assay design needed to choose among these three. Do not run one generic variant workflow when the request needs subtype-specific assumptions.

## Public Default

Prefer `nf-core/sarek` for an end-to-end public workflow. Use direct GATK4, DeepVariant, samtools, or bcftools commands only for smaller, focused tasks or when the user explicitly wants a custom pipeline.

## Preflight

```bash
python plugins/ngs-analysis/scripts/ngs_preflight.py --pipeline dna_variant_calling --emit-install-plan
```

## Local Execution Package

For a compact BAM/CRAM-to-VCF run with a matching reference FASTA, use the plugin-owned samtools/bcftools runner:

```bash
python plugins/ngs-analysis/scripts/run_dna_variant_calling.py \
  --sample-sheet dna_samples.tsv \
  --reference-fasta reference.fa \
  --region chr20:1-100000 \
  --filter-min-qual 30 \
  --filter-min-site-dp 10 \
  --execute
```

The sample sheet should include `sample` and `bam` or `cram` columns. When `--region` is provided the runner also emits per-base depth plus a callable-loci summary for that interval, and when filter thresholds are provided it emits a soft-filtered VCF alongside the raw calls. This package is suitable for focused local checks and run-envelope generation; subtype skills still own germline, somatic, UMI, reference-resource, cohort, annotation, and workflow assumptions.

This compact runner now writes advisory `resources/resource_plan.json`, `resource_manifest.tsv`, `resource_env.sh`, and `resource_readiness.md` artifacts for the selected genome bundle. Use `--require-resource-plan` when missing registered reference resources should block readiness; otherwise the explicit `--reference-fasta` remains enough for focused local checks.

## Kickoff Pattern

Preflight-first nf-core pattern:

```bash
nextflow run nf-core/sarek \
  -profile test,docker \
  --outdir results/sarek_test
```

Real run skeleton:

```bash
nextflow run nf-core/sarek \
  -profile docker \
  --input samplesheet.csv \
  --outdir results/sarek \
  --genome GRCh38 \
  --tools haplotypecaller,vep
```

For WES/panel data, include the target BED. For tumor-normal data, verify pair metadata before execution. For UMI panels, preserve barcode handling and molecule-level QC.

## Guardrails

- Do not mix genome builds across FASTA, GTF/BED, known sites, and VEP cache.
- Do not download large references without confirming disk space and target path.
- Treat clinical interpretation as out of scope unless the user has a validated clinical workflow.

© OpenAI · MIT · openai/plugins

Similar skills

All skills for Science and research →

From the same set528

The whole set →
plugin-eval This skill reviews local skills and plugins, explains their scores, and plans the next run. Use it for token measurements or starter benchmarks. CX Codex GP ChatGPT 2installs scrna-seq-qc Guides quality control, doublet removal, and cell annotation for scRNA-seq and snRNA-seq data. It helps Codex configure data-driven filters and clean AnnData objects. CX Codex GP ChatGPT 2installs ngs-scrna-seq This skill takes single-cell or single-nucleus RNA-seq from FASTQ to a count matrix, then hands QC and clustering to an embedded skill. CX Codex GP ChatGPT 2installs ngs-epigenomics-peaks Routes ATAC-seq, ChIP-seq, CUT&RUN and CUT&Tag work to the right pipeline: QC, alignment, signal tracks, peak calling, consensus and differential peaks. CX Codex GP ChatGPT 2installs ngs-dna-umi-panel-variants Plan or run targeted DNA panel analysis with UMIs, consensus reads and low-frequency variant calling. Useful when molecular evidence and panel-specific QC matter. CX Codex GP ChatGPT 2installs ngs-dna-somatic-variants A skill that plans and runs somatic variant workflows for tumor-normal and tumor-only designs, WGS, WES and cancer panels. Useful for checking sample pairs before a pipeline starts. CX Codex GP ChatGPT 2installs ngs-dna-germline-variants Plans and executes germline variant calling workflows for WGS, WES, or targeted gene panels. Useful for cohort and trio joint genotyping setups. CX Codex GP ChatGPT 2installs ngs-chip-cutrun-peaks-qc Plans and runs QC for ChIP-seq, CUT&RUN, and CUT&Tag, covering controls, peak calls, bigWigs, replicates, and differential binding. CX Codex GP ChatGPT 2installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor