Description Usage Arguments Details Value Author(s)
Functions for converting peak tables to AFLP data arrays, and combining multiple arrays for analysis.
1 2 3 | binSet(pt, bins, pref, hthresh = 100)
aflpCombine(aflp1, aflp2)
|
pt |
A peak table, as generated by |
bins |
A bin table, as produced by |
pref |
A prefix to append to bin names, to allow for later combining data from different primer pairs |
hthresh |
The height threshold to score peaks as 'present'. You can revisit this decision later in the process. |
aflp1 |
aflp data arrays, as produced by |
aflp2 |
aflp data arrays, as produced by |
binSet
takes a peak table, applies the
given bins, and returns a 3D aflp data array.
aflpCombine
takes two aflp data arrays, as produced from
binSet
, and combines them into a single array
binSet
returns a 3D array. The rows are
samples, the columns are fragments, and the third dimension
splits the array into allele calls ("alleles"), peak heights
("heights") and fragment size in basepairs ("sizes"). Thus,
to retrieve the presence/absence matrix of allele calls, use:
aflp[ , , "alleles"]
, where aflp
is the object
returned by binSet
.
Other data summaries are readily available by creative slicing and dicing of the 3D array.
Tyler Smith
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.