一键导入
fastreer
Phylogenetic distance matrices and trees from VCF or FASTA data using the fastreeR hybrid Java/Python toolkit (VCF2TREE, VCF2DIST, DIST2TREE, FASTA2DIST).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Phylogenetic distance matrices and trees from VCF or FASTA data using the fastreeR hybrid Java/Python toolkit (VCF2TREE, VCF2DIST, DIST2TREE, FASTA2DIST).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Discover and invoke 1,676 deduplicated biomedical AI agent skills from the Awesome Bio Agent Skills repository (20 source repos, 15 categories). Use this skill as a router whenever a user needs a bioinformatics/biomedical task (genomics, transcriptomics, single-cell, proteomics, protein design, clinical, epigenomics, multi-omics, pathway, metagenomics, database queries, visualization, workflows): search the index, locate the best-matching skill, fetch its SKILL.md, and follow it.
Infer orthologous genes and gene families across species using OrthoFinder3 (HOG-based phylogenetic orthology), SonicParanoid2, Broccoli, ProteinOrtho, OMA / FastOMA hierarchical orthologous groups, eggNOG-mapper, JustOrthologs, and TOGA whole-genome-alignment orthology. Use when building single-copy ortholog sets for phylogenomics, classifying co-orthologs and in/out-paralogs after gene duplication, propagating functional annotation via orthology with awareness of the ortholog conjecture, distinguishing speciation from duplication via gene-tree species-tree reconciliation, computing Quest-for-Orthologs benchmark performance, or running synteny-aware ortholog detection in WGD-affected lineages.
Fetch a region of cis-eQTL summary statistics from EBI eQTL Catalogue v7+ via tabix-on-FTP. Use when an agent needs eQTL beta / SE / p-value for every variant in a window around a gene's TSS for one specific dataset (study × tissue × quantification method). Input: dataset_id, chromosome, start, end, optional molecular_trait_id. Output: harmonised TSV slice.
Find, read, download, and locally cache academic papers. Disambiguate ambiguous queries, discover via keyword search / citation traversal / recommendations / arXiv monitoring / trending / GitHub search, evaluate (TLDR, citations, code, SOTA), read using a 3-level strategy, and save PDFs to a local library for offline reuse. Use when finding a specific paper, listing papers on a topic, tracking recent advances, finding a baseline with code, reading or downloading a paper by URL, searching the local PDF library, or collecting a corpus for survey/ideation. Trigger phrases include: find/search papers, related work, citation analysis, latest research, download paper, save paper, my local library. Do NOT use for generating survey reports (use research-survey), generating research ideas (use research-ideation), writing a Related Work section (use paper-writing), comparing/ranking ideas (use research-ideation), or planning paper structure (use paper-planning).
Use this skill when users need to build, populate, or extend a domain-specific knowledge graph from literature and structured databases. Triggers include: 'build knowledge graph', 'extract claims from papers', 'ingest data into graph', 'batch extract claims', 'knowledge graph construction', 'populate graph from PubMed', 'extract structured claims', 'ingest atlas data', or any request involving knowledge graph population from scientific literature or biomedical databases. Covers both structured data ingestion (Phase 1) and LLM-based claim extraction from papers (Phase 2).
Use this skill whenever the user wants to formalize a network architecture and derive theoretical components from a research idea. Triggers include: 'method design', 'design method', 'network architecture', 'formula derivation', 'method-design', 'theoretical framework', 'derive equations', or any request to transform IDEA.md into a detailed METHOD.md. This skill is the **mandatory interface-layer method formalizer** in NeuroClaw: it reads IDEA.md, designs concrete network structures (layers, modules, connections), performs mathematical derivations (equations, loss functions, proofs), and always outputs a structured METHOD.md.
| name | fastreer |
| description | Phylogenetic distance matrices and trees from VCF or FASTA data using the fastreeR hybrid Java/Python toolkit (VCF2TREE, VCF2DIST, DIST2TREE, FASTA2DIST). |
| license | GPL-3.0 |
| metadata | {"version":"0.1.0","author":"Anestis Gkanogiannis","domain":"phylogenetics","tags":["phylogenetics","distance-matrix","tree-building","vcf","fasta","population-genomics"],"inputs":[{"name":"input_file","type":"file","format":["vcf","vcf.gz","fasta","fasta.gz","fa","fa.gz","fas","fas.gz","dist"],"description":"VCF file (biallelic/multiallelic SNPs, compressed or plain), FASTA file (aligned or unaligned sequences, compressed or plain), or PHYLIP distance matrix (for DIST2TREE).","required":true}],"outputs":[{"name":"tree","type":"file","format":["nwk"],"description":"Newick phylogenetic tree (VCF2TREE / DIST2TREE)"},{"name":"distances","type":"file","format":["dist"],"description":"PHYLIP distance matrix (VCF2DIST / FASTA2DIST)"},{"name":"report","type":"file","format":["md"],"description":"Analysis summary with sample list and interpretation"},{"name":"result","type":"file","format":["json"],"description":"Machine-readable metadata (samples, command, paths)"}],"dependencies":{"python":">=3.10","packages":["fastreer>=2.2.0"],"system":["java>=11"]},"demo_data":[{"path":"examples/demo_samples.vcf","description":"Synthetic VCF with 5 samples and 20 biallelic SNPs on chr1"},{"path":"examples/demo_sequences.fasta","description":"Synthetic FASTA with 5 sequences of 60 bp each"}],"endpoints":{"cli":"python skills/fastreer/fastreer.py --command {command} --input {input_file} --output {output_dir}"},"openclaw":{"requires":{"bins":["python3","java"]},"always":false,"emoji":"🌳","homepage":"https://github.com/ClawBio/ClawBio","os":["darwin","linux"],"install":[{"kind":"pip","package":"fastreer"}],"trigger_keywords":["phylogenetic tree","distance matrix from VCF","VCF","VCF2TREE","VCF2DIST","fastreer","fastreeR","genomic distance","hierarchical clustering tree","k-mer distance","FASTA2DIST","variant distance matrix","population tree","DIST2TREE","cosine distance VCF","sample phylogeny"]}} |
You are fastreeR, a specialised ClawBio skill for computing phylogenetic distance matrices and trees from genomic VCF or FASTA data using the fastreeR hybrid Java/Python toolkit.
Fire this skill when the user says any of:
Do NOT fire when:
dnaspstruct-predictorseq-wranglerclaw-ancestry-pcavariant-annotation--window-bp or --window-variants.This skill computes pairwise genomic distances and hierarchical trees from VCF or FASTA input. It does not perform alignment, variant calling, variant annotation, or population genetics statistics.
| Format | Extension | Required Fields | Example |
|---|---|---|---|
| VCF | .vcf, .vcf.gz | GT genotype field; ≥2 samples | samples.vcf.gz |
| FASTA | .fasta, .fasta.gz, .fa, .fa.gz, .fas, .fas.gz | ≥2 sequences | sequences.fasta |
| PHYLIP dist | .dist | PHYLIP matrix header + rows | distances.dist |
When the user provides a VCF or FASTA:
VCF2TREEVCF2DISTDIST2TREEFASTA2DISTfastreer.py with appropriate flags (threads, mem, bootstrap)tree.nwk or distances.dist, report.md, result.json,
and reproducibility bundleFreedom levels:
# Newick tree from VCF (with bootstrap)
python skills/fastreer/fastreer.py \
--command VCF2TREE --input samples.vcf.gz --bootstrap 100 \
--threads 4 --output <report_dir>
# Distance matrix from VCF
python skills/fastreer/fastreer.py \
--command VCF2DIST --input samples.vcf.gz --threads 4 \
--output <report_dir>
# Tree from pre-computed distance matrix
python skills/fastreer/fastreer.py \
--command DIST2TREE --input distances.dist --output <report_dir>
# K-mer distance from FASTA sequences
python skills/fastreer/fastreer.py \
--command FASTA2DIST --input sequences.fasta --kmer 5 \
--output <report_dir>
# Windowed analysis (100 kb windows)
python skills/fastreer/fastreer.py \
--command VCF2DIST --input samples.vcf.gz --window-bp 100000 \
--output <report_dir>
# Demo (no data needed)
python skills/fastreer/fastreer.py --demo --output /tmp/fastreer_demo
# Via ClawBio runner
python clawbio.py run fastreer --demo
python clawbio.py run fastreer --input samples.vcf.gz
python clawbio.py run fastreer --demo
Expected output: VCF2TREE run on a synthetic 5-sample / 20-SNP VCF. Produces a
Newick tree (tree.nwk), report.md with sample list and interpretation, and a
reproducibility bundle. If Java / fastreeR is not installed, synthetic demo output
is generated to illustrate the expected format.
VCF2TREE / VCF2DIST (cosine dissimilarity from genotypes):
d(i,j) = 1 - cosine_similarity(gt_vector_i, gt_vector_j)
where genotypes are encoded as allele dosages (0/0→0, 0/1→1, 1/1→2)..dist file.FASTA2DIST (D2S k-mer distance):
Key parameters:
--threads: parallelism for distance computation (default: 1)--mem: JVM heap in MB (default: 256; increase for >500 samples)--bootstrap: streaming bootstrap replicates from VCF (VCF2TREE only)--kmer: k-mer size for FASTA2DIST (default: 4; range 3–8 typical)# fastreeR Report
**Command**: `VCF2TREE`
**Input**: `demo_samples.vcf` (5 samples, 20 variants)
**Date**: 2026-05-11
## Samples (5)
- SAMPLE1
- SAMPLE2
- SAMPLE3
- SAMPLE4
- SAMPLE5
## Phylogenetic Tree
**Output format**: Newick
**File**: `tree.nwk`
((SAMPLE1:0.120,SAMPLE2:0.098):0.045,
(SAMPLE3:0.110,(SAMPLE4:0.087,SAMPLE5:0.132):0.062):0.038);
SAMPLE1 and SAMPLE2 cluster together (distance 0.12), suggesting greater
genomic similarity relative to SAMPLE3–5. SAMPLE4 and SAMPLE5 are the
second closest pair (distance 0.087).
output_directory/
├── report.md # Summary: samples, tree/matrix preview, interpretation
├── result.json # Machine-readable: command, samples, paths, metadata
├── tree.nwk # Newick tree (VCF2TREE / DIST2TREE)
├── distances.dist # PHYLIP distance matrix (VCF2DIST / FASTA2DIST)
└── reproducibility/
├── commands.sh # Exact command to reproduce
└── environment.txt # Java version + pip fastreer version
Required:
fastreer >= 2.2.0 (install with pip install fastreer)sudo apt install default-jre (Linux) or brew install openjdk@17 (macOS)Optional:
matplotlib, for tree/heatmap visualisation in future versionsJava version check: The model may assume Python alone is sufficient. It is not. fastreeR's core is a Java application. Always check Java 11+ is present before running; emit a clear error if missing, not a cryptic JVM crash.
VCF must have sample columns: Variant-only VCFs (no FORMAT/GT fields, no sample
columns) will silently fail or produce empty output. Validate that #CHROM line
has columns beyond FORMAT (i.e., at least one sample name).
JVM heap for large datasets: The default --mem 256 is insufficient for >500
samples. Rule of thumb: 4 × n_samples² × n_threads / 1e6 MB. For 1000 samples
with 8 threads: ~32 GB. Document this prominently or auto-compute a suggested value.
Windowed output is multi-block: --window-bp produces a single file containing
multiple concatenated PHYLIP matrices or Newick trees separated by comment lines.
Do not attempt to parse it as a single matrix.
VCF2EMB is not included: The embedding command requires downloading a 500MB BioFM language model. It is intentionally excluded from v0.1.0. If the user asks for variant embeddings, explain the requirement and the manual install steps.
Compressed VCF via stdin: Piping zcat input.vcf.gz | fastreer VCF2TREE -i -
works but the - stdin mode requires fastreeR ≥ 2.1.0 and may not stream on
Windows. Use -i input.vcf.gz directly for portability.
reproducibility/commands.sh records the exact command run.The agent (LLM) dispatches and explains results. The Python script (fastreer.py)
executes fastreeR and writes outputs. The agent must NOT invent tree topologies,
distance values, or bootstrap support figures; all must come from fastreeR output.
Trigger conditions: the orchestrator routes here when:
fastreer, fastreeR, VCF2TREE, VCF2DIST, FASTA2DISTChaining partners:
dnasp: Run DnaSP population statistics on the same VCF, then fastreeR for treevariant-annotation: Annotate variants first, then build a tree to visualise population structureclaw-ancestry-pca: use PCA for admixture and fastreeR for hierarchical clustering; the two provide complementary views of population structureseq-wrangler: Align sequences first (seq-wrangler), then compute FASTA2DIST treepip index versions fastreer)skills/_deprecated/ if fastreeR is superseded or unmaintained