* 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.
* 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.
*/
public static void main( final String args[] ) {
Phylogeny phylogeny_w_bl = null; // Has correct branch lengths
*/
public static void main( final String args[] ) {
Phylogeny phylogeny_w_bl = null; // Has correct branch lengths
final PhylogenyParser pp_bl = ParserUtils.createParserDependingOnFileType( infile_bl, true );
final PhylogenyParser pp_s = ParserUtils.createParserDependingOnFileType( infile_support_vals, true );
if ( pp_bl instanceof NHXParser ) {
final PhylogenyParser pp_bl = ParserUtils.createParserDependingOnFileType( infile_bl, true );
final PhylogenyParser pp_s = ParserUtils.createParserDependingOnFileType( infile_support_vals, true );
if ( pp_bl instanceof NHXParser ) {
}
phylogeny_w_bl = factory.create( infile_bl, pp_bl )[ index_of_tree_w_bl ];
phylogeny_w_support_vals = factory.create( infile_support_vals, pp_s )[ 0 ];
}
phylogeny_w_bl = factory.create( infile_bl, pp_bl )[ index_of_tree_w_bl ];
phylogeny_w_support_vals = factory.create( infile_support_vals, pp_s )[ 0 ];
* 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.
* 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.