This repository demonstrates an automated pipeline for interpreting genetic variants from VCF files.
It combines VEP and ANNOVAR for variant annotation with LLaMA3 via Ollama to generate concise, literature-backed summaries of clinical relevance.
- Annotates variants using VEP and ANNOVAR
- Merges annotation outputs into a single table
- Summarizes the clinical significance of variants using LLaMA3
- Generates CSV reports for downstream analysis or reporting
llama3-variant-interpretation/
├── data/
│ └── sample_variants.vcf # Example VCF file with a few variants
├── annotations/
│ ├── vep_output.txt # Example VEP output
│ └── annovar_output.txt # Example ANNOVAR output
├── scripts/
│ ├── annotate_variants.py # Runs VEP + ANNOVAR
│ └── interpret_variants.py # Merges annotations and calls LLaMA3 via Ollama
├── requirements.txt # Python dependencies
├── README.md # Project overview & instructions
└── .gitignore # Ignore unnecessary files
- Clone the repository:
git clone https://github.com/<username>/llama3-variant-interpretation.git
cd llama3-variant-interpretation- Install Python dependencies:
pip install -r requirements.txt- Install VEP and ANNOVAR according to their official documentation:
- Make sure the Ollama server is running locally:
ollama serveRun the annotation script to generate VEP and ANNOVAR outputs:
python scripts/annotate_variants.pyRun the interpretation script to merge annotations and create literature-backed summaries:
python scripts/interpret_variants.pyThe final summaries will be saved as:
annotations/final_summaries.csv
data/sample_variants.vcfcontains example variants for demonstration.- Precomputed outputs for VEP and ANNOVAR are included in
annotations/for quick testing.
- Ensure that the Ollama server is running before executing the interpretation script.
- The pipeline can be extended to batch-process large VCF files.
- LLaMA3 generates summaries based on available annotation data and literature references.
This repository is for educational and demonstration purposes. Modify and use according to your needs.