genepop_GSIsim: Convert Genepop to GSI sim format.

View source: R/genepop_gsisim.R

genepop_GSIsimR Documentation

Convert Genepop to GSI sim format.

Description

Covert from GENEPOP to format required by gsi_sim. Note that output has SampleIDs formated as Population_Population_ID instead of conventioanl Population_ID to fit commong sampleID naming approach of genepopedit into the convention of gsi_sim.

Usage

genepop_GSIsim(genepop, path)

Arguments

genepop

the genepop data to be manipulated. This can be either a file path or a dataframe read in with tab separation, header=FALSE , quote="", and stringsAsFactors=FALSE. This will be the standard genepop format with the first n+1 rows corresponding to the n loci names, or a single comma delimited row of loci names followed by the locus data. Populations are separated by "Pop". Each individual ID is linked to the locus data by " , " (space, space space) and is read in as as a single row (character).

path

the filepath and filename of output.


rystanley/genepopedit documentation built on June 27, 2023, 11:33 p.m.