/**
* Test mapping a sequence group where sequences in and outside the group
* share a dataset sequence (e.g. alternative CDS for the same gene)
- *
+ * <p>
+ * This scenario doesn't arise after JAL-3763 changes, but test left as still valid
* @throws IOException
*/
@Test(groups = { "Functional" })
SequenceI pep1 = new Sequence("pep1", "KF");
SequenceI pep2 = new Sequence("pep2", "FG");
SequenceI pep3 = new Sequence("pep3", "GP");
+ pep1.createDatasetSequence();
+ pep2.createDatasetSequence();
+ pep3.createDatasetSequence();
/*
* add mappings from coding positions of dna to respective peptides
new SequenceI[]
{ pep1, pep2, pep3 });
AlignViewportI cdnaView = new AlignViewport(cdna);
- AlignViewportI proteinView = new AlignViewport(protein);
+ AlignViewportI peptideView = new AlignViewport(protein);
protein.setCodonFrames(acfList);
/*
* Verify the mapped sequence group in dna is cds1 and cds3
*/
SequenceGroup mappedGroup = MappingUtils.mapSequenceGroup(sg,
- proteinView, cdnaView);
+ peptideView, cdnaView);
assertTrue(mappedGroup.getColourText());
assertSame(sg.getIdColour(), mappedGroup.getIdColour());
assertSame(sg.getOutlineColour(), mappedGroup.getOutlineColour());
sg.addSequence(cds1, false);
sg.setStartRes(0);
sg.setEndRes(cdna.getWidth() - 1);
- mappedGroup = MappingUtils.mapSequenceGroup(sg, cdnaView, proteinView);
+ mappedGroup = MappingUtils.mapSequenceGroup(sg, cdnaView, peptideView);
assertTrue(mappedGroup.getColourText());
assertSame(sg.getIdColour(), mappedGroup.getIdColour());
assertSame(sg.getOutlineColour(), mappedGroup.getOutlineColour());