org.forester.sdi
Class SDIdirectory

java.lang.Object
  extended by org.forester.sdi.SDIdirectory

public class SDIdirectory
extends Object


Constructor Summary
SDIdirectory()
           
 
Method Summary
static void infer(File indir, File species_tree_file, File outdir, File outfile, String suffix, boolean write_trees, boolean minimize_mapping_cost, boolean minimize_sum_of_dup, boolean minimize_height)
          Runs method "infer" of class SDIunrooted on all gene trees in directory indir.
static void main(String[] args)
          Main method for this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDIdirectory

public SDIdirectory()
Method Detail

infer

public static void infer(File indir,
                         File species_tree_file,
                         File outdir,
                         File outfile,
                         String suffix,
                         boolean write_trees,
                         boolean minimize_mapping_cost,
                         boolean minimize_sum_of_dup,
                         boolean minimize_height)
                  throws IOException
Runs method "infer" of class SDIunrooted on all gene trees in directory indir.

Trees are rooted by minimizing either the sum of duplications, the mapping cost L, or the tree height (or combinations thereof). One resulting tree for each (out of possibly many) is stored in outdir and a summary outfile is created. The distributions of the tree sizes (name of outfile + _Ddist) and the distributions of the sum of duplications per tree (name of outfile + _Sdist) are written out as well.

If both minimize_sum_of_dup and minimize_mapping_cost are true, trees are rooted by minimizing by minimizing the mapping cost L.

If minimize_sum_of_dup, minimize_mapping_cost, and minimize_height are false trees are assumed to be alreadty rooted.

(Last modified: 02/02/01)

Parameters:
indir - a directory containing gene trees in NHX format
species_tree_file - a species tree file in NHX format
outdir - a directory where to write trees
outfile - a file name for the summary file
suffix - a suffix for the trees to read (e.g. nhx), is case sensitive
write_trees - set to true to write out one tree with minmal duplications or L each
minimize_mapping_cost - set to true to root by minimizing the mapping cost L
minimize_sum_of_dup - set to true to root by minimizing the sum of duplications
minimize_height - set to true to root by minimizing the tree height -- if minimize_mapping_cost is set to true or minimize_sum_of_dup is set to true, then out of the resulting trees with minimal mapping cost or minimal number of duplications the tree with the minimal height is chosen
Throws:
IOException
See Also:
SDIR#infer(Phylogeny,Phylogeny,boolean,boolean,boolean,boolean,int,boolean)

main

public static void main(String[] args)
Main method for this class.

(Last modified: 01/13/01)

Parameters:
[args[0] - -l to root by minimizing mapping cost L]
[args[0] - -d to root by minimizing sum of duplications]
[args[0] - -w to write out trees into outdir]
[args[0] - -h to root by minimizing tree height]
[args[0] - -n input trees are in New Hampshire format instead of NHX -- or gene tree is in NHX, but species information in gene tree is only present in the form of SWISS-PROT sequence names]
args[0or1] - trees directory name
args[1or2] - suffix for gene trees
args[2or3] - speciestree file name
args[3or4] - output directory name
args[4or5] - output file name