Skip to content

Latest commit

 

History

History
14 lines (14 loc) · 534 Bytes

File metadata and controls

14 lines (14 loc) · 534 Bytes

How to :

create a phylogenetic distance matrix

- get the _ncbi taxonomic id_ (from ensembl for example)
- create a phylogenetic tree from a tree creating algorithm
- on R write:
```R
 treeText <- readLines(tree.phy)
        treeText <- paste0(treeText, collapse="")
        library(treeio)
        tree <- read.tree(text = treeText) ## load tree 
    distMat <- cophenetic(tree) ## generate dist matrix
```

source could have used