--- /dev/null
+[submodule "forester"]
+ path = forester
+ url = file:////Users/kjvanderheide/Documents/Archae/forester
--- /dev/null
+Subproject commit 25c731fbc8a993c2084d364e6c6c8ca9e662ad73
return seqStrings;
}
+ public MatrixI getDistances()
+ {
+ return distances;
+ }
+
}
import jalview.datamodel.SequenceI;
import jalview.math.MatrixI;
+import org.forester.evoinference.distance.NeighborJoiningF;
import org.forester.io.parsers.SymmetricalDistanceMatrixParser;
import org.forester.msa.Msa;
import org.forester.phylogeny.Phylogeny;
public Phylogeny buildAptxTree(TreeBuilder tree)
{
this.sequences = tree.getSequences();
- aptxTree.setName("word");
+ aptxTree.setName(
+ "PLEASE FIX ME reheaheth35yheqhb3q5hyq3bt3q5u4jwqjwuh6");
+
+ final NeighborJoiningF nj = NeighborJoiningF.createInstance(false, 5);
+ distances = tree.getDistances();
+
+
+
+ // final Phylogeny phy = nj.execute(JalviewMatrixToForesterMatrix
+ // .convertJalviewToForester(distances));
+
return buildAptxTree(sequences);
}
for (SequenceI sequence : sequences)
{
- PhylogenyNode treeNode = new PhylogenyNode();
- treeNode.setName(sequence.getName());
+ PhylogenyNode treeNode = new PhylogenyNode(sequence.getName());
rootNode.addAsChild(treeNode);
}
}
+
/**
* Formats a localised title for the tree panel, like
* <p>
--- /dev/null
+package jalview.ext.archaeopteryx;
+
+import jalview.math.MatrixI;
+
+import org.forester.evoinference.matrix.distance.DistanceMatrix;
+
+public class JalviewMatrixToForesterMatrix
+{
+
+ public static DistanceMatrix convertJalviewToForester(
+ MatrixI jalviewInput)
+ {
+ return null;
+
+ }
+
+ public static MatrixI convertForesterToJalview(
+ DistanceMatrix foresterInput)
+ {
+ return null;
+
+ }
+
+}
import javax.swing.event.InternalFrameEvent;
import org.forester.archaeopteryx.Archaeopteryx;
+import org.forester.archaeopteryx.MainFrame;
import org.forester.phylogeny.Phylogeny;
/**
ArchaeopteryxTreeBuilder aptxTreeBuilder = new ArchaeopteryxTreeBuilder();
Phylogeny aptxTree = aptxTreeBuilder.buildAptxTree(calculatedTree);
- Archaeopteryx.createApplication(aptxTree);
-
+ MainFrame aptxFrame = Archaeopteryx.createApplication(aptxTree);
+
+ int width = 400;
+ int height = 550;
+ aptxFrame.setMinimumSize(new Dimension(width - 30, height - 50)); // doesn't
+ // work
+ // as it
+ // gets
+ // overridden
+ // during
+ // addInternalFrame?
+
+ Desktop.addInternalFrame(aptxFrame, "Archaeopteryx Tree View",
+ width, height, true);
}
import jalview.datamodel.SequenceFeature;
import jalview.datamodel.SequenceI;
import jalview.datamodel.SequenceNode;
-import jalview.ext.archaeopteryx.ArchaeopteryxNewickInit;
import jalview.io.JalviewFileChooser;
import jalview.io.JalviewFileView;
import jalview.io.NewickFile;
sortByTree_actionPerformed();
}
- ArchaeopteryxNewickInit archae = new ArchaeopteryxNewickInit(tree);
- archae.startArchaeopteryx();
}
}