From a9320e48f49daf6330a112f44675fde7ca8d1107 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 5 Aug 2015 18:09:59 +0100 Subject: [PATCH] =?utf8?q?JAL-1822=20create=20dataset=20sequences=20if=20the?= =?utf8?q?y=20aren=E2=80=99t=20already=20created=20before=20checking=20for=20?= =?utf8?q?cDNA/protein=20mapping=20note=20JAL-407=20-=20should=20really=20se?= =?utf8?q?arch=20for=20copies=20of=20the=20nucleotides=20in=20the=20local=20?= =?utf8?q?dataset=20and=20merge=20rather=20than=20create=20new=20ones=20will?= =?utf8?q?ynilly!?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/gui/AlignViewport.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/jalview/gui/AlignViewport.java b/src/jalview/gui/AlignViewport.java index c18c989..29c4fde 100644 --- a/src/jalview/gui/AlignViewport.java +++ b/src/jalview/gui/AlignViewport.java @@ -801,6 +801,17 @@ public class AlignViewport extends AlignmentViewport implements */ if (Cache.getDefault(Preferences.ENABLE_SPLIT_FRAME, true)) { + if (al.getDataset() == null) + { + // need to create ds seqs + for (SequenceI sq : al.getSequences()) + { + if (sq.getDatasetSequence() == null) + { + sq.createDatasetSequence(); + } + } + } if (AlignmentUtils.isMappable(al, getAlignment())) { if (openLinkedAlignment(al, title)) -- 1.7.10.2