genome-variant-filtering
Skill4 starsChanged 12 days agoMITView on GitHub
Filter raw variant calls using GATK VQSR, GATK hard filters, or bcftools expression-based filtering.
In this repository56 other files it gives its agents.
- bioinformatics-env-setupSkill
- design-thermostable-mutationsSkill
- download-gdcSkill
- download-geoSkill
- download-sraSkill
- source-summarizerSkill
- genome-alignment-qcSkill
- genome-read-alignmentSkill
- genome-variant-annotationSkill
- genome-variant-callingSkill
- metagenome-assemblySkill
- metagenome-binningSkill
- metagenome-functional-profilingSkill
- metagenome-host-removalSkill
- metagenome-taxonomic-profilingSkill
- ncbi-eutilities-assistantSkill
- ngs-quality-controlSkill
- ngs-read-preprocessingSkill
- paper-to-briefSkill
- predict-protein-heat-stabilitySkill
- researchSkill
- rnaseq-alignment-qcSkill
- rnaseq-differential-expressionSkill
- rnaseq-functional-enrichmentSkill
- rnaseq-read-alignmentSkill
- rnaseq-read-countingSkill
- rnaseq-transcript-quantificationSkill
- rpsblast-assistantSkill
- scrnaseq-cellranger-countSkill
- scrnaseq-cell-type-annotationSkill
- scrnaseq-clusteringSkill
- scrnaseq-differential-expressionSkill
- scrnaseq-integrationSkill
- scrnaseq-quality-controlSkill
- scrnaseq-trajectory-analysisSkill
- search-enaSkill
- search-geoSkill
- search-gsaSkill
- search-ncbi-datasetsSkill
- search-sraSkill
- stat-analyze-distributionSkill
- stat-assess-data-qualitySkill
- stat-bayesian-estimationSkill
- stat-cluster-samplesSkill
- stat-compare-multiple-groupsSkill
- stat-compare-two-groupsSkill
- stat-fit-glmSkill
- stat-fit-linear-modelSkill
- stat-learn-bayesian-networkSkill
- stat-logistic-regressionSkill
- stat-nonlinear-embeddingSkill
- stat-pairwise-correlationSkill
- stat-pcaSkill
- stat-survival-analysisSkill
- structured-intelligence-skill-creatorSkill
- <skill-id>Skill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
If hard-filter: split VCF into SNPs and indels with gatk SelectVariants.
- Very specific: line 32
If VQSR: run gatk VariantRecalibrator + gatk ApplyVQSR for SNPs then indels with resource annotations.
- Very specific: line 33
If bcftools: apply user-provided filter expressions via bcftools filter.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: genome-variant-filtering
Use When
- User wants to filter a raw VCF to remove low-confidence variants.
- User needs to apply GATK best-practice hard filters or VQSR.
- User wants to use custom bcftools filter expressions.
- User needs to separate SNPs from indels for different filter strategies.
Inputs
- Required:
- Raw VCF file (
.vcf.gz). - Reference FASTA (for GATK operations).
- Raw VCF file (
- Optional:
- Filter strategy:
vqsr,hard, orbcftools(default:hard). - Resource VCFs for VQSR: HapMap, Omni, 1000 Genomes, dbSNP.
- Custom filter expressions (for bcftools mode).
- Truth sensitivity level for VQSR (default: 99.5 for SNPs, 99.0 for indels).
- Filter strategy:
Workflow
- If hard-filter: split VCF into SNPs and indels with
gatk SelectVariants. - Apply GATK recommended hard filters:
- SNPs:
QD < 2.0,FS > 60.0,MQ < 40.0,MQRankSum < -12.5,ReadPosRankSum < -8.0. - Indels:
QD < 2.0,FS > 200.0,ReadPosRankSum < -20.0.
- SNPs:
- If VQSR: run
gatk VariantRecalibrator+gatk ApplyVQSRfor SNPs then indels with resource annotations. - If bcftools: apply user-provided filter expressions via
bcftools filter. - Merge filtered SNPs and indels back into a single VCF.
- Index the output VCF.
- Report: variants before and after filtering, pass rate, filter category breakdown.
Output Contract
- Filtered VCF file (
.vcf.gz). - Filter summary statistics: total variants, PASS count, filtered count by category.
Limits
- VQSR requires a sufficiently large call set to train the model (at least ~30 exomes or 1 WGS); use hard filters for small sample sets.
- Resource VCFs must match the reference genome build (e.g., GRCh38).
- GATK is required for VQSR and hard-filter modes; bcftools mode only requires bcftools.
- Hard filters are recommended when VQSR training data is insufficient.
- Common failure cases:
- VQSR failing due to too few variants in the training set for model convergence.
- Resource VCFs on a different genome build than the input VCF (e.g., GRCh37 vs GRCh38).
- bcftools filter expression syntax errors causing silent empty output.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

