Lab 5: strataG Nora Mitchell February 2017

Contents 1 Introduction 1.1 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1 1

2 Getting Started

2

3 Using Structure 3.1 Running Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Evanno et al. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Alternative prior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2 2 3 3

4 References

3

1

Introduction

We’ve already used Structure (Pritchard et al., 2000), the program that uses multi-locus genotype data and MCMC to perform individual assignment for population genetics analysis. 1. Let’s try to use it with a wrapper package in R! 2. strataG (Archer et al. 2016) is a toolkit for haploid sequence and multilocus genetic data summaries, and analyses of population structure. 3. Let’s look at some assumptions: are populations of equal size (Wang 2016)

1.1

Installation

• Please install Structure v2.3.4 package WITHOUT FRONT END from here http:// pritchardlab.stanford.edu/structure_software/release_versions/v2.3.4/html/ structure.html • You will need to know the path of where you have installed the files. 1

• Add this path to the PATH system variable on your machine. OS specific instructions here: https://www.java.com/en/download/help/path.xml • Install the strataG package in R, install the installr package in R. Call both libraries using the library() function • Check that your path is listed in your sytem by using the system.PATH() function in R (from installr library).

2

Getting Started

Let’s get our data in shape. • Call the adegenet library, and use the same read.structure() code from project 2 (repens.stru) to import the repens data. • You will now have a “genind” object. We need to convert this to a “gtypes” object for strataG • Use the function genind2gtypes() to create a new gtypes object. • Look at the structure of this object.

3

Using Structure

To actually use structure, use the structureRun() function

3.1

Running Structure

• Make sure you use ?structureRun to look at the function’s help page • Assign function output to a new object called, for instance, “default output” • Use a k.range of 2:16 (for sake of time) • Set num.k.rep equal to 2 • label = “default” • Use default burnin and numreps

2

3.2

Evanno et al.

Now let’s look at some output • Use the evanno() function to look at Evanno et al. plots for the default output • Choose value(s) of K to look at • Make Structure barplots for Ks of interest using the structurePlot() function (Hint: look at the structure of your “default output” object)

3.3

Alternative prior

Let’s take Wang (2016)’s advice into account • To change settings to switch to separate alphas, we need to change the extraparams file • Nora has edited the function and made new function called runStructureAlt() in a separate R file • Run the code to write this function. • Run this function using same settings as above, name it “alt output” • label = “alt” • Make Evanno plots, look at barplots Compare outputs, in terms of inferred K

4

References • Archer, F. I., Adams, P. E. and Schneiders, B. B. (2016), strataG: An R package for manipulating, summarizing and analysing population genetic data. Mol Ecol Resour. doi:10.1111/1755-0998.12559 • Evanno, G., S. Regnaut, and J. Goudet. 2005. Detecting the number of clusters of individuals using the software STRUCTURE: a simulation study. Molecular Ecology 14:2611-2620. • Pritchard, J. K., M. Stephens, and P. Donnelly. 2000. Inference of population structure using multilocus genotype data. Genetics 155:945-959. • Wang, J. (2016). The computer program Structure for assigning individuals to populations: easy to use but easier to misuse. Molecular Ecology Resources.

3

Lab 5: strataG - GitHub

Let's take Wang (2016)'s advice into account. • To change settings to ... individuals using the software STRUCTURE: a simulation study. Molecular Ecology.

84KB Sizes 21 Downloads 442 Views

Recommend Documents

strataG - GitHub
Feb 14, 2017 - STRUCTURE to perform individual assignment analysis. This program takes genetic data from individuals and is iteratively run over different ...

Lab 3: Structure - GitHub
Structure Harvester is very easy to use, and is all web-based! You simply upload your zip file and then click “Harvest!” It may take a few minutes to run.

Lab 3 Example - GitHub
Download “polygonum.stru”'. • Look at “polygonum.stru” using a text editor. – Column 1 refers to individual ID (516 total individuals). – Column 2 refers to ...

INTRACOM TELECOM: SDN/NFV Lab: OpenDaylight ... - GitHub
we were using CPU affinity [9] to achieve this resource isola- ..... 9: Switch scalability stress test results with active MT–Cbench switches. ..... org/files/odl_wp_perftechreport_031516a.pdf. [10] “Mininet. An instant virtual network on your La

Integrated Transport Research Lab KTH - GitHub
Page 1. Integrated Transport Research Lab. KTH.

INTRACOM TELECOM: SDN/NFV Lab: OpenDaylight ... - GitHub
9. 5.1.1. ”DataStore” mode, 12 hours running time . . . . 9. 5.1.2. ”RPC” mode, 12 hours running time . . . . . . . 10 ..... An instant virtual network on your Laptop.” http:.

Brooklyn Community District 5 - GitHub
Affordable housing. 2. Cultural facilities & programs. 3. Unemployment. To learn more, please read Brooklyn CD 5's · Statements of Community District Needs · and Community Board Budget Requests · for Fiscal Year 2018. A Snapshot of Key Community Indi

Queens Community District 5 - GitHub
of residents 5 years or older have limited · English proficiency. Queens. 18%. 20%. NYC. 21%. Queens CD 5 of residents have incomes below the NYCgov poverty threshold. See the federal poverty rate here. NYCgov POVERTY MEASURE11. Queens. 30%. 25%. NYC

