snp2gen: Conversion function for SNP nucleotide genotype matrix to a...

Description Usage Arguments Value Author(s) Examples

Description

This function converts SNP nucleotide genotype to genepop file format.

Usage

1
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

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

## End(Not run)


Search within the diveRsity package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.