bio-ctdna-mutation-detection
Detects somatic mutations in circulating tumor DNA using variant callers optimized for low allele fractions with UMI-based error suppression. Reliably detects mutations at VAF above 0.5 percent using consensus-based approaches
Install / Use
npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-ctdna-mutation-detectionInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of bio-ctdna-mutation-detection
bio-ctdna-mutation-detection scores 89/100 on our quality scale, 1578th of 4,698 Development & Engineering skills we index (top 34%).
Its SKILL.md is 6.7 KB long, well organised into 12 sections with 5 code examples: a thorough specification that gives an agent plenty to work with.
With 3,034 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- Our last check on 2026-10-31 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 86/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-29. Automated pattern scan on 2026-09-29. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
bio-ctdna-mutation-detection compared with similar skills
All 4 of these similar skills score higher than bio-ctdna-mutation-detection; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| bio-ctdna-mutation-detection (this skill)by FreedomIntelligence | 89 | 3.0k | 4mo ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 116.8k | 8d ago | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 112.3k | 8d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.8k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 72.1k | today | CLAUDE.md |
Frequently asked questions
- How do I install bio-ctdna-mutation-detection?
- Run
npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-ctdna-mutation-detection. The install tabs above show the steps for each supported agent. - Which AI agents does bio-ctdna-mutation-detection work with?
- It is written for Zed, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is bio-ctdna-mutation-detection safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 86/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is bio-ctdna-mutation-detection still maintained?
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubname: bio-ctdna-mutation-detection description: Detects somatic mutations in circulating tumor DNA using variant callers optimized for low allele fractions with UMI-based error suppression. Reliably detects mutations at VAF above 0.5 percent using consensus-based approaches. Use when identifying tumor mutations from plasma DNA or tracking specific variants. tool_type: python primary_tool: VarDict
Version Compatibility
Reference examples tested with: Ensembl VEP 111+, SnpEff 5.2+, VarDict 1.8+, pandas 2.2+, pysam 0.22+
Before using code patterns, verify installed versions match. If versions differ:
- Python:
pip show <package>thenhelp(module.function)to check signatures - CLI:
<tool> --versionthen<tool> --helpto confirm flags
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
ctDNA Mutation Detection
"Detect mutations in my cfDNA sample" → Identify somatic variants at low allele fractions (0.1-1%) from cell-free DNA using error-suppressed consensus calling and specialized callers.
- CLI:
vardict-javafor low-VAF variant calling from cfDNA
Detect somatic mutations in cfDNA at low variant allele fractions.
Input Requirements
| Requirement | Specification | |-------------|---------------| | Data type | Targeted panel or WES (NOT sWGS) | | Depth | >= 1000x for low VAF detection | | UMIs | Highly recommended for < 1% VAF | | Input | Preprocessed BAM (UMI consensus if available) |
VAF Detection Limits
| VAF Range | Reliability | Notes | |-----------|-------------|-------| | > 1% | Reliable | Standard callers work | | 0.5-1% | Good with UMIs | Requires error suppression | | 0.1-0.5% | Challenging | Needs deep UMI consensus | | < 0.1% | Unreliable | Near noise floor |
VarDict for High Sensitivity (Ensembl VEP 111+)
# VarDict is highly sensitive for low VAF
# Use on UMI-consensus BAM for best results
vardict-java \
-G reference.fa \
-f 0.005 \ # Min VAF 0.5%
-N sample_id \
-b sample.bam \
-c 1 -S 2 -E 3 -g 4 \
regions.bed | \
teststrandbias.R | \
var2vcf_valid.pl \
-N sample_id \
-E \
-f 0.005 \
> sample.vcf
Python Implementation
import subprocess
import pandas as pd
import pysam
def call_variants_vardict(bam_file, reference, bed_file, output_vcf, min_vaf=0.005, min_depth=100):
'''
Call variants with VarDict.
Args:
bam_file: UMI-consensus BAM preferred
reference: Reference FASTA
bed_file: Target regions BED
output_vcf: Output VCF path
min_vaf: Minimum VAF (0.005 = 0.5%)
min_depth: Minimum read depth
'''
sample_id = bam_file.split('/')[-1].replace('.bam', '')
cmd = f'''
vardict-java \
-G {reference} \
-f {min_vaf} \
-N {sample_id} \
-b {bam_file} \
-c 1 -S 2 -E 3 -g 4 \
{bed_file} | \
teststrandbias.R | \
var2vcf_valid.pl \
-N {sample_id} \
-E \
-f {min_vaf} \
> {output_vcf}
'''
subprocess.run(cmd, shell=True, check=True)
return output_vcf
def filter_ctdna_variants(vcf_file, chip_genes=None):
'''
Filter ctDNA variants, removing CHIP.
CHIP genes commonly mutated in elderly:
DNMT3A, TET2, ASXL1, PPM1D, TP53, SF3B1, etc.
'''
if chip_genes is None:
chip_genes = ['DNMT3A', 'TET2', 'ASXL1', 'PPM1D', 'JAK2',
'SF3B1', 'SRSF2', 'TP53', 'CBL', 'BCOR']
import vcfpy
reader = vcfpy.Reader.from_path(vcf_file)
somatic = []
chip = []
for record in reader:
gene = record.INFO.get('GENE', [''])[0]
if gene in chip_genes:
chip.append(record)
else:
somatic.append(record)
print(f'Somatic variants: {len(somatic)}')
print(f'Potential CHIP variants: {len(chip)}')
return somatic, chip
UMI-VarCal for Best Specificity (Ensembl VEP 111+)
def call_with_umi_varcal(bam_file, reference, bed_file, output_vcf, min_vaf=0.005):
'''
UMI-VarCal: Best specificity with UMI data.
'''
subprocess.run([
'umi-varcal',
'--bam', bam_file,
'--ref', reference,
'--bed', bed_file,
'--out', output_vcf,
'--min-vaf', str(min_vaf),
'--min-alt-reads', '3',
'--min-depth', '100'
], check=True)
Variant Annotation (Ensembl VEP 111+)
def annotate_ctdna_variants(vcf_file, output_vcf):
'''Annotate variants with clinically relevant information.'''
# Use VEP or snpEff for annotation
subprocess.run([
'vep',
'--input_file', vcf_file,
'--output_file', output_vcf,
'--format', 'vcf',
'--vcf',
'--cache',
'--canonical',
'--protein',
'--sift', 'b',
'--polyphen', 'b',
'--af_gnomad'
], check=True)
Tracking Known Mutations
Goal: Quantify the variant allele fraction of specific known mutations across serial liquid biopsy samples for minimal residual disease monitoring.
Approach: For each target mutation, pileup reads at the variant position, count reference and alternative alleles, and compute VAF with depth statistics.
def track_specific_mutations(bam_file, mutations, min_depth=100):
'''
Track specific known mutations across samples.
Useful for MRD monitoring.
Args:
bam_file: Aligned BAM
mutations: List of (chrom, pos, ref, alt) tuples
'''
import pysam
bam = pysam.AlignmentFile(bam_file, 'rb')
results = []
for chrom, pos, ref, alt in mutations:
counts = {'ref': 0, 'alt': 0, 'other': 0}
for pileupcolumn in bam.pileup(chrom, pos-1, pos):
if pileupcolumn.pos != pos - 1:
continue
for read in pileupcolumn.pileups:
if read.is_del or read.is_refskip:
continue
base = read.alignment.query_sequence[read.query_position]
if base == ref:
counts['ref'] += 1
elif base == alt:
counts['alt'] += 1
else:
counts['other'] += 1
total = counts['ref'] + counts['alt'] + counts['other']
vaf = counts['alt'] / total if total > 0 else 0
results.append({
'chrom': chrom, 'pos': pos, 'ref': ref, 'alt': alt,
'depth': total, 'alt_count': counts['alt'], 'vaf': vaf
})
bam.close()
return pd.DataFrame(results)
Related Skills
- cfdna-preprocessing - Preprocess with UMI consensus
- tumor-fraction-estimation - Estimate overall tumor burden
- longitudinal-monitoring - Track mutations over time
- variant-calling/variant-calling - General variant calling concepts
Related Skills
taste-skill
116.8kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
112.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
79.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ai-job-search
72.1kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
