Skip to content

Nei-Saitou neighbor-joining algorithm for phylogeny construction/inference. Neighbor joining is a bottom-up (agglomerative) clustering method for the creation of phylogenetic/evolutionary trees.

Notifications You must be signed in to change notification settings

anicksaha/neighbor_joining

Repository files navigation

Neighbor joining

Nei-Saitou neighbor-joining algorithm for phylogeny construction.

Prereq:

  • Python 2.7
  • R, Packages - “ape” and “RColorBrewer”
  • install.packages(c('ape','RColorBrewer'))

How to Run?

  • python main.py hw3.fna

This generates the following files:

  1. genetic_distances.txt
  2. edges.txt
  3. tree.txt
  4. bootstrap.txt

All the above files are in the folder submission.

Visualize

For visualization:

  • Rscript scripts/hw3-plot-newick.r tree.txt hw3-tip-labels.txt
  • Rscript scripts/hw3-plot-edges.r edges.txt hw3-tip-labels.txt

For bonus visualization:

  • Rscript scripts/hw3-plot-edges.r edges.txt hw3-tip-labels.txt bootstrap.txt

About

Nei-Saitou neighbor-joining algorithm for phylogeny construction/inference. Neighbor joining is a bottom-up (agglomerative) clustering method for the creation of phylogenetic/evolutionary trees.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published