Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

snp2gen

Conversion function for SNP nucleotide genotype matrix to a genepop file.


Description

This function converts SNP nucleotide genotype to genepop file format.

Usage

snp2gen(infile = NULL, prefix_length = 2)

Arguments

infile

A character string indicating the name of the text file containing SNP genotypes.

prefix_length

This argument specifies the population specific prefix within individual names.

Value

A genepop file written to disk as "snp2gen-converted.gen"

Author(s)

Kevin Keenan, 2014

Examples

## Not run: 
data(SNPs, package = "diveRsity")
snp2gen(infile = SNPs, prefix_length = 2)

## End(Not run)

diveRsity

A Comprehensive, General Purpose Population Genetics Analysis Package

v1.9.90
GPL (>= 2)
Authors
Kevin Keenan <kkeenan02@qub.ac.uk>
Initial release
2017-03-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.