Exploring GBS data and some file conversions

I’ve been working on organizing my scripts to analyze GBS data for my dissertation chapter on the phylogeography of the Olympia oyster. Still a lot of work to do, but here’s a couple of notebooks. All notebooks can be found at my Github under 2016_Notebooks and the scripts referenced in them can be found in my Github’s Scripts repository.

GBS_File_Conversions.ipynb: I’m planning on using this notebook to describe various file conversion scripts and code snippets I’ve written to work with. May end up splitting them into separate notebooks, but we’ll see. Currently, it describes how to add population information to the Structure (.str) output from ipyrad/pyrad, whether that be integers (required by the actual Structure program), or strings (useful for programs like Adegenet in R). It also describes how to take a .geno or .str file and split it up into many .geno files for looking at pairwise Fst and nucleotide diversity in R.

Exploring_GBS_Data_With_R.ipynb: This notebook has snippets of code used to explore pairwise Fst and nucleotide diversity (pi). Will eventually expand to include other R-based analysis methods.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s