public class ForesterWrapper extends 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 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 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 MultipleSequenceAlignmentIOException
- if the conversion was not possiblepublic static String getNewickString(org.forester.phylogeny.Phylogeny phylo, boolean writeDistances) throws IOException
phylo
- Phylogeny phylogenetic treewriteDistances
- write the branch lengths if trueIOException
public static org.forester.evoinference.matrix.distance.BasicSymmetricalDistanceMatrix cloneDM(org.forester.evoinference.matrix.distance.BasicSymmetricalDistanceMatrix distM)
distM
- forester symmetrical DistanceMatrixCopyright © 2000–2016 BioJava. All rights reserved.