Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 0 | 1.000 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 340 | Bio/Graphics/GenomeDiagram/_CircularDrawer.py |
2 | 20 | 626 | Bio/Graphics/GenomeDiagram/_LinearDrawer.py |
| ||||
def draw_feature_set(self,set): """ draw_feature_set(self, set) -> ([element, element,...], [element, element,...]) o set FeatureSet object Returns a tuple (list of elements describing features, list of labels for elements) """ #print 'draw feature set' feature_elements = [ ] # Holds diagram elements belonging to the features label_elements = [ ] # Holds diagram elements belonging to feature labels # Collect all the elements for the feature set for feature in set.get_features( ): if self.is_in_bounds(feature.start) or self.is_in_bounds(feature.end): features,labels = self.draw_feature(feature) feature_elements+=features label_elements+=labels return feature_elements,label_elements |
| ||||
def draw_feature_set(self,set): """ draw_feature_set(self, set) -> ([element, element,...], [element, element,...]) o set FeatureSet object Returns a tuple (list of elements describing features, list of labels for elements) """ #print 'draw feature set' feature_elements = [ ] # Holds diagram elements belonging to the features label_elements = [ ] # Holds diagram elements belonging to feature labels # Collect all the elements for the feature set for feature in set.get_features( ): if self.is_in_bounds(feature.start) or self.is_in_bounds(feature.end): features,labels = self.draw_feature(feature) # get elements and labels feature_elements+=features label_elements+=labels return feature_elements,label_elements |
| |||
def draw_feature_set(self,set): """ draw_feature_set(self, set) -> ([element, element,...], [element, element,...]) o set FeatureSet object Returns a tuple (list of elements describing features, list of labels for elements) """ #print 'draw feature set' feature_elements = [ ] # Holds diagram elements belonging to the features label_elements = [ ] # Holds diagram elements belonging to feature labels # Collect all the elements for the feature set for feature in set.get_features( ): if self.is_in_bounds(feature.start) or self.is_in_bounds(feature.end): features,labels = self.draw_feature(feature) # get elements and labels feature_elements+=features label_elements+=labels return feature_elements,label_elements |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |