From: janengelhardt Date: Mon, 11 Jul 2011 01:20:30 +0000 (+0200) Subject: JAL-842; trimming single structures for single sequences added; X-Git-Tag: Jalview_2_9~576^2~27 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d6f9234284710c0f6eaa1c51626dde81c4db103a;p=jalview.git JAL-842; trimming single structures for single sequences added; Change-Id: I041c71aafd0081875b948b9978c2411154033408 --- diff --git a/src/jalview/gui/AppVarna.java b/src/jalview/gui/AppVarna.java index 012d0d1..5dd65c4 100644 --- a/src/jalview/gui/AppVarna.java +++ b/src/jalview/gui/AppVarna.java @@ -38,6 +38,8 @@ import fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength; import fr.orsay.lri.varna.exceptions.ExceptionUnmatchedClosingParentheses; import fr.orsay.lri.varna.interfaces.InterfaceVARNAListener; import fr.orsay.lri.varna.models.VARNAConfig; +import fr.orsay.lri.varna.models.rna.ModeleBaseNucleotide; +import fr.orsay.lri.varna.models.rna.ModeleStyleBP; import fr.orsay.lri.varna.models.rna.RNA; @@ -65,8 +67,10 @@ public class AppVarna extends JInternalFrame implements InterfaceVARNAListener// } catch (ExceptionFileFormatOrSyntax e3) { e3.printStackTrace(); } + rnaList.add(trimRNA(rna1)); rnaList.add(rna1); - rnaList.add(trimRNA(rna1)); + rna1.setName("consenus_"+rna1.getName()); + vab = new AppVarnaBinding(rnaList); //vab = new AppVarnaBinding(seq,struc); @@ -90,28 +94,47 @@ public class AppVarna extends JInternalFrame implements InterfaceVARNAListener// } public RNA trimRNA(RNA rna){ - RNA rnaTrim = new RNA(rna.getName()+"_trim"); - String seq=rna.getSeq(); - String struc=rna.getStructDBN(); - String newSeq=""; - String newStruc=""; - for(int i=0;i