org.forester.application
Class support_transfer

java.lang.Object
  extended by org.forester.application.support_transfer

public final class support_transfer
extends Object


Constructor Summary
support_transfer()
           
 
Method Summary
static void main(String[] args)
          Transfers branch length values from one Phylogeny to another.
static void moveBranchLengthsToBootstrap(Phylogeny p)
          Moves the values in the branch length field to the bootstrap field, for each PhylogenyNode of this Phylogeny.
static void transferSupportValues(Phylogeny from, Phylogeny to)
          Modifies Phylogeny to with the support values from Phylogeny from.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

support_transfer

public support_transfer()
Method Detail

main

public static void main(String[] args)
Transfers branch length values from one Phylogeny to another. It is mainly a "main method" for method "copyBranchLengthValuesFrom( Phylogeny )" of org.forester.phylogeny.Phylogeny, to be used in other (Perl) programs.

Parameters:
args[0] - Filename (String) for Phylogeny which has correct branch length values
args[1] - String Filename (String) for Phylogeny to which the branch lengths of the first Phylogeny are to be copied, both Trees must only differ in their branch length values, i.e. topology and sequence names, etc. must be the same
args[2] - String Filename (String) for outputfile
args[3] - String [number of tree with correct bl to use in case treefile contains more than one, default 0]

moveBranchLengthsToBootstrap

public static final void moveBranchLengthsToBootstrap(Phylogeny p)
Moves the values in the branch length field to the bootstrap field, for each PhylogenyNode of this Phylogeny. Converts a Phylogeny originating from a phylip treefile after bootstrapping and which therefore has its bootstrap values where the branch lenghts would be.


transferSupportValues

public static final void transferSupportValues(Phylogeny from,
                                               Phylogeny to)
Modifies Phylogeny to with the support values from Phylogeny from. Important (but obvious): The topology of both trees needs to be the same. The method is not robust, and might produce wrong results if the internal topology differs or if the external node names are not unique.

Parameters:
from - the Phylogeny to copy the support values from
to - the Phylogeny to copy the support values to