CloneSet56


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33220.990stmt_list[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
135281
Bio/Graphics/GenomeDiagram/_CircularDrawer.py
233267
Bio/Graphics/GenomeDiagram/_LinearDrawer.py
Clone Instance
1
Line Count
35
Source Line
281
Source File
Bio/Graphics/GenomeDiagram/_CircularDrawer.py

        self.set_track_heights( ) 

        # Go through each track in the parent (if it is to be drawn) one by
        # one and collate the data as drawing elements
        for track_level in self._parent.get_drawn_levels( ):
                                                           
            self.current_track_level = track_level 
            track = self._parent[track_level] 
            gbgs,glabels =  self.draw_greytrack(track)    # Greytracks
            greytrack_bgs.append(gbgs) 
            greytrack_labels.append(glabels) 
            features,flabels =  self.draw_track(track)   # Features and graphs
            feature_elements.append(features) 
            feature_labels.append(flabels) 
            if track.scale: 
                 axes,slabels =  self.draw_scale(track)       # Scale axes
                 scale_axes.append(axes) 
                 scale_labels.append(slabels) 

         # Groups listed in order of addition to page (from back to front)
         # Draw track backgrounds
         # Draw features and graphs
         # Draw scale axes
         # Draw scale labels
         # Draw feature labels
         # Draw track labels
            
        element_groups = [greytrack_bgs,feature_elements,scale_axes,scale_labels,feature_labels,greytrack_labels] 

        for element_group in element_groups: 
             for element_list in element_group: 
                  [self.drawing.add(element) for element in element_list] 
             
        if self.tracklines:             # Draw test tracks over top of diagram
            self.draw_test_tracks( ) 


Clone Instance
2
Line Count
33
Source Line
267
Source File
Bio/Graphics/GenomeDiagram/_LinearDrawer.py

        self.set_track_heights( ) 

        # Go through each track in the parent (if it is to be drawn) one by
        # one and collate the data as drawing elements
        for track_level in self.drawn_tracks: # only use tracks to be drawn
            self.current_track_level = track_level      # establish track level
            track = self._parent[track_level]           # get the track at that level
            gbgs,glabels =  self.draw_greytrack(track)  # get greytrack elements
            greytrack_bgs.append(gbgs) 
            greytrack_labels.append(glabels) 
            features,flabels =  self.draw_track(track)  # get feature and graph elements
            feature_elements.append(features) 
            feature_labels.append(flabels) 
            if track.scale: 
                 axes,slabels =  self.draw_scale(track)      # get scale elements
                 scale_axes.append(axes) 
                 scale_labels.append(slabels) 

         # Groups listed in order of addition to page (from back to front)
         # Draw track backgrounds
         # Draw features and graphs
         # Draw scale axes
         # Draw scale labels
         # Draw feature labels
         # Draw track labels
            
        element_groups = [greytrack_bgs,feature_elements,scale_axes,scale_labels,feature_labels,greytrack_labels] 
        for element_group in element_groups: 
             for element_list in element_group: 
                  [self.drawing.add(element) for element in element_list] 
             
        if self.tracklines:             # Draw test tracks over top of diagram
            self.draw_test_tracks( ) 


Clone AbstractionParameter Count: 2Parameter Bindings

self.set_track_heights( ) 
# Go through each track in the parent (if it is to be drawn) one by
# one and collate the data as drawing elements
for track_level in [[#variable2fa38240]] [[#variable2fa39140]]: # only use tracks to be drawn
  self.current_track_level = track_level # establish track level
  track = self._parent[track_level] # get the track at that level
  gbgs,glabels = self.draw_greytrack(track) # get greytrack elements # Greytracks
  greytrack_bgs.append(gbgs) 
  greytrack_labels.append(glabels) 
  features,flabels = self.draw_track(track) # get feature and graph elements # Features and graphs
  feature_elements.append(features) 
  feature_labels.append(flabels) 
  if track.scale:
  
    axes,slabels = self.draw_scale(track) # get scale elements # Scale axes
    scale_axes.append(axes) 
    scale_labels.append(slabels) 
    # Groups listed in order of addition to page (from back to front)
    # Draw track backgrounds
    # Draw features and graphs
    # Draw scale axes
    # Draw scale labels
    # Draw feature labels
    # Draw track labels
  
element_groups = [greytrack_bgs,feature_elements,scale_axes,scale_labels,feature_labels,greytrack_labels] 
for element_group in element_groups:
  for element_list in element_group:
  
    [self.drawing.add(element) for element in element_list] 
  
if self.tracklines: # Draw test tracks over top of diagram
  self.draw_test_tracks( ) 
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2fa38240]]
self 
12[[#2fa38240]]
self._parent.get_drawn_levels 
21[[#2fa39140]]
.drawn_tracks 
22[[#2fa39140]]
( )