Skip to content

R package for calculating distances from cgMLST allele data and annotating dendrograms

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

hkaspersen/distanceR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

distanceR

R package for calculating distances from cgMLST allele data and annotating dendrograms.

Installation

Devtools is needed to install R packages from github. install.packages("devtools") Then activate devtools package. library(devtools) Then, install from github. install_github("hkaspersen/distanceR") Activate with library command. library(distanceR)

Functions:

  • calc_dist: Calculate distances from chewBBACA cgMLST.tsv file. Outputs a distance matrix.

  • calc_tree: Calculate distances from chewBBACA cgMLST.tsv file. Outputs a tree object.

  • annotate_tree: Annotates existing tree object with labels and colored nodes with data from a supplied metadata file. The file need to be a tab-separated text file, where the first column has the ID's that were used to create the tree object (exact matches, the order of the ID's doesn't matter).

  • add_heatmap: Annotates existing tree object with a heatmap from a supplied text file. The file need to be tab separated, where the first column has the ID's that were used to create the tree object (exact matches, the order of the ID's doesn't matter). The rest of the columns in the file will be used in the heatmap.

  • plot_tanglegram: Create a tanglegram between two trees to easily compare the leaves

  • simpson_diversity: Calculate the simpson diversity of data in a column.

Author

Håkon Kaspersen, Norwegian Veterinary Institute.

About

R package for calculating distances from cgMLST allele data and annotating dendrograms

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages