From b9f39f8c9eea22d128783fdafe27f048caa3e902 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Tue, 9 Jan 2018 10:51:36 +0000 Subject: [PATCH] JAL-2805 added forester --> jalview sequence converter --- src/jalview/ext/forester/DataConversions.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/jalview/ext/forester/DataConversions.java b/src/jalview/ext/forester/DataConversions.java index ceeecde..74a94a6 100644 --- a/src/jalview/ext/forester/DataConversions.java +++ b/src/jalview/ext/forester/DataConversions.java @@ -1,5 +1,6 @@ package jalview.ext.forester; +import jalview.datamodel.Sequence; import jalview.datamodel.SequenceI; import jalview.math.MatrixI; @@ -40,6 +41,16 @@ public final class DataConversions } + public static SequenceI createJalviewSequence( + org.forester.phylogeny.data.Sequence foresterSeq) + { + String seq = foresterSeq.getMolecularSequence(); + SequenceI jalviewSeq = new Sequence(foresterSeq.getName(), seq, 1, + seq.length() + 1); + return jalviewSeq; + + } + // public static org.forester.phylogeny.data.Accession // createForesterAccession( -- 1.7.10.2