gpayzer / Visualization

0 stars 1 forks source link

1) Edges from Newick string #1

Open gpayzer opened 10 years ago

gpayzer commented 10 years ago

(Python?) script to take Newick string and spit out edges

matsen commented 10 years ago

Check out the biopython cookbook for phylogenetics. See in particular the Convert to a NumPy array or matrix section. I bet that processing can digest adjacency matrices.

matsen commented 10 years ago

Surprisingly little direct support that I can find. However, you can read from a CSV with a single command as described here. You can read in a newick string and convert to an adjacency matrix using biopy (link above now fixed).