Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 3 | 4 | 0.978 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 235 | Bio/Graphics/GenomeDiagram/_FeatureSet.py |
2 | 16 | 187 | Bio/Graphics/GenomeDiagram/_GraphSet.py |
3 | 16 | 334 | Bio/Graphics/GenomeDiagram/_Track.py |
| ||||
def to_string(self,verbose = 0): ''' to_string(self, verbose=0) -> "" o verbose Boolean indicating whether a short or complete \t account of the set is required Returns a formatted string with information about the set ''' if not verbose: # Short account only required return "%s"%self else: # Long account desired outstr = [""" <%s: %s>""" %(self.__class__,self.name)] outstr.append("%d features"%len(self.features)) for key in self.features: outstr.append("feature: %s"%self.features[key]) return """ """ .join(outstr) |
| ||||
def to_string(self,verbose = 0): ''' to_string(self, verbose=0) -> "" o verbose Flag indicating whether a short or complete account of the set is required Returns a formatted string with information about the set ''' if not verbose: return "%s"%self else: outstr = [""" <%s: %s>""" %(self.__class__,self.name)] outstr.append("%d graphs"%len(self._graphs)) for key in self._graphs: outstr.append("%s"%self._graphs[key]) return """ """ .join(outstr) |
| ||||
def to_string(self,verbose = 0): ''' to_string(self, verbose=0) -> "" o verbose Boolean indicating whether a short or complete account of the track is required Returns a formatted string with information about the track ''' if not verbose: # Return the short description return "%s"%self # Use __str__ method instead else: # Return the long desription outstr = [""" <%s: %s>""" %(self.__class__,self.name)] outstr.append("%d sets"%len(self._sets)) for key in self._sets: outstr.append("set: %s"%self._sets[key]) return """ """ .join(outstr) |
| |||
def to_string(self,verbose = 0): [[#variable2cdc3960]] if not verbose: # Short account only required # Return the short description return "%s"%self # Use __str__ method instead else: # Long account desired # Return the long desription outstr = [""" <%s: %s>""" %(self.__class__,self.name)] outstr.append( [[#variable73024b40]]%len(self. [[#variable77411da0]])) for key in self. [[#variable77411da0]]: outstr.append( [[#variable75465740]]%self. [[#variable77411da0]][key]) return """ """ .join(outstr) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2cdc3960]] | ''' to_string(self, verbose=0) -> "" o verbose Boolean indicating whether a short or complete \t account of the set is required Returns a formatted string with information about the set ''' |
1 | 2 | [[#2cdc3960]] | ''' to_string(self, verbose=0) -> "" o verbose Flag indicating whether a short or complete account of the set is required Returns a formatted string with information about the set ''' |
1 | 3 | [[#2cdc3960]] | ''' to_string(self, verbose=0) -> "" o verbose Boolean indicating whether a short or complete account of the track is required Returns a formatted string with information about the track ''' |
2 | 1 | [[#73024b40]] | "%d features" |
2 | 2 | [[#73024b40]] | "%d graphs" |
2 | 3 | [[#73024b40]] | "%d sets" |
3 | 1 | [[#77411da0]] | features |
3 | 2 | [[#77411da0]] | _graphs |
3 | 3 | [[#77411da0]] | _sets |
4 | 1 | [[#75465740]] | "feature: %s" |
4 | 2 | [[#75465740]] | "%s" |
4 | 3 | [[#75465740]] | "set: %s" |