From: Jim Procter Date: Wed, 5 Aug 2015 17:09:59 +0000 (+0100) Subject: JAL-1822 create dataset sequences if they aren’t already created before checking... X-Git-Tag: Release_2_10_0~549^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a9320e48f49daf6330a112f44675fde7ca8d1107;p=jalview.git JAL-1822 create dataset sequences if they aren’t already created before checking for cDNA/protein mapping note JAL-407 - should really search for copies of the nucleotides in the local dataset and merge rather than create new ones willynilly! --- 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))