Skip to content

Jiayi-Qu/Distribution_of_LD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

This is a repository containing codes used in the paper "Exact Distribution of Linkage Disequilibrium in the Presence of Mutation, Selection or Minor Allele Frequency Filtering".

In the folder src, the julia script named "functions.jl" contains all the functions necessary for generating the exact distribution of LD over generations. The julia script named "Recursive_pvec.jl" is the script used to generate the p vectors every 50 generations (where output interval can be redefined in the script). Values of Ne, c, and u are required from the users. Selections are not considered in this script. The script named "Recursive_pvec_selection.jl"is the script used to generate the p vectors over generations when selection occurs. "Non-linearRegressionPlotting.R" is the R script used to generate Figure 1 in the manuscript.

The table containing E(r^2) under different conditions are provided in the folder data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published