X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2Ftools%2FPhylogeneticInferrer.java;h=0f29e93523b61a10f71dca7115b27d8f1b2f1419;hb=6b3ec0cd978bd692dfae1de3e076963283fdf322;hp=20da0c3b519d76e0a6cba0f10b3d4dd77c1a430f;hpb=083c646bffc9c910714880519a029ef8a38e4942;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/tools/PhylogeneticInferrer.java b/forester/java/src/org/forester/archaeopteryx/tools/PhylogeneticInferrer.java index 20da0c3..0f29e93 100644 --- a/forester/java/src/org/forester/archaeopteryx/tools/PhylogeneticInferrer.java +++ b/forester/java/src/org/forester/archaeopteryx/tools/PhylogeneticInferrer.java @@ -47,7 +47,7 @@ import org.forester.msa.MsaMethods; import org.forester.msa.ResampleableMsa; import org.forester.phylogeny.Phylogeny; import org.forester.phylogeny.PhylogenyMethods; -import org.forester.sequence.Sequence; +import org.forester.sequence.MolecularSequence; import org.forester.tools.ConfidenceAssessor; import org.forester.util.ForesterUtil; @@ -56,12 +56,12 @@ public class PhylogeneticInferrer extends RunnableProcess { private Msa _msa; private final MainFrameApplication _mf; private final PhylogeneticInferenceOptions _options; - private final List _seqs; + private final List _seqs; private final boolean DEBUG = true; public final static String MSA_FILE_SUFFIX = ".aln"; public final static String PWD_FILE_SUFFIX = ".pwd"; - public PhylogeneticInferrer( final List seqs, + public PhylogeneticInferrer( final List seqs, final PhylogeneticInferenceOptions options, final MainFrameApplication mf ) { _msa = null; @@ -144,6 +144,7 @@ public class PhylogeneticInferrer extends RunnableProcess { } final NeighborJoiningF nj = NeighborJoiningF.createInstance( false, 5 ); final Phylogeny phy = nj.execute( m ); + PhylogenyMethods.addMolecularSeqsToTree( phy, msa ); PhylogenyMethods.extractFastaInformation( phy ); return phy; } @@ -203,7 +204,7 @@ public class PhylogeneticInferrer extends RunnableProcess { } final MsaMethods msa_tools = MsaMethods.createInstance(); if ( _options.isExecuteMsaProcessing() ) { - msa = msa_tools.removeGapColumns( _options.getMsaProcessingMaxAllowedGapRatio(), + msa = msa_tools.deleteGapColumns( _options.getMsaProcessingMaxAllowedGapRatio(), _options.getMsaProcessingMinAllowedLength(), msa ); if ( msa == null ) { @@ -259,7 +260,8 @@ public class PhylogeneticInferrer extends RunnableProcess { } } - private Msa runMAFFT( final List seqs, final List opts ) throws IOException, InterruptedException { + private Msa runMAFFT( final List seqs, final List opts ) throws IOException, + InterruptedException { Msa msa = null; final MsaInferrer mafft = Mafft.createInstance( _mf.getInferenceManager().getPathToLocalMafft() .getCanonicalPath() );