*/
package jalview.analysis;
+import jalview.analysis.scoremodels.ScoreModels;
import jalview.api.analysis.ScoreModelI;
import jalview.datamodel.AlignmentView;
import jalview.datamodel.BinaryNode;
import jalview.datamodel.SequenceI;
import jalview.datamodel.SequenceNode;
import jalview.io.NewickFile;
-import jalview.schemes.ResidueProperties;
import java.util.Enumeration;
import java.util.List;
if (sm == null && !(pwtype.equals("PID")))
{
- if (ResidueProperties.getScoreMatrix(pwtype) == null)
+ if (ScoreModels.getInstance().forName(pwtype) == null)
{
pwtype = "BLOSUM62";
}
if (_pwmatrix == null)
{
// Resolve substitution model
- _pwmatrix = ResidueProperties.getScoreModel(pwtype);
+ _pwmatrix = ScoreModels.getInstance().forName(pwtype);
if (_pwmatrix == null)
{
- _pwmatrix = ResidueProperties.getScoreMatrix("BLOSUM62");
+ _pwmatrix = ScoreModels.getInstance().forName("BLOSUM62");
}
}
dist = _pwmatrix.findDistances(seqData);
if ((nd.left() == null) && (nd.right() == null))
{
- System.out
- .println("Leaf = " + ((SequenceI) nd.element()).getName());
+ System.out.println("Leaf = " + ((SequenceI) nd.element()).getName());
System.out.println("Dist " + nd.dist);
System.out.println("Boot " + nd.getBootstrap());
}
}
else
{
- System.out.println(" name = "
- + ((SequenceI) nd.element()).getName());
+ System.out.println(" name = " + ((SequenceI) nd.element()).getName());
}
System.out.println(" dist = " + nd.dist + " " + nd.count + " "
public void applyToNodes(NodeTransformI nodeTransformI)
{
for (Enumeration<SequenceNode> nodes = node.elements(); nodes
- .hasMoreElements(); nodeTransformI
- .transform(nodes.nextElement()))
+ .hasMoreElements(); nodeTransformI.transform(nodes
+ .nextElement()))
{
;
}