gene1: Example Gene 1 This is a genetic distance matrix of SNPs for...

Description Usage Format Examples

Description

Example Gene 1

This is a genetic distance matrix of SNPs for 19 isolates of Salmonella enterica to be used with the Newick phylogenetic tree (example tree 1) and the optional meta data file (example meta 1).

Usage

1

Format

An object of class spec_tbl_df (inherits from tbl_df, tbl, data.frame) with 16 rows and 17 columns.

Examples

1
2
3
4
5
6
data(gene1)
#convert to three column tibble by  label column and remove self comparisons
gene1 <- gene1 %>% dplyr::rename( label = 1) %>%
 tidyr::pivot_longer(-label )%>%
 .[which(.$label != .$name),] %>%
 dplyr::mutate(value=ifelse(value=="-", 0,value))

jennahamlin/Tinsel documentation built on Sept. 15, 2021, 9:46 a.m.