| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 39 | 2 | 0 | 1.000 | compound_stmt |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 39 | 684 | Bio/Graphics/GenomeDiagram/_CircularDrawer.py |
| 2 | 39 | 497 | Bio/Graphics/GenomeDiagram/_LinearDrawer.py |
| ||||
if track.scale_ticks: # Ticks are required on the scale
# Draw large ticks
#I want the ticks to be consistently positioned relative to
#the start of the sequence (position 0), not relative to the
#current viewpoint (self.start and self.end)
ticklen = track.scale_largeticks*trackheight
tickiterval = int(track.scale_largetick_interval)
#Note that we could just start the list of ticks using
#range(0,self.end,tickinterval) and the filter out the
#ones before self.start - but this seems wasteful.
#Using tickiterval * (self.start/tickiterval) is a shortcut.
largeticks = [pos for pos in
range(tickiterval*(self.start/tickiterval),int(self.end),tickiterval)
if pos>=self.start]
for tickpos in largeticks:
tick,label = self.draw_tick(tickpos,ctr,ticklen,track,track.scale_largetick_labels)
scale_elements.append(tick)
if label is not None: # If there's a label, add it
scale_labels.append(label)
# Draw small ticks
ticklen = track.scale_smallticks*trackheight
tickiterval = int(track.scale_smalltick_interval)
smallticks = [pos for pos in
range(tickiterval*(self.start/tickiterval),int(self.end),tickiterval)
if pos>=self.start]
for tickpos in smallticks:
tick,label = self.draw_tick(tickpos,ctr,ticklen,track,track.scale_smalltick_labels)
scale_elements.append(tick)
if label is not None: # If there's a label, add it
scale_labels.append(label)
# Check to see if the track contains a graph - if it does, get the
# minimum and maximum values, and put them on the scale Y-axis
# at 60 degree intervals, ordering the labels by graph_id
|
| ||||
if track.scale_ticks: # Ticks are required on the scale
# Draw large ticks
#I want the ticks to be consistently positioned relative to
#the start of the sequence (position 0), not relative to the
#current viewpoint (self.start and self.end)
ticklen = track.scale_largeticks*trackheight
tickiterval = int(track.scale_largetick_interval)
#Note that we could just start the list of ticks using
#range(0,self.end,tickinterval) and the filter out the
#ones before self.start - but this seems wasteful.
#Using tickiterval * (self.start/tickiterval) is a shortcut.
largeticks = [pos for pos in
range(tickiterval*(self.start/tickiterval),int(self.end),tickiterval)
if pos>=self.start]
for tickpos in largeticks:
tick,label = self.draw_tick(tickpos,ctr,ticklen,track,track.scale_largetick_labels)
scale_elements.append(tick)
if label is not None: # If there's a label, add it
scale_labels.append(label)
# Draw small ticks
ticklen = track.scale_smallticks*trackheight
tickiterval = int(track.scale_smalltick_interval)
smallticks = [pos for pos in
range(tickiterval*(self.start/tickiterval),int(self.end),tickiterval)
if pos>=self.start]
for tickpos in smallticks:
tick,label = self.draw_tick(tickpos,ctr,ticklen,track,track.scale_smalltick_labels)
scale_elements.append(tick)
if label is not None: # If there's a label, add it
scale_labels.append(label)
# Check to see if the track contains a graph - if it does, get the
# minimum and maximum values, and put them on the scale Y-axis
|
| |||
if track.scale_ticks: # Ticks are required on the scale
# Draw large ticks
# Draw large ticks
#I want the ticks to be consistently positioned relative to
#the start of the sequence (position 0), not relative to the
#current viewpoint (self.start and self.end)
ticklen = track.scale_largeticks*trackheight
tickiterval = int(track.scale_largetick_interval)
#Note that we could just start the list of ticks using
#range(0,self.end,tickinterval) and the filter out the
#ones before self.start - but this seems wasteful.
#Using tickiterval * (self.start/tickiterval) is a shortcut.
largeticks = [pos for pos in range(tickiterval*(self.start/tickiterval),int(self.end),tickiterval) if pos>=self.start]
for tickpos in largeticks:
tick,label = self.draw_tick(tickpos,ctr,ticklen,track,track.scale_largetick_labels)
scale_elements.append(tick)
if label is not None: # If there's a label, add it
scale_labels.append(label)
# Draw small ticks
ticklen = track.scale_smallticks*trackheight
tickiterval = int(track.scale_smalltick_interval)
smallticks = [pos for pos in range(tickiterval*(self.start/tickiterval),int(self.end),tickiterval) if pos>=self.start]
for tickpos in smallticks:
tick,label = self.draw_tick(tickpos,ctr,ticklen,track,track.scale_smalltick_labels)
scale_elements.append(tick)
if label is not None: # If there's a label, add it
scale_labels.append(label)
# Check to see if the track contains a graph - if it does, get the
# minimum and maximum values, and put them on the scale Y-axis
# at 60 degree intervals, ordering the labels by graph_id
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||