From: kjvdheide Date: Tue, 9 Jan 2018 10:51:36 +0000 (+0000) Subject: JAL-2805 added forester --> jalview sequence converter X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b9f39f8c9eea22d128783fdafe27f048caa3e902;p=jalview.git JAL-2805 added forester --> jalview sequence converter --- 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(