GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - henriquevf/popgen-scripts: Standalone, documented population-genomics modules for non-model/wildlife genomics: heterozygosity, coverage QC, SNP density, gene-set enrichment.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
angsd_het
angsd_het
 
 
bioclim_extract
bioclim_extract
 
 
collinearity_prune
collinearity_prune
 
 
coverage_plot
coverage_plot
 
 
gprofiler
gprofiler
 
 
het_snp_density
het_snp_density
 
 
topwindows_bed
topwindows_bed
 
 
vcf2eigenstrat
vcf2eigenstrat
 
 
vcf2phylip_windows
vcf2phylip_windows
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
environment.yml
environment.yml
 
 
references.bib
references.bib
 
 

Repository files navigation

popgen-scripts

A small, curated collection of standalone population-genomics scripts for non-model / wildlife genomics. Each topic is a self-contained module you can run on its own — no workflow engine, no shared framework to learn. Every module ships its code, a README.md, a theory write-up (theory.md) with primary references, and a tiny bundled example so you can smoke-test it without cluster data.

These are consolidated, cleaned-up rebuilds of scripts accumulated across several projects. For a fully reproducible Snakemake pipeline version of the diversity statistics, see the separate popgen-toolkit project.

Modules

module what it does languages needs
coverage_plot genome-wide depth & breadth from BAMs, per-sample and per-chromosome plots bash + python samtools
angsd_het per-individual heterozygosity from BAMs via ANGSD SAF → realSFS (low-coverage safe) bash + python angsd, samtools
het_snp_density per-individual heterozygous SNP density in windows, per-individual × chromosome heatmap bash + R bcftools
gprofiler gene-set over-representation analysis with g:Profiler (+ positions→genes helper) python gprofiler-official

Install

One conda environment covers every module:

conda env create -f environment.yml     # or: mamba env create -f environment.yml
conda activate popgen-scripts

Individual modules only need a subset (see each module's README); the single env is provided for convenience.

Quick start

Each module has a runnable smoke test on bundled toy data:

cd het_snp_density && bash example/make_example.sh && \
  bash snp_density.sh -v example/toy.vcf -o example/toy.snpden.txt

See the per-module READMEs for full usage. Method background and citations are in each theory.md; all references are collected in references.bib.

Design conventions

  • Standalone & parameterized — every script takes CLI arguments (argparse / getopts); no hardcoded paths. Bash wraps the genomics tools, Python handles logic and matplotlib plots, R handles the ggplot heatmap.
  • Correct normalization — diversity/heterozygosity metrics are normalized by callable sites, not by raw window length (see the theory.md files).
  • Theory is a deliverable — a method is not "done" without its theory write-up and verified primary references.

License

MIT — see LICENSE.

About

Standalone, documented population-genomics modules for non-model/wildlife genomics: heterozygosity, coverage QC, SNP density, gene-set enrichment.

Topics

angsdbioinformaticsconservation-genomicsheterozygositypopulation-genomicssnp-density

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.