Merge branch 'spikes/mungo' into trialMerge
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 5 Feb 2018 09:54:10 +0000 (09:54 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 5 Feb 2018 09:54:10 +0000 (09:54 +0000)
Conflicts:
src/jalview/analysis/AlignmentUtils.java
test/jalview/analysis/AlignmentUtilsTests.java

1  2 
src/jalview/analysis/AlignmentUtils.java
test/jalview/analysis/AlignmentUtilsTests.java

@@@ -2208,13 -2208,13 +2208,28 @@@ public class AlignmentUtilsTest
      assertEquals(1, sf.getBegin());
      assertEquals(1, sf.getEnd());
      assertEquals("synonymous_variant", sf.getType());
 -    assertEquals("aaA/aaG", sf.getDescription());
 +    assertEquals("AAG", sf.getDescription());
+     assertEquals("var4", sf.getValue("ID"));
+     assertEquals("None", sf.getValue("clinical_significance"));
+     assertEquals("ID=var4;clinical_significance=None", sf.getAttributes());
+     assertEquals(1, sf.links.size());
+     assertEquals(
 -            "aaA/aaG var4|http://www.ensembl.org/Homo_sapiens/Variation/Summary?v=var4",
++            "AAG var4|http://www.ensembl.org/Homo_sapiens/Variation/Summary?v=var4",
++            sf.links.get(0));
++    assertEquals(cosmic, sf.getFeatureGroup());
++
++    // AAA -> AAG synonymous
++    sf = sfs.get(4);
++    assertEquals(1, sf.getBegin());
++    assertEquals(1, sf.getEnd());
++    assertEquals("synonymous_variant", sf.getType());
++    assertEquals("AAG", sf.getDescription());
 +    assertEquals("var4", sf.getValue("ID"));
 +    assertEquals("None", sf.getValue("clinical_significance"));
 +    assertEquals("ID=var4;clinical_significance=None", sf.getAttributes());
 +    assertEquals(1, sf.links.size());
 +    assertEquals(
 +            "AAG var4|http://www.ensembl.org/Homo_sapiens/Variation/Summary?v=var4",
              sf.links.get(0));
      assertEquals(cosmic, sf.getFeatureGroup());