if (aptxNode.getNodeData().getSequence() != null)
{
nodeSeq = DataConversions
- .createJalviewSequence(aptxNode.getNodeData().getSequence());
+ .createJalviewSequence(aptxNode);
}
originalNodes.put(aptxNode, this);
wrappedNodes.put(this, aptxNode);
import org.forester.evoinference.matrix.distance.DistanceMatrix;
import org.forester.io.parsers.phyloxml.PhyloXmlDataFormatException;
+import org.forester.phylogeny.PhylogenyNode;
public final class DataConversions
{
}
public static SequenceI createJalviewSequence(
- org.forester.phylogeny.data.Sequence foresterSeq)
+ PhylogenyNode foresterNode)
{
- String seq = foresterSeq.getMolecularSequence();
- SequenceI jalviewSeq = new Sequence(foresterSeq.getName(), seq, 1,
+ String seq = foresterNode.getNodeData().getSequence()
+ .getMolecularSequence();
+ String seqName = foresterNode.getName();
+
+ SequenceI jalviewSeq = new Sequence(foresterNode.getName(), seq, 1,
seq.length() + 1);
return jalviewSeq.deriveSequence();