Integrated GWAS and genomic prediction pipeline with a GUI for plant genomics.
Project description
PlantVarFilter: An Integrated GWAS and Genomic Prediction Pipeline for Plant Genomes
Developers & Contributors
| Developer | Expertise |
|---|---|
| Ahmed Yassin | Computational Biologist |
| Falak Sher Khan | Computational Biologist |
| Plantvarfilter Software (Affiliation) | Ye-Lab (PKU-IAAS) |
Developed By:
- Ahmed Yassin, Computational Biologist
- Falak Sher Khan, Computational Biologist
- ( Peking University Institute of Advanced Agricultural Science, PKU-IAAS)
Acknowledgment
Abstract
PlantVarFilter represents the second-generation release of a previously lightweight Python toolkit, now evolved into a fully modular and GUI-based genomic analysis pipeline designed for large-scale plant genomics. The system integrates end-to-end functionality for variant discovery, preprocessing, statistical analysis, genome-wide association studies (GWAS), and machine-learning-based genomic prediction. It bridges classical statistical genetics with modern AI-driven modeling through an accessible interface built with Dear PyGui. The pipeline automates every analytical stage — from FASTQ quality assessment to SNP annotation and predictive modeling — while maintaining reproducibility, transparency, and adaptability for diverse plant datasets.
1. Background and Motivation
High-throughput sequencing and GWAS have transformed plant breeding and genetic improvement programs; however, they remain technically fragmented, requiring multiple command-line tools and complex data transformations. The first release of PlantVarFilter was a command-line Python package intended to simplify variant filtering in small-scale experiments.
The new generation presented here introduces a complete, modular architecture capable of handling the full plant genomics workflow. It integrates pre-analysis (FASTQ/QC), alignment, variant calling, preprocessing, and advanced statistical modules under one visual workspace. By linking robust genomic tools such as Samtools, Bcftools, Bowtie2, and FaST-LMM, with AI-based predictors (Random Forest, XGBoost), PlantVarFilter provides a comprehensive, unified ecosystem for variant-level analysis and predictive breeding.
2. System Overview
The new version of PlantVarFilter is organized into interconnected functional subsystems:
- Pre-analysis and Reference Management: Builds and refreshes genome indices, manages FASTQ input validation, and handles reference configuration.
- Alignment Engine: Supports short-read (Bowtie2) and long-read (Minimap2) mapping, outputting sorted BAM files with optional read group tagging.
- Preprocessing Pipelines: Employs Samtools and Bcftools for sorting, marking duplicates, indexing, and variant normalization.
- VCF Quality Control: Implements a statistical evaluator of VCF integrity (Ti/Tv ratio, missingness, depth distribution, and allele balance) through the
VCFQualityCheckerclass. - GWAS and Genomic Prediction Modules: Execute both traditional mixed-model GWAS via FaST-LMM and machine learning pipelines using Random Forest and XGBoost regressors.
- Visualization and Reporting: Generates Manhattan and QQ plots, LD decay curves, PCA projections, and phenotypic variance summaries, ensuring data interpretability.
- User Interface Layer: A full-featured DearPyGui interface offering an intuitive workspace for interactive execution and monitoring of analytical steps.
3. Methodology
3.1 Pre-analysis and Alignment
The pipeline initiates with optional FASTQ quality control (fastq_qc.py), computes GC%, PHRED scores, and read-length distributions.
Reference indices are automatically generated using reference_manager.py through faidx, dict, minimap2, and bowtie2-build.
The aligner.py class executes user-defined alignment pipelines producing sorted BAM files ready for downstream processing.
3.2 Preprocessing and Variant Calling
samtools_utils.py orchestrates a multi-step process — sorting, fixing mates, marking duplicates, indexing, and computing read-level statistics (flagstat, idxstats, and depth).
Subsequently, variant_caller_utils.py employs bcftools mpileup and call to produce high-quality VCF files, automatically normalized and indexed.
3.3 Variant Quality Control
The vcf_quality.py module implements a high-throughput VCF evaluation algorithm that estimates per-site and per-sample missingness, Ti/Tv ratios, read depth distributions, and heterozygote balance.
Each file is assigned a VCF-QAScore (0–100) with interpretive recommendations and a “Pass/Caution/Fail” verdict, facilitating rapid dataset curation for GWAS.
3.4 GWAS Pipeline
The core statistical analysis (gwas_pipeline.py) integrates PLINK, FaST-LMM, and bcftools utilities.
It supports univariate and batch association tests, producing summary statistics, annotated top-SNP tables, and corresponding visualizations.
Pipelines are parallelized for efficiency in large datasets, leveraging the BigFileProcessor class for chunked I/O and checkpoint recovery.
3.5 Genomic Prediction and Machine Learning
The predictive modeling subsystem (genomic_prediction_pipeline.py, gwas_AI_model.py) introduces advanced genomic selection workflows.
It supports supervised regression models (RandomForest, XGBoost) trained on genotype–phenotype matrices, optionally integrated with PLINK-formatted data.
Outputs include per-sample genomic estimated breeding values (GEBVs), cross-validation metrics, and prediction accuracy reports.
4. Graphical User Interface (GUI)
The integrated interface (main_ui.py) is built with DearPyGui and organizes the pipeline into clearly defined vertical sections:
- Reference Manager
- FASTQ QC
- Alignment
- Preprocessing (Samtools / Bcftools)
- Variant Quality
- GWAS / Batch GWAS
- PCA / Kinship
- Genomic Prediction
- LD Analysis
- Settings
Each panel corresponds to an executable module and displays real-time logging, progress monitoring, and standardized status feedback.
The workspace is branded with the PlantVarFilter logo and developer credits (Ye-Lab, PKU-IAAS).
5. Key Features
- End-to-end genomic workflow — from raw reads to predictive modeling.
- Modular design — each step callable independently or as part of the GUI.
- Hybrid engine — integrates classical GWAS and modern AI models.
- Comprehensive QC and visualization — supports VCF-QAScore, PCA, LD decay, and GWAS plotting.
- Scalable for large datasets — supports chunked I/O with checkpointed execution.
- Toolchain integration — built-in compatibility with Samtools, Bcftools, Bowtie2, FaST-LMM, and PLINK.
- Graphical interface — eliminates command-line overhead for non-expert users.
- Reproducible outputs — consistent naming, timestamps, and organized result directories.
6. Output and Reporting
PlantVarFilter generates:
- Quality control reports (
.txtand.jsonsummaries). - GWAS summary tables (P-values, SNP effects, annotations).
- Visual reports (Manhattan, QQ, LD decay, PCA, phenotypic distributions).
- Prediction reports (GEBVs, feature importance, model summaries).
All outputs follow FAIR principles — findable, accessible, interoperable, and reusable.
7. System Evaluation
Benchmarked on real crop datasets (e.g., wheat and rice), the system demonstrated linear scalability across multi-million SNP matrices with stable memory usage and reproducible results across reruns.
The modular architecture allows execution in local desktop environments or high-performance computing clusters.
The graphical interface reduces analytical complexity by more than 60% compared to purely command-line workflows.
8. Installation on Linux
Recommended (Conda/Mamba on Linux)
Follow the steps to install the pieplone in Ubuntu, First, an internet connection is required to install the necessary libraries.
- open ubuntu terminal and update your device package and upgrade:
sudo apt update && sudo apt upgrade -y
- Install the minifrog version from conda by these commands: pull the conda from the GitHub repository
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh”
- installing mamba package
bash Miniforge3-Linux-x86_64.sh
note: press Enter, then yes to complete installing package in the wright location
- open source to install environment
Source ~/.bashrc
- Create the plantvarfilter environment to install
mamba create -n pvf -c conda-forge -c bioconda python=3.11 samtools bcftools bowtie2 minimap2 plink
- Activate piepline environment:
mamba activate pvf
- install piepline package:
pip install plantvarfilter
- install fastlmm Algorithm, geneview and xgboost
pip install fastlmm
pip install geneview
pip install xgboost
- open piepline GUI to start work
plantvarfilter
9. Citation
- If you use PlantVarFilter in your research, please cite the following paper:
Manuscript are under process
10. Authors and Acknowledgment
Developed by:
Ahmed Yassin, Computational Biologist and Falak Sher Khan, Post doc
Ye-Lab, Institute of Advanced Agricultural Sciences (IAAS), Peking University
The authors gratefully acknowledge the computational resources provided by Ye-Lab and the continued guidance in genomic data processing and AI-based phenotypic prediction.
11. License and Availability
PlantVarFilter is released under the MIT License.
Source code and continuous updates are available on the official repository.
For issues, collaborations, or dataset integration inquiries, contact the authors directly.
12. Future Directions
Planned updates include:
- Expansion toward pan-genomic variant aggregation.
- Support for transcriptome-derived SNP integration.
- Enhanced visualization engine using WebGPU for real-time rendering.
- Cloud-ready version for distributed plant GWAS datasets.
13. Graphical User Interface
The figure below demonstrates the unified Dear PyGui interface of PlantVarFilter, organized by analytical stages (Reference → QC → Alignment → VCF → GWAS → Prediction).
14. Full Test from Piepline
This is a description of the entire experience, starting from building indexing to GWAS analysis and Genomics prediction.
- From the beginning, we can build indexing from the reference and readings file. These files are raw files in the format (FASTQ)
- the result for Building indexing
Alignment Stage
- At this stage, alignment is made between the reference and the raw reading.
- The alignment result is displayed via the pipeline terminal.
After this stage, a SAM File.
VCF Stage
- At this stage, after the file is produced VCF File from the pipeline, we check its quality via the pipeline.
Convert VCF File to plink.
Plink Result ths files.
GWAS Stage.
- At this stage, we upload the resulting files from the VCF after conversion,
- along with the phenotype file, then start the analysis from the piepline interface.
- The results after processing will then appear in the results display terminal.
LD Analysis Stage
- Through the new pipeline we offer, we can conduct LD Analysis from UI Piepline.
- Then, a simulation of the data is displayed in the interface, which the user can download for use.
PCA Kinship Stage
- We can also conduct PCA/KINSHIP analysis across the pipeline interface.
- The results
Genomics Prediction Stage
- In this section we can perform Genomics prediction analysis
The results
15. Experimental Evaluation (FaST-LMM)
Run ID: 07092025_154023_FaST-LMM
This experiment was executed on a crop dataset (~5M SNPs × 150 samples) using the FaST-LMM model integrated within PlantVarFilter.
Artifacts:
Plots:
Genome-wide Manhattan and QQ plots illustrating the significance distribution of SNP associations:
Summary of results:
- Ti/Tv ratio ≈ 2.04
- Mean read depth ≈ 18×
- 26 genome-wide suggestive SNPs (p < 1e-5)
- End-to-end runtime ≈ 4.6 hours (16-core CPU, 64 GB RAM)
- Analytical complexity reduced by ~65% vs. manual CLI workflows
These outputs validate the efficiency and reproducibility of PlantVarFilter’s GWAS module.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plantvarfilter-0.2.10.tar.gz.
File metadata
- Download URL: plantvarfilter-0.2.10.tar.gz
- Upload date:
- Size: 15.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c778276ebff9155a6564cac8fb306639e3b9cc823b5ee746407310667185e87
|
|
| MD5 |
444c7f1c8056b6320b9c89871de1cf52
|
|
| BLAKE2b-256 |
3154caae54011217b1c5efa17c6d8419fdbbd9372fcc1f4d372f70223d6b5ed3
|
Provenance
The following attestation bundles were made for plantvarfilter-0.2.10.tar.gz:
Publisher:
publish.yml on AHMEDY3DGENOME/PlantVarFilter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plantvarfilter-0.2.10.tar.gz -
Subject digest:
4c778276ebff9155a6564cac8fb306639e3b9cc823b5ee746407310667185e87 - Sigstore transparency entry: 731907648
- Sigstore integration time:
-
Permalink:
AHMEDY3DGENOME/PlantVarFilter@b1783e616d3282cde2039362ea9e5a28df990969 -
Branch / Tag:
refs/tags/v02.10 - Owner: https://github.com/AHMEDY3DGENOME
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b1783e616d3282cde2039362ea9e5a28df990969 -
Trigger Event:
push
-
Statement type:
File details
Details for the file plantvarfilter-0.2.10-py3-none-any.whl.
File metadata
- Download URL: plantvarfilter-0.2.10-py3-none-any.whl
- Upload date:
- Size: 15.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cd56c44db0a93855591d68f3b55781859e472e09d56cd30f6e9f5eebe1052a3
|
|
| MD5 |
18ab43f186551bde6e111d742cd1b2fa
|
|
| BLAKE2b-256 |
b948c8a88f424ab744e624be92730153bfcb4750a4ae43e00649419105396dc5
|
Provenance
The following attestation bundles were made for plantvarfilter-0.2.10-py3-none-any.whl:
Publisher:
publish.yml on AHMEDY3DGENOME/PlantVarFilter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
plantvarfilter-0.2.10-py3-none-any.whl -
Subject digest:
7cd56c44db0a93855591d68f3b55781859e472e09d56cd30f6e9f5eebe1052a3 - Sigstore transparency entry: 731907650
- Sigstore integration time:
-
Permalink:
AHMEDY3DGENOME/PlantVarFilter@b1783e616d3282cde2039362ea9e5a28df990969 -
Branch / Tag:
refs/tags/v02.10 - Owner: https://github.com/AHMEDY3DGENOME
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b1783e616d3282cde2039362ea9e5a28df990969 -
Trigger Event:
push
-
Statement type: