Description Usage Arguments Value Author(s)
This functions returns gene similarity / distance based on microbial gene profiles given as input. Gene similarity between two clades / genomes is the number of common genes between the genomes divided by the number of genes in the smaller genome, as defined in https://www.ncbi.nlm.nih.gov/pubmed/9916801 Gene distance is '1 - gene similarity'. #'
1 | gene_distance(x, return_similarity = FALSE)
|
x |
data frame or matrix (genomes x genes) containing gene profiles |
return_similarity |
set TRUE to return similarity instead of distance |
a dist object containing gene similarities / distances
Tommi Vatanen <tommivat@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.