Skip to content

ericopolo/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

scripts

Here I'll put relatively simple, miscellaneous scripts.

runTreemix.R

Description

runTreemix.R automates the execution and plotting of Treemix analyses for multiple migration events, from zero to the maximum allowed. It also automatically converts VCF files before running the analysis, if necessary.

Dependencies

Running

Most of runTreemix options are actually Treemix arguments passed directly to it, with a few exceptions. Run it with Rscript runTreemix.R -h to see all the options. If you are going to use the convertion from VCF option, keep in mind that it is a fairly simple converter and just read the SNPs in a straight forward way, so it assumes you want all the SNPs present there in the very same order they are. So if you need to filter / reorganize your SNPs, do it before running runTreemix.

gphocs2tree.pl

This is a very simple Perl script that generates a nexus tree with divergence times (and 95% confidence intervals) from a G-PhoCS run. It takes the information about the phylogenetic relationship between populations from the G-PhoCS control file and tau estimates from the trace file.

Usage: perl gphocs2tree.pl [G-PhoCS control file] [G-PhoCS trace file] [root name] [burn-in (decimal)] [output file]

G-PhoCS: https://github.com/gphocs-dev/G-PhoCS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published