Data & ReproScientific VisualizationFreedomIntelligence/OpenClaw-Medical-SkillsData & Reproduction
BI

bio-consensus-sequences

Maintainer FreedomIntelligence · Last updated April 1, 2026

Generate consensus FASTA sequences by applying VCF variants to a reference using bcftools consensus. Use when creating sample-specific reference sequences or reconstructing haplotypes.

OpenClawNanoClawAnalysisWritingbio-consensus-sequences🧬 bioinformatics (gptomics bio-* suite)bioinformatics — sequencing & read qcgenerate

Original source

FreedomIntelligence/OpenClaw-Medical-Skills

https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/bio-consensus-sequences

Maintainer
FreedomIntelligence
License
MIT
Last updated
April 1, 2026

Skill Snapshot

Key Details From SKILL.md

2 min

Key Notes

  • CLI: bcftools consensus -f reference.fa input.vcf.gz.
  • Python: cyvcf2 + Bio.SeqIO for simple SNP-only cases.
  • Generate a consensus sequence from my VCF" → Apply called variants to a reference FASTA, producing a sample-specific genome with optional haplotype selection and low-coverage masking. CLI: bcftools consensus -f reference.fa input.vcf.gz Python: cyvcf2 + Bio.SeqIO for simple SNP-only cases.
  • samtools depth input.bam | awk '$3<10 {print $1"\t"$2-1"\t"$2}' > low_coverage.bed.

Source Doc

Excerpt From SKILL.md

Haplotype Options

OptionDescription
-H 1First haplotype
-H 2Second haplotype
-H AApply all ALT alleles
-H RApply REF alleles where heterozygous
-IApply IUPAC ambiguity codes (separate flag)

IUPAC Codes for Heterozygous Sites

Heterozygous sites encoded with IUPAC ambiguity codes:

  • A/G → R
  • C/T → Y
  • A/C → M
  • G/T → K
  • A/T → W
  • C/G → S

Mark Low Coverage as N

Using a mask BED file:

Use cases

  • Use when creating sample-specific reference sequences or reconstructing haplotypes.

Not for

  • Do not rely on this catalog entry alone for installation or maintenance details.

Upstream Related Skills

  • variant-calling - Generate VCF for consensus
  • filtering-best-practices - Filter variants before consensus
  • variant-normalization - Normalize indels first
  • alignment-files/reference-operations - Reference manipulation

Related skills

Related skills

Back to directory
BI
Data & ReproScientific Visualization

bio-chipseq-visualization

Visualize ChIP-seq data using deepTools, Gviz, and ChIPseeker. Create heatmaps, profile plots, and genome browser tracks. Visualize signal a…

OpenClawNanoClawAnalysis
FreedomIntelligence/OpenClaw-Medical-SkillsView
BI
Data & ReproScientific Visualization

bio-copy-number-cnv-visualization

Visualize copy number profiles, segments, and compare across samples. Create publication-quality plots of CNV data from CNVkit, GATK, or oth…

OpenClawNanoClawAnalysis
FreedomIntelligence/OpenClaw-Medical-SkillsView
BI
Data & ReproScientific Visualization

bio-data-visualization-circos-plots

Circular genome visualization with Circos or pycirclize.

OpenClawNanoClawAnalysis
FreedomIntelligence/OpenClaw-Medical-SkillsView