View source: R/create_database.R
| create_database | R Documentation |
The create_database() function builds a classification_database object
that can be used to generate the kmer database for downstream use in
classify_sequences(). This function is only necessary if you are building
your own database or modifying one of the existing databases provided in
{phylotypr} or {phylotyprrefdata}.
create_database(sequence_name, sequence, taxonomy, reference_data = NULL)
sequence_name |
A character vector of identifiers for each sequence in
the database. Should have the same number of values as found in the
|
sequence |
A character vector of the sequences that are included in
the database. Should have the same number of values as found in the
|
taxonomy |
A character vector of taxonomy data for each sequence in
the database. Should have the same number of values as found in the
|
reference_data |
single row data frame object that has columns vendor, name, version, usage, notes, method_url, documentation_url, and citation. This is supplied with databases obtained from phylotyprrefdata. This information is only used if user supplied sequences are supplied as a strollur object. |
A classification_database object, which is a list containing
the fields seq_taxonomy_data and reference_data. These are both
data.frame objects.
sequence_name <- c("seq_a", "seq_b", "seq_c")
sequence <- c("AAAATCGAGTA", "ATGCGCTCCCC", "ATGCGCTCCCC")
genera <- c("A;b;C;d", "A;b;C;e", "A;b;C;e")
create_database(
sequence_name = sequence_name,
sequence = sequence,
taxonomy = genera
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.