JAL-3303 ignore deletions when computing peptide variants
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 13 Jun 2019 14:58:57 +0000 (15:58 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 13 Jun 2019 14:58:57 +0000 (15:58 +0100)
src/jalview/datamodel/MappedFeatures.java

index 25f5ba4..4c63916 100644 (file)
@@ -144,7 +144,7 @@ public class MappedFeatures
       for (String allele : alleles)
       {
         allele = allele.trim().toUpperCase();
-        if (allele.length() > 1)
+        if (allele.length() > 1 || "-".equals(allele))
         {
           continue; // multi-locus variant
         }