From 54da3e753588d95f08dd66ca2d111f16475b061c Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sat, 5 Oct 2013 12:20:15 +0100 Subject: [PATCH] JAL-1364 use gapMap to map RNAalifold annotation onto correct columns --- src/jalview/ws/jws2/RNAalifoldClient.java | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/jalview/ws/jws2/RNAalifoldClient.java b/src/jalview/ws/jws2/RNAalifoldClient.java index 2779732..ec40552 100644 --- a/src/jalview/ws/jws2/RNAalifoldClient.java +++ b/src/jalview/ws/jws2/RNAalifoldClient.java @@ -216,9 +216,17 @@ public class RNAalifoldClient extends JabawsAlignCalcWorker implements basePairs.put(score.getRanges().first(), new Float(score .getScores().get(0))); } - for (int i = 0; i < struct.length(); i++) + + for (int i = 0,ri=0,iEnd=struct.length();i contacts = isContact(basePairs, i + 1); @@ -242,16 +250,23 @@ public class RNAalifoldClient extends JabawsAlignCalcWorker implements } } - anns[i] = new Annotation(struct.substring(i, i + 1), description, + anns[ri] = new Annotation(struct.substring(i, i + 1), description, isSS(struct.charAt(i)), prob); } } else if (data == null || data.size() == 1) { - for (int i = 0; i < struct.length(); i++) + for (int i = 0,ri=0,iEnd=struct.length();i