This repository demonstrates complementary approaches to quantitative genetics using the Genomes to Fields maize dataset: genetic discovery through GWAS and phenotype prediction through machine learning.
Genomes to Fields (G2F) Initiative: 5,899 hybrid genotypes, 2,425 SNPs, phenotypic data from 272 environments (2014-2023).
- Goal: Identify loci associated with flowering time variation
- Methods: GWAS using GAPIT, 2,425 SNPs, 2022-2023 environments
- Results: [Summary findings]
- View detailed analysis →
- Goal: Predict grain yield from genomic and environmental data
- Methods: Random Forest and Neural Network, 673 environmental covariates
- Results: [Model performance]
- View detailed analysis →
In modern breeding programs, GWAS identifies causal biology while ML models optimize selection. This portfolio demonstrates capability in both discovery and application.
- R (>= 4.3.0)
- Python (>= 3.12.0)
- Git
git clone https://github.com/YOUR_USERNAME/g2f-maize-quantitative-genetics.git
cd g2f-maize-quantitative-geneticsSee data/README.md for data download instructions.
Open RStudio in this directory:
# Install renv if needed
install.packages("renv")
# Restore R packages from lockfile
renv::restore()This installs all R packages listed in renv.lock.
# Create virtual environment
python -m venv venv
# Activate environment
source venv/Scripts/activate # Git Bash on Windows
# OR
venv\Scripts\activate # PowerShell on Windows
# Install packages
pip install -r requirements.txt