public class ForesterWrapper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static org.forester.evoinference.matrix.distance.BasicSymmetricalDistanceMatrix |
cloneDM(org.forester.evoinference.matrix.distance.BasicSymmetricalDistanceMatrix distM)
Helper function to clone a forester symmetrical DistanceMatrix.
|
static <C extends Sequence<D>,D extends Compound> |
convert(MultipleSequenceAlignment<C,D> msa)
Convert a BioJava
MultipleSequenceAlignment to a forester
Msa. |
static java.lang.String |
getNewickString(org.forester.phylogeny.Phylogeny phylo,
boolean writeDistances)
Convert a Phylogenetic tree to its Newick representation, so that it can
be exported to an external application.
|
public static <C extends Sequence<D>,D extends Compound> org.forester.msa.Msa convert(MultipleSequenceAlignment<C,D> msa) throws java.io.IOException
MultipleSequenceAlignment to a forester
Msa. The easiest way to convert them is writting the msa as a
FASTA file and then parsing it with the forester FastaParser.msa - BioJava MultipleSequenceAlignmentjava.io.IOException - if the conversion was not possiblepublic static java.lang.String getNewickString(org.forester.phylogeny.Phylogeny phylo,
boolean writeDistances)
throws java.io.IOException
phylo - Phylogeny phylogenetic treewriteDistances - write the branch lengths if truejava.io.IOExceptionpublic static org.forester.evoinference.matrix.distance.BasicSymmetricalDistanceMatrix cloneDM(org.forester.evoinference.matrix.distance.BasicSymmetricalDistanceMatrix distM)
distM - forester symmetrical DistanceMatrixCopyright © 2000-2020 BioJava. All Rights Reserved.