lengths.report: Return the lengths of all loci in a pyRAD.loci object

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

View source: R/lengths.report.R

Description

Return the lengths of all loci in a pyRAD.loci object

Usage

1
2
3
lengths.report(dat, numtodo = 10,
               reportInterval = 2000,
               high.mem = TRUE)

Arguments

dat

an object of class pyRAD.loci

numtodo

an integer specifying how many loci to return the length of

reportInterval

how many loci between reports of time required to complete when using high.mem = FALSE

high.mem

forces the code to loop through instead of using sapply

Details

Called by summary.pyRAD.loci, and thus not ordinarily needed by users. If looping is used to get lengths, the function runs very slowly, and reportInterval can be useful. In early tests, I was having memory allocation issues, so high.mem was useful. I haven't needed it since then, but maybe you will.

Value

A named vector of class integer, with names corresponding to loci whose lengths are returned

Author(s)

Andrew Hipp

See Also

read.pyRAD, summary.pyRAD.loci

Examples

1
2
3
4
  data(oak.rads)
  lengths.report(oak.rads, -1) # returns all loci
  lengths.report(oak.rads, 20) # returns only the first 20 loci
  identical(oak.rads$radSummary$locus.lengths, lengths.report(oak.rads, -1))

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