Skip to content

Convert ipyrad's output file (*.loci) into migrate-n's input file

License

Notifications You must be signed in to change notification settings

jinyung/loci2migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loci2migrate

Travis-CI Build Status DOI

Download

Install the package and use:

devtools::install_github("jinyung/loci2migrate")

Or just source the function:

source('https://raw.githubusercontent.com/jinyung/loci2migrate/master/R/loci2migrate.R')

Usage:

loci2migrate(locipath, poppath, filename)

Where,

locipath (char) path to .loci to be converted
poppath (char) path to file contains population info *
filename (char) path for output file

* This should be a tab delimited file with the first column as individuals' labels and the second column as the population label. E.g.

Ind1  Pop1
Ind2  Pop1
Ind3  Pop1
Ind4  Pop2
Ind5  Pop2
Ind6  Pop2
Ind7  Pop3
Ind8  Pop3
Ind9  Pop3

Citation:

something looks like this:

Wong, J. Y. (2019) loci2migrate version 0.0.2. doi: 10.5281/zenodo.2583679

or bibtex:

@misc{loci2migrate,
  doi = {10.5281/zenodo.2583679},
  year = 2019,
  author = {JY Wong},
  title = {loci2migrate v0.0.2},
  url = {https://github.com/jinyung/loci2migrate} 
}

(Change the version number for which you use)

About

Convert ipyrad's output file (*.loci) into migrate-n's input file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages