code for estimating the effect of background selection
C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bio
conf
numer
util
.gitignore
Makefile
README
bkgd.c
bkgd.h
bkgd_brlen_deriv.c
bkgd_data.c
bkgd_data.h
bkgd_evo_mdl.c
bkgd_evo_mdl.h
bkgd_evo_mdl_param.c
bkgd_evo_mdl_param.h
bkgd_expect_sites.c
bkgd_hist.c
bkgd_interp.c
bkgd_interp.h
bkgd_intg.c
bkgd_intg.h
bkgd_ll_area.c
bkgd_mean_cat_val.c
bkgd_mle.c
bkgd_n_sites.c
bkgd_param.c
bkgd_param.h
bkgd_point.c
bkgd_point.h
bkgd_reader.c
bkgd_reader.h
bkgd_selection.pdf
bkgd_subst_prob_report.c
branch.c
branch.h
calc_bkgd.c
cltype.c
cltype.h
combine_bkgd.c
interp_tab.c
interp_tab.h
intg_test.c
model.c
model.h
rectab.c
rectab.h
rescale_bkgd.c

README

This repository contains code for estimating the strength of
background selection. This software was written by Graham McVicker and
is described in detail in the methods section of our paper, McVicker
et al. 2009: http://dx.plos.org/10.1371/journal.pgen.1000471

Some additional mathematical details are provided in the file
bkgd_selection.pdf.

If you have any questions about the software please contact me at:
gpm@stanford.edu

calc_bkgd
---------

The calc_bkgd program computes the reduction in neutral diversity due
to background selection (B-values) at every site in a genome.  As
input the program takes a recombination map, a list of chromosomes to
run on, and the locations of elements that are believed to be under
purifying selection. All of the options for the program are provided
through a configuration file. An example file that explains all of the
options is provided in the conf/calc_bkgd.conf

calc_bkgd depends on glib-2.x (http://developer.gnome.org/glib/) for
several data structures (e.g. hashtables, linked lists, stacks), and
on the gnu scientific library (http://www.gnu.org/software/gsl/) for
numerical integration and function minimization. Both of these
software libraries must be installed before calc_bkgd can be compiled.

To compile:
  cd bkgd
  make


bkgd_mle
--------

This program uses the B-values computed by calc_bkgd and a
multi-species sequence alignment to perform maximum likelihood
estimation of evolutionary parameters such as mutation rates,
deleterious mutation rates, effective population sizes, and speciation
times. The program is written specifically for multiple alignments of
human, chimp, gorilla, orangutan macaque genome sequences, but could
probably be adapted to other purposes. Currently this program is not
built by the makefile. Contact me if you are interested in using this
part of the code and I can help get you started.