CloneSet201


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20201.000compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120340
Bio/Graphics/GenomeDiagram/_CircularDrawer.py
220626
Bio/Graphics/GenomeDiagram/_LinearDrawer.py
Clone Instance
1
Line Count
20
Source Line
340
Source File
Bio/Graphics/GenomeDiagram/_CircularDrawer.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 


Clone Instance
2
Line Count
20
Source Line
626
Source File
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)   # get elements and labels
                 feature_elements+=features 
                 label_elements+=labels 
            
        return feature_elements,label_elements 


Clone AbstractionParameter Count: 0Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None