Blogroll
Follow me on Twitter
My Tweets-
Recent Posts
- Follow gcbias on WordPress.com
Archives
- August 2022
- July 2022
- March 2022
- February 2022
- October 2021
- August 2021
- January 2020
- October 2019
- June 2019
- February 2019
- June 2018
- May 2018
- March 2018
- December 2017
- November 2017
- September 2017
- June 2017
- March 2017
- January 2017
- September 2016
- July 2016
- June 2016
- May 2016
- April 2016
- July 2015
- June 2015
- May 2015
- March 2015
- February 2015
- December 2014
- October 2014
- August 2014
- June 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- March 2013
- February 2013
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- December 2011
- November 2011
- October 2011
- September 2011
Categories
Meta
tags
Blog tags
Category Archives: Programming exercises
Population genetics course resources: Demostrating the uses of coalescent simulations
A problem set making use of the coalescent simulations the students wrote for a previous exercise (see here). They use the code to calculate p-values for the observed number of segregating sites, this could be done under the HKA test … Continue reading
Posted in popgen teaching, Programming exercises, teaching
1 Comment
Population genetics course resources: Modeling a serial bottleneck out of Africa.
The decreasing level heterozygosity as a function of distance from Africa in human populations is one of the pieces of evidence for the (mainly) out-of-Africa model, see here for a review. This observation is consistent with a serial population bottleneck … Continue reading
Posted in popgen teaching, Programming exercises, teaching
Leave a comment
Population genetics course resources: Coding up the coalescent time distribution.
A homework exercise coding up a coalescent model in a constant population of size N. There’s a variety of ways this could be done, the code is setup to guide a person through one of those. The code is applied … Continue reading
Posted in popgen teaching, Programming exercises, teaching
1 Comment
Population genetics course resources: Exercise coding a wright-fisher model of selection and drift
A homework exercise coding a wright-fisher model of selection and drift. There’s a variety of ways this could be done, the code is setup to guide a person through one of those. If you do use these scripts and figures, … Continue reading
Posted in popgen teaching, Programming exercises, teaching
Leave a comment
Population genetics course resources: Code to simulate individuals for F statistics analysis
This code simulates inbred individuals with a particular FIS or a first generation admixed individual. The code simulates four individuals used to create the simulated individuals used in the homework exercise on F statistics. The code needs the file combined.YRICEU.out, … Continue reading
Posted in popgen teaching, Programming exercises, teaching
Leave a comment
Population genetics course resources: F statistics
Some code to demonstrate FST, FIT, and FIS as a homework assignment in R using HapMap data from YRI Africans and CEU Europeans, and simulated individuals. The file combined.YRICEU.out contains ~10,000 SNPs (less a few, due to removing some monomorphic … Continue reading
Posted in popgen teaching, Programming exercises, teaching
1 Comment
Population genetics course resources: Hardy-Weinberg Eq.
Using data from the Hapmap to illustrate Hardy Weinberg equilibrium. The code and the data are below. The original inspiration for these comes from John Novembre, who made a similar plot for one of his classes. I took 10,000 SNPs … Continue reading
Posted in popgen teaching, Programming exercises, teaching
14 Comments
Population genetics course resources: Quantitative traits 3.
Final of this initial set of 3 quantitative trait simulations. The first reason I set out to do these simulations is that none of the figures in text books were very good (okay these aren’t pretty but at least I … Continue reading
Posted in popgen teaching, Programming exercises, teaching
2 Comments
Population genetics course resources: Quantitative traits 2.
The second quantitative trait code post. The set up is the same as in the last QT post. I simulate parents with L genotypes drawn binomially from the population, and then make kids from these parents. This one makes the … Continue reading
Posted in popgen teaching, Programming exercises, teaching
1 Comment
Population genetic course resource: Quantitative traits 1
Here’s the first of 3 Quantitative trait simulations I wrote for last year. We used them in class and also had the TAs in my big undergrad class use them. Code to simulate the phenotypes of a population. There are … Continue reading
Posted in popgen teaching, Programming exercises, teaching
2 Comments