Description Usage Arguments Details Value Author(s) References See Also Examples

This function converts a binary phylogenetic tree to sequential binary parition to be used to then build an ILR basis for compositional metagenomic data.

1 | ```
phylo2sbp(tr)
``` |

`tr` |
a |

The choice of orientation for a balance (i.e., which of the two descendant clades of an internal node is in the numerator or denominator of the log-ratio) is given by the default of the function phangorn::Children and that choise is used consistently throughout the philr package.

a n by n-1 matrix of the sequential binary partition sign matrix

Justin Silverman

Schliep K.P. 2011. phangorn: phylogenetic analysis in R. Bioinformatics, 27(4) 592-593

1 2 | ```
tr <- named_rtree(5)
phylo2sbp(tr)
``` |

```
n1 n2 n3 n4
t2 1 1 1 0
t3 1 1 -1 0
t5 1 -1 0 0
t4 -1 0 0 1
t1 -1 0 0 -1
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.