CloneSet40


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
39201.000compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
139684
Bio/Graphics/GenomeDiagram/_CircularDrawer.py
239497
Bio/Graphics/GenomeDiagram/_LinearDrawer.py
Clone Instance
1
Line Count
39
Source Line
684
Source File
Bio/Graphics/GenomeDiagram/_CircularDrawer.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
                 


Clone Instance
2
Line Count
39
Source Line
497
Source File
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
                 


Clone AbstractionParameter Count: 0Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None