Bronx Community District 5 - GitHub
This metric from the Mayor's Office for Economic Opportunity accounts for NYC's high cost of housing, as well as other costs of living and anti-poverty benefits. Land Use Category. % Lot. Area. # Lots. Click here for a more detailed land use map of B

Manhattan Community District 5 - GitHub
Park. MN 4. MN 6. MN 2. MN 8. Manhattan Community District 5. Neighborhoods1: Flatiron, Gramercy Park, Herald Square, Midtown, Midtown South, Murray Hill, Times Square, Union Square. Top 3 pressing issues identified by. Manhattan Community Board 5 in

Chapter 5 Lab 5-1, Configure and Verify Path Control
Note: This lab uses Cisco 1841 routers with Cisco IOS Release 12.4(24)T1, ... Cisco IOS Software versions if they have comparable capabilities and features.

CSCI 305 Homework 5 - GitHub
Apr 16, 2018 - The following code fragment uses arrays in Java. The first line declares and allocates an array of two integers. The next two lines initialize it. int[] A = new int[2];. A[0] = 0;. A[1] = 2; f(A[0], A[A[0]]);. Function f is defined as:

Chapter 5 and 6 - GitHub
Mar 8, 2018 - These things are based on the sampling distribution of the estimators (ˆβ) if the model is true and we don't do any model selection. • What if we do model selection, use Kernels, think the model is wrong? • None of those formulas

Queens Community District 5 Basemap - GitHub
OTTO RD. HO. W. ARD. AV. 66. DR. 65. PL. 69. PL. 69 PL. TR. OU. TM. AN. ST. 75 PL. 71. ST. 71 ST. 64LA. 69. PL. 69. PL. 65. ST. 65. ST. 72. ST. 76. ST. CROMW. ELL. CRESCENT. 70. ST. BOELSEN. CRESCENT. 73. ST. 59. PL. 72 ST. 72. ST. 60. LA. 59. ST. DI

Manhattan Community District 5 Basemap - GitHub
De Witt. Clinton. Park. Bryant. Park. Central. Park. JO. ED. IM. AG. GIO. HIG. HW. AY. 12 A. V. WEST 34 ST. WEST 34 ST. WEST 21 ST. WEST 25 ST. WEST 57 ST. EAST 57 ST. WEST 35 ST. WEST 35 ST. WEST 31 ST. WEST 36 ST. WEST 36 ST. EAST 34 ST. EAST 44 ST

Brooklyn Community District 5 Basemap - GitHub
OLD. MILL. C. R. E. EK. JAMAICABAY. Linden. Park. Gemini Fields. Highland. Park. Spring. Creek Park. Addition. Breukelen. Ballfields. Fresh C reek. N ature. Preserve. Spring C reek Park. Forest. Park. AM. BO. Y. ST. LIBERTY AV. LIBERTY AV. LIBERTY AV

Programming Exercise 5: Regularized Linear Regression ... - GitHub
where λ is a regularization parameter which controls the degree of regu- larization (thus ... Finally, the ex5.m script should also plot the best fit line, resulting in an image similar to ... When you are computing the training set error, make sure

Bronx Community District 5 Basemap - GitHub
Crotona. Park. Tremont. Park. Sherman. Creek. Devoe. Park. St. James. Park. C lare m o n t. P ark. Bridge Park. Highbridge. Park. Harlem River Park. PRO. SPECT AV. OA. K. TR. EE. PL. EA. ST. 183 ST. HIG. H. BR. ID. GE. EA. ST. 181. ST. GRAND CONCOURS

lecture 5: matrix diagonalization, singular value ... - GitHub
We can decorrelate the variables using spectral principal axis rotation (diagonalization) α=XT. L. DX. L. • One way to do so is to use eigenvectors, columns of X. L corresponding to the non-zero eigenvalues λ i of precision matrix, to define new

AIFFD Chapter 5 - Age and Growth - GitHub
May 13, 2015 - The following additional packages are required to complete all of the examples (with ... R must be set to where these files are located on your computer. ...... If older or younger age-classes are not well represented in the ... as the

SWE20001 Lab Team 02 Project Convert Research * The ... - GitHub
Convert code only. SharpDevelop. Microsoft Visual C++ 2008 ... Online Service. • Free. Convert code only. Other online code converters such as. Telerik Code.

Two-tier App migration on Azure Container: Lab Guide ... - GitHub
OnPremisesRG (any valid name) b. Location: East US(any location) c. Virtual Machine Name: WebDbServer (Any valid name) d. Admin User: demouser (any username of your choice) e. Admin Password: . Accepts terms and conditions and click on Purchase butto

NETWORKS LAB MANUAL CBCS SCHEME 5 sem.pdf
Page 2 of 3. Computer Network Laboratory 15CSL57. Dept of CSE, MITE, Moodabidri Page 1. COMPUTER NETWORK LABORATORY. [As per Choice Based Credit System (CBCS) scheme]. (Effective from the academic year 2017 -2018). SEMESTER – V. Subject Code 15CSL5

Ignace Niyitanga 1 Thierry Uwanyirigira 1 prime numbers (5 ... - GitHub
3 statistics of random. Eddy Gael. Kaze. 3 Functions (2). Isaac. Oppong. 3. Alexis. Nshimiyimana. 4. Hammed Adewale. Ejalonibu. 4 construction of numbers (1) ...