From c0f6c4074d66aa9563dceab4f63d3b4f37e53c33 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 31 Aug 2012 11:50:13 +0100 Subject: [PATCH] JAL-1015 resolve dataset sequence before searching for annotation --- src/jalview/io/SequenceAnnotationReport.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/jalview/io/SequenceAnnotationReport.java b/src/jalview/io/SequenceAnnotationReport.java index 8642446..7f46c67 100644 --- a/src/jalview/io/SequenceAnnotationReport.java +++ b/src/jalview/io/SequenceAnnotationReport.java @@ -315,8 +315,12 @@ public class SequenceAnnotationReport tip.append("
" + tmp); maxWidth = Math.max(maxWidth, tmp.length()); } - - DBRefEntry[] dbrefs = sequence.getDatasetSequence().getDBRef(); + SequenceI ds=sequence; + while (ds.getDatasetSequence()!=null) + { + ds=ds.getDatasetSequence(); + } + DBRefEntry[] dbrefs = ds.getDBRef(); if (showDbRefs && dbrefs != null) { for (int i = 0; i < dbrefs.length; i++) @@ -329,8 +333,7 @@ public class SequenceAnnotationReport } // ADD NON POSITIONAL SEQUENCE INFO - SequenceFeature[] features = sequence.getDatasetSequence() - .getSequenceFeatures(); + SequenceFeature[] features = ds.getSequenceFeatures(); SequenceFeature[] tfeat = new SequenceFeature[1]; if (showNpFeats && features != null) { -- 1.7.10.2