read.astral {treeio} | R Documentation

## read.astral

### Description

parse ASTRAL output newick text

### Usage

    read.astral(file)

### Arguments

`file` | ASTRAL Newick file

### Value

treedata object

### Author(s)

Guangchuang Yu

### Examples

    tt <- "((species1,(species2,species3)'[pp1=0.75;pp2=0.24;pp3=0.01]':1.2003685744180805)'[pp1=0.98;pp2=0.02;pp3=0]':0.9679599282730038,((species4,species5)'[pp1=0.88;pp2=0.11;pp3=0.01]':1.2454851536484994))"
    read.astral(textConnection(tt))

[Package treeio version 1.6.2 Index]