Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 2 | 0.967 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 243 | Bio/Graphics/GenomeDiagram/_Diagram.py |
2 | 5 | 152 | Bio/Graphics/GenomeDiagram/_FeatureSet.py |
| ||||
for track in self.tracks.values( ): if hasattr(track,attr): # If the feature has the attribute if getattr(track,attr)!=value: setattr(track,attr,value) # set it to the passed value |
| ||||
for feature in self.features.values( ): # If the feature has the attribute, and the value should change if hasattr(feature,attr): if getattr(feature,attr)!=value: setattr(feature,attr,value) # set it to the passed value #For backwards compatibility, we support both colour and color. #As a quick hack, make "colour" set both "colour" and "color". #if attr=="colour" : # self.set_all_feature("color",value) |
| |||
for [[#variable30a97540]]in self. [[#variable30a97420]].values( ): # If the feature has the attribute, and the value should change if hasattr( [[#variable30a97540]],attr): # If the feature has the attribute if getattr( [[#variable30a97540]],attr)!=value: setattr( [[#variable30a97540]],attr,value) # set it to the passed value # set it to the passed value #For backwards compatibility, we support both colour and color. #As a quick hack, make "colour" set both "colour" and "color". #if attr=="colour" : # self.set_all_feature("color",value) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#30a97540]] | track |
1 | 2 | [[#30a97540]] | feature |
2 | 1 | [[#30a97420]] | tracks |
2 | 2 | [[#30a97420]] | features |