How rinaldi-rpy/downstream_bioinformatic works
This repository is a buffalo population-genomics analysis workflow. Users provide a merged VCF and sample metadata; the launchers select stages, which perform genotype QC, LD pruning, PCA, replicated ADMIXTURE, windowed FST, block-bootstrap FST, and replicated TreeMix analysis with summaries and plots. Metadata validation and chromosome remapping are useful shared internal layers. The README documents the principal stage order and capabilities; links among unsampled stage implementations reflect that documentation, not inspected calls. The graph omits deployment and legacy material.
Main entry points: run_pipeline.sh Stage-select launcher · run_treemix.sh Replicated TreeMix · admixture.sh Replicated ADMIXTURE · fst_analysis.py FST block bootstrap
Components 21
Workflow entry
- All-stage launcher
run_all.sh - Stage-select launcher
run_pipeline.sh
Genotype analyses
- SNP QC
shell/qc.sh - LD pruning
shell/ld.sh - PCA
shell/pca.sh
Population analyses
- Replicated ADMIXTURE
shell/admixture.sh - Windowed pairwise FST
shell/fst.sh - FST block bootstrap
python/fst_analysis.py - Replicated TreeMix
run_treemix.sh
Summaries and plots
- ADMIXTURE summaries
python/admixture_summary.py - TreeMix summaries
python/treemix_summary.py - FST and NJ plots
r/plot_fst.R - TreeMix plots
r/plot_treemix.R
Shared analysis layers
- TreeMix population mapping
python/treemix_map.py - TreeMix input conversion
python/treemix_convert.py - Metadata validation
python/metadata.py - Chromosome remapping
python/remap_bim.py
Other components
- Researcher
- Merged VCF
- Sample metadata
- Analysis executables
Connections 31
- Researcher → All-stage launcher: starts workflow
README.md - Researcher → Stage-select launcher: selects stages
README.md - Merged VCF → All-stage launcher: supplies input
README.md - Sample metadata → All-stage launcher: supplies metadata
README.md - All-stage launcher → SNP QC: runs stages
README.md - Stage-select launcher → SNP QC: selects stages
README.md - Stage-select launcher → LD pruning: selects stages
README.md - Stage-select launcher → PCA: selects stages
README.md - Stage-select launcher → Replicated ADMIXTURE: selects stages
README.md - Stage-select launcher → Windowed pairwise FST: selects stages
README.md - Stage-select launcher → FST block bootstrap: selects stages
README.md - Stage-select launcher → Replicated TreeMix: selects stages
README.md - SNP QC → LD pruning: feeds next stage
README.md - LD pruning → PCA: feeds next stage
README.md - PCA → Replicated ADMIXTURE: feeds next stage
README.md - Replicated ADMIXTURE → Windowed pairwise FST: feeds next stage
README.md - Replicated ADMIXTURE → ADMIXTURE summaries: summarizes runs
- Sample metadata → Metadata validation: validates groups
python/metadata.py - FST block bootstrap → Metadata validation: matches samples
python/fst_analysis.py - FST block bootstrap → Chromosome remapping: loads chromosome map
python/fst_analysis.py - Replicated TreeMix → TreeMix population mapping: prepares populations
- TreeMix population mapping → Metadata validation: loads metadata
python/treemix_map.py - TreeMix population mapping → Chromosome remapping: loads chromosome map
python/treemix_map.py - Replicated TreeMix → TreeMix input conversion: converts frequencies
- Replicated TreeMix → TreeMix summaries: summarizes replicates
README.md - FST block bootstrap → FST and NJ plots: supports visualization
- TreeMix summaries → TreeMix plots: plots summaries
README.md - SNP QC → Analysis executables: uses executables
README.md - LD pruning → Analysis executables: uses PLINK
README.md - Replicated ADMIXTURE → Analysis executables: uses ADMIXTURE
README.md - Replicated TreeMix → Analysis executables: uses TreeMix
README.md