Skip to content

mrtnj/inbreeding_segments_simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simulation of shared genome segments in simple pedigrees

Code to accompany the blog post "Simulating shared segments between relatives".

Uses AlphaSimR with recombination tracking to follow IBD segments in small simulated populations.

Contents

  • R/simulate_inbreeding_segments.R: main simulation script, runs three pedigrees, compares segments between two target individuals and genomic inbreeding in their offspring.

  • R/simulation_functions.R: helper functions to simulate a pedigree and compare individuals.

  • R/summarise_results.R: take output from simulation and make graphs.

  • pedigrees/: three small pedigrees (full sibs, half sibs, cousins)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages