From 321d45cdcd1db34cddebdd9ded7c277e84295c1a Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 25 Nov 2005 16:08:06 +0000 Subject: [PATCH] Correct mapping for pdb file --- src/jalview/analysis/AlignSeq.java | 54 ++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 21 deletions(-) diff --git a/src/jalview/analysis/AlignSeq.java b/src/jalview/analysis/AlignSeq.java index 1b7351b..3f3bab1 100755 --- a/src/jalview/analysis/AlignSeq.java +++ b/src/jalview/analysis/AlignSeq.java @@ -406,31 +406,43 @@ public class AlignSeq public int [] getExactMapping() { // Print out the matching chars - int [] mapping = new int[astr1.length()]; - int agap=0, bgap=0; - boolean gap; + int size = s2.getLength(); + int [] mapping = new int[size]; + for(int i=0; i