Learn R Programming

RADami (version 1.1-2)

grab.pyRAD.locus: Extract sequence data for one or a few loci

Description

This function is pretty rudimentary and I've used it but little. As much as anything, it's a reminder for how to get sequence data out of a pyRAD.loci object.

Usage

grab.pyRAD.locus(pyDat, locName,
  dat.format = c("text", "fasta", "matrix"))

Arguments

pyDat
an object of class pyRAD.loci
locName
character name of the locus or loci you want
dat.format
currently takes text, fasta, or matrix, but the fasta format would still need to be written to a file

Value

A named character vector if dat.format is 'text' or 'fasta', otherwise a matrix