Commit ac854d5d authored by Vincent Michel's avatar Vincent Michel
Browse files

[entities] Update dc_title logic for GenomicRegion

parent 32799d6d760d
......@@ -56,6 +56,9 @@ class GenomicMeasure(AnyEntity):
class GenomicRegion(AnyEntity):
__regid__ = 'GenomicRegion'
fetch_attrs, fetch_order = fetch_config(('start', 'stop', 'chromosome'))
def dc_title(self):
return '%s %s-%s ' % (self._cw._('GenomicRegion'), self.start, self.stop)
return '%s %s (%s-%s)' % (self._cw._('Chromosome'), self.chromosome[0].dc_title(),
self.start, self.stop)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment