Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 1 | 0.996 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 318 | Bio/Graphics/GenomeDiagram/_CircularDrawer.py |
2 | 21 | 393 | Bio/Graphics/GenomeDiagram/_LinearDrawer.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 |
| ||||
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 |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5d6b06c0]] | """ draw_track(self, track) -> ([element, element,...], [element, element,...]) o track Track object Return tuple of (list of track elements, list of track labels) """ |
1 | 2 | [[#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) """ |