Skip to content
Back to skills

Bcftools Variant Filtering Starter

ASecurity

Use this skill to run a deterministic `bcftools view` filtering example on a tiny VCF and capture the kept variants in a compact JSON summary.

  • 38 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentspythonbashexpresstesting

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill bcftools-variant-filtering-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bcftools Variant Filtering Starter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bcftools Variant Filtering Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-bcftools-variant-filtering-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-bcftools-variant-filtering-starter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# bcftools Variant Filtering Starter

Use this skill to run a deterministic `bcftools view` filtering example on a tiny VCF and capture the kept variants in a compact JSON summary.

## What it does

- Runs `bcftools view` with a configurable include expression against a local VCF.
- Writes a compressed filtered VCF plus a tabix index.
- Summarizes the input record count, passing record count, and kept IDs for testing and demos.

## When to use it

- You need a runnable starter for VCF filtering logic.
- You want a tiny verified example before building cohort-scale post-calling workflows.
- You need a smoke-testable wrapper around `bcftools` in the repo-managed genomics environment.

## Example

```bash
python3 skills/genomics/bcftools-variant-filtering-starter/scripts/run_bcftools_variant_filtering.py \
  --input skills/genomics/bcftools-variant-filtering-starter/examples/toy_variants.vcf \
  --out scratch/genomics/bcftools_variant_filtering_summary.json \
  --filtered-vcf-out scratch/genomics/toy_variants.filtered.vcf.gz
```

## Verification

- Skill-local tests: `python3 -m unittest discover -s skills/genomics/bcftools-variant-filtering-starter/tests -p 'test_*.py'`
- Expected summary: `passing_record_count == 2` and `kept_ids == ["varA", "varC"]`

Files in this skill

  • SKILL.md1.2 KB
  • assets/README.md107 B
  • assets/toy_variant_filtering_summary.json485 B
  • assets/toy_variants.filtered.vcf.gz535 B
  • assets/toy_variants.filtered.vcf.gz.tbi106 B
  • examples/README.md114 B
  • examples/toy_variants.vcf314 B
  • metadata.yaml1.3 KB
  • refs.md290 B
  • scripts/run_bcftools_variant_filtering.py4 KB
  • tests/test_run_bcftools_variant_filtering.py1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…