rad2mat: Generates a matrix of sequences from a 'pyRAD.loci' object

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/rad2mat.R

Description

This function exports a matrix of sequences from a pyRAD.loci object, with aligned sequences in the cells, individuals as rows, and loci as columns. As a matrix, this is very easy to work with in R for subsetting and creating new datasets.

Usage

1
rad2mat(pyDat, fill.N = TRUE)

Arguments

pyDat

an object of class pyRAD.loci

fill.N

indicates whether empty cells should be filled with Ns (TRUE) or not

Details

In general, filling with Ns is a handy thing to do, even though it presumably eats up a bunch of memory. As written, RADami is not memory-friendly.

Value

A matrix of sequences from a pyRAD.loci object, with aligned sequences in the cells, individuals as rows, and loci as columns

Author(s)

Andrew Hipp

See Also

rad2phy, summary.pyRAD.loci

Examples

1
2

RADami documentation built on May 30, 2017, 8:23 a.m.