comparison dpmix_plot.py @ 9:22fe0154fa54

added support for heterochromatic regions
author Richard Burhans <burhans@bx.psu.edu>
date Tue, 10 Jul 2012 11:41:22 -0400
parents 2c498d40ecde
children
comparison
equal deleted inserted replaced
8:30771a097f14 9:22fe0154fa54
117 return [ make_rectangle(p1, p2, 'r') ] 117 return [ make_rectangle(p1, p2, 'r') ]
118 elif state == 1: 118 elif state == 1:
119 return make_split_rectangle(p1, p2, 'r', 'g') 119 return make_split_rectangle(p1, p2, 'r', 'g')
120 elif state == 2: 120 elif state == 2:
121 return [ make_rectangle(p1, p2, 'g') ] 121 return [ make_rectangle(p1, p2, 'g') ]
122 elif state == 3:
123 return [ make_rectangle(p1, p2, '#c7c7c7') ]
122 else: 124 else:
123 print >> sys.stderr, "Unknown state: {0}: {1} {2} {3} {4}".format(state, chrom, p1, p2, state, individual) 125 print >> sys.stderr, "Unknown state: {0}: {1} {2} {3} {4}".format(state, chrom, p1, p2, state, individual)
124 sys.exit(1) 126 sys.exit(1)
125 127
126 def nicenum(num, round=False): 128 def nicenum(num, round=False):