CloneSet185


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20210.996compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120318
Bio/Graphics/GenomeDiagram/_CircularDrawer.py
221393
Bio/Graphics/GenomeDiagram/_LinearDrawer.py
Clone Instance
1
Line Count
20
Source Line
318
Source File
Bio/Graphics/GenomeDiagram/_CircularDrawer.py

    def draw_track(self,track): 
        """ draw_track(self, track) -> ([element, element,...], [element, element,...])

            o track     Track object

            Return tuple of (list of track elements, list of track labels)           
        """ 
        track_elements = [ ] # Holds elements for features and graphs
        track_labels = [ ]  # Holds labels for features and graphs

        # Distribution dictionary for dealing with different set types
        set_methods = {FeatureSet:self.draw_feature_set,GraphSet:self.draw_graph_set} 



        for set in track.get_sets( ):       # Draw the feature or graph sets
            elements,labels =  set_methods[set.__class__](set) 
            track_elements+=elements 
            track_labels+=labels 
        return track_elements,track_labels 


Clone Instance
2
Line Count
21
Source Line
393
Source File
Bio/Graphics/GenomeDiagram/_LinearDrawer.py

    def draw_track(self,track): 
        """ draw_track(self, track) -> ([element, element,...], [element, element,...])

            o track     Track object

            Returns a tuple (list of elements in the track, list of labels in
            the track)
        """ 
        track_elements = [ ]    # Holds elements from features and graphs
        track_labels = [ ]      # Holds labels from features and graphs

        # Distribution dictionary for dealing with different set types
        set_methods = {FeatureSet:self.draw_feature_set,GraphSet:self.draw_graph_set} 



        for set in track.get_sets( ):       # Draw the feature or graph sets
            elements,labels =  set_methods[set.__class__](set) 
            track_elements+=elements 
            track_labels+=labels 
        return track_elements,track_labels 


Clone AbstractionParameter Count: 1Parameter Bindings

def draw_track(self,track):
   [[#variable5d6b06c0]]
  track_elements = [ ] # Holds elements for features and graphs # Holds elements from features and graphs
  track_labels = [ ] # Holds labels for features and graphs # Holds labels from features and graphs
  # Distribution dictionary for dealing with different set types
  set_methods = {FeatureSet:self.draw_feature_set,GraphSet:self.draw_graph_set} 
  for set in track.get_sets( ): # Draw the feature or graph sets
    elements,labels = set_methods[set.__class__](set) 
    track_elements+=elements 
    track_labels+=labels 
  return track_elements,track_labels 
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5d6b06c0]]
""" draw_track(self, track) -> ([element, element,...], [element, element,...])

            o track     Track object

            Return tuple of (list of track elements, list of track labels)           
        """ 
12[[#5d6b06c0]]
""" draw_track(self, track) -> ([element, element,...], [element, element,...])

            o track     Track object

            Returns a tuple (list of elements in the track, list of labels in
            the track)
        """