View source: R/summary.pyRAD.loci.R
summary.pyRAD.loci | R Documentation |
pyRAD.loci
objectsThis function provides the summary stats used by many functions in RADami
## S3 method for class 'pyRAD.loci'
summary(object, rm.na = TRUE, ...)
object |
an object of class |
rm.na |
Boolean: remove NA individuals from inds.mat, due to blank lines in pyRAD loci objects |
... |
not currently used, but maintained for consistency with default |
This is currently called by default by read.pyRAD
, creating a list object called radSummary
in value for that object.
A list with of the following objects:
num.loci |
an integer, indicating how many loci there are in the object |
tips.per.locus |
a list of character vectors, enumerating the tips in each locus |
break.vectors |
a named character vector of the break lines between vectors, with names
corresponding to locus names – completely redundant with the same object in the
|
seqs.per.locus |
a list of named character vectors, enumerating the sequences in each locus, named by tips |
num.inds.per.locus |
an integer vector, indicating how many individuals are in each locus |
variable.loci |
a boolean vector, indicating which loci are variable (only using the pyRAD break vectors) |
inds.mat |
a handy boolean matrix with individuals as the rows and loci as the columns;
used in several places in |
locus.lengths |
an integer vector, indicating the length of each locus |
Probably these functions could be teased apart to be more useful and save space, but for now they are left as is. At this point, there is actually a fair bit of redundancy.
Andrew Hipp
read.pyRAD
,
print.pyRAD.loci
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.