View source: R/make.unique.vouchers.R
| make.unique.vouchers | R Documentation |
Generates a vector of vouchers with order corresponding to order of sequences in rows of provided metadata table.
make.unique.vouchers(metadata, voucherFormula = c("Primary.collector.last.name", "Collector.number", "isolate", "CollectionNumber", "Collection"))
metadata |
A data frame of sequence-associated metadata, the output of |
voucherFormula |
A vector of strings, the names of the columns in the metadata that are to be included in the voucher. |
The default for voucherFormula is Primary.collector.last.name, Collector.number, isolate, CollectionNumber, Collection,
which correspond to default column names in the metadata. organism is not included in this
formula, as specimens can be re-classified throughout their lifetime, so taxon name may not stay
constant across all sequences belonging to a single specimen.
The function tidyName is used internally to standardize vouchers so that differences in capitalization and punctuation do not prevent the linkage of two gene sequences to a single specimen.
The output of this function should be added as a column to the metadata data frame in order to
use the make.gene.matrix function. This can be done with cbind.
A vector of strings, containing a generated voucher for each sequence, order corresponding to the rows of the metadata.
Andrew Hipp and Kasey Pham
parse.INSDSeq, tidyName
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.