as_tidygenomes | R Documentation |
This function creates a new tidygenomes object from a genome table, pangenome table, genome tree or genome pair table.
as_tidygenomes(data)
data |
A data type that can be converted into a tidygenomes object |
data
should be one of the following:
a genome table: contains a variable genome
, with unique values
a pangenome table: contains the variables gene
, genome
and
orthogroup
a genome tree: should be of class phylo
a genome pair table: contains the variables genome_1
and
genome_2
, with only unique combinations and without self-pairs
A tidygenomes object: this is a list consisting of a genome table and optionally extra data objects related to the genomes in the genome table
genomes <- data.frame(genome = c("genome 1", "genome 2")) tg <- as_tidygenomes(genomes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.