desc = target.split(" ")[0];
}
- if (SequenceOntology.getInstance().isSequenceVariant(sf.getType()))
+ SequenceOntology so = SequenceOntology.getInstance();
+ String type = sf.getType();
+ if (so.isSequenceVariant(type))
{
/*
* Ensembl returns dna variants as 'alleles'
}
/*
- * Ensembl returns gene name as 'Name' for a transcript
+ * extract 'Name' for a transcript (to show gene name)
+ * or an exon (so 'colour by label' shows exon boundaries)
*/
- if (EnsemblSeqProxy.isTranscript(sf.getType()))
+ if (EnsemblSeqProxy.isTranscript(type)
+ || so.isA(type, SequenceOntology.EXON))
{
desc = StringUtils.listToDelimitedString(attributes.get("Name"), ",");
}