X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fext%2Fensembl%2FEnsemblCdna.java;h=0a9742536236ea97f7c6399a00b6a0fe40b22509;hb=0b8abe58b934e03c34575b06d532a99f0ba70196;hp=e4eb8730529226e7e7d339ce7fc31cd7f298faa9;hpb=f9b80711054b61e8c2257488a1637e15616cb9c9;p=jalview.git diff --git a/src/jalview/ext/ensembl/EnsemblCdna.java b/src/jalview/ext/ensembl/EnsemblCdna.java index e4eb873..0a97425 100644 --- a/src/jalview/ext/ensembl/EnsemblCdna.java +++ b/src/jalview/ext/ensembl/EnsemblCdna.java @@ -45,20 +45,22 @@ public class EnsemblCdna extends EnsemblSeqProxy } /** - * Answers true unless the feature type is 'exon' (or a sub-type of exon in - * the Sequence Ontology). Exon features are only retrieved in order to - * identify the exon sequence loci, and are redundant information on the exon - * sequence itself. + * Answers true unless the feature type is 'transcript' or 'exon' (or a + * sub-type in the Sequence Ontology). These features are only retrieved in + * order to identify the exon sequence loci, and are redundant information on + * the exon sequence itself. */ @Override protected boolean retainFeature(SequenceFeature sf, String accessionId) { - if (SequenceOntology.getInstance().isA(sf.getType(), - SequenceOntology.EXON)) + SequenceOntology so = SequenceOntology.getInstance(); + String type = sf.getType(); + + if (isTranscript(type) || so.isA(type, SequenceOntology.EXON)) { return false; } - return super.retainFeature(sf, accessionId); + return featureMayBelong(sf, accessionId); } /**