Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
33 | 2 | 2 | 0.990 | stmt_list[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 35 | 281 | Bio/Graphics/GenomeDiagram/_CircularDrawer.py |
2 | 33 | 267 | 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._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( ) |
| ||||
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( ) |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2fa38240]] | self |
1 | 2 | [[#2fa38240]] | self._parent.get_drawn_levels |
2 | 1 | [[#2fa39140]] | .drawn_tracks |
2 | 2 | [[#2fa39140]] | ( ) |