# HG changeset patch
# User holtgrewe
# Date 1372442502 14400
# Node ID 71241c4dc4d00c3086f6b68ca7e89320654886cb
# Parent 170e48a550783495c450a119ba2655ddd44b16d7
Uploaded
diff -r 170e48a55078 -r 71241c4dc4d0 roi_plot_thumbnails.py
--- a/roi_plot_thumbnails.py Fri Jun 28 05:32:20 2013 -0400
+++ b/roi_plot_thumbnails.py Fri Jun 28 14:01:42 2013 -0400
@@ -33,7 +33,7 @@
class LinkRegion(object):
"""Region on picture with genomic interval."""
- def __init__(self, x1, y1, x2, y2, ref, begin_pos, end_pos):
+ def __init__(self, x1, y1, x2, y2, ref, begin_pos, end_pos, name):
self.x1 = x1
self.x2 = x2
self.y1 = y1
@@ -41,6 +41,7 @@
self.ref = ref
self.begin_pos = begin_pos
self.end_pos = end_pos
+ self.name = name
class RoiPlotGrid(object):
@@ -88,7 +89,7 @@
# Register link region.
self.link_regions.append(LinkRegion(
start_x, start_y, start_x + self.width, start_y + self.height,
- record.ref, record.start_pos, record.end_pos))
+ record.ref, record.start_pos, record.end_pos, record.region_name))
class GridLinks(object):
@@ -157,9 +158,9 @@
f.write('
\n' % vals)
f.write('