CloneSet18


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
56210.999compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
156218
Bio/AlignAce/Motif.py
254612
Bio/Motif/_Motif.py
Clone Instance
1
Line Count
56
Source Line
218
Source File
Bio/AlignAce/Motif.py

    def weblogo(self,fname,format = "PNG", **kwds):
                                                
        """
        uses the Berkeley weblogo service to download and save a weblogo of itself
        
        requires an internet connection.
        The parameters from **kwds are passed directly to the weblogo server.
        """ 
        import urllib 
        import urllib2 
        #import Image
        al = self.to_fasta( ) 

        url = "http://weblogo.berkeley.edu/logo.cgi" 
        values = {"sequence":al,"format":format,"logowidth":"18","logoheight":"5","logounits":"cm","kind":"AUTO","firstnum":"1","command":"Create Logo","smallsamplecorrection":"on","symbolsperline":32,"res":"96","res_units":"ppi","antialias":"on","title":"","barbits":"","xaxis":"on","xaxis_label":"","yaxis":"on","yaxis_label":"","showends":"on","shrink":"0.5","fineprint":"on","ticbits":"1","colorscheme":"DEFAULT","color1":"green","color2":"blue","color3":"red","color4":"black","color5":"purple","color6":"orange","color1":"black", } 































        for k,v in kwds.items( ):
                                
            values[k] = str(v) 
        data = urllib.urlencode(values) 
        req = urllib2.Request(url,data) 
        response = urllib2.urlopen(req) 
        f = open(fname,"w") 
        im = response.read( ) 

        f.write(im) 
        f.close( ) 


Clone Instance
2
Line Count
54
Source Line
612
Source File
Bio/Motif/_Motif.py

    def weblogo(self,fname,format = "PNG", **kwds):
                                                
        """
        uses the Berkeley weblogo service to download and save a weblogo of itself
        
        requires an internet connection.
        The parameters from **kwds are passed directly to the weblogo server.
        """ 
        import urllib 
        import urllib2 
        al = self._to_fasta( ) 
        url = "http://weblogo.berkeley.edu/logo.cgi" 
        values = {"sequence":al,"format":format,"logowidth":"18","logoheight":"5","logounits":"cm","kind":"AUTO","firstnum":"1","command":"Create Logo","smallsamplecorrection":"on","symbolsperline":32,"res":"96","res_units":"ppi","antialias":"on","title":"","barbits":"","xaxis":"on","xaxis_label":"","yaxis":"on","yaxis_label":"","showends":"on","shrink":"0.5","fineprint":"on","ticbits":"1","colorscheme":"DEFAULT","color1":"green","color2":"blue","color3":"red","color4":"black","color5":"purple","color6":"orange","color1":"black", } 































        for k,v in kwds.items( ):
                                
            values[k] = str(v) 
        data = urllib.urlencode(values) 
        req = urllib2.Request(url,data) 
        response = urllib2.urlopen(req) 
        f = open(fname,"w") 
        im = response.read( ) 

        f.write(im) 
        f.close( ) 


Clone AbstractionParameter Count: 1Parameter Bindings

def weblogo(self,fname,format = "PNG", **kwds):
  """
        uses the Berkeley weblogo service to download and save a weblogo of itself
        
        requires an internet connection.
        The parameters from **kwds are passed directly to the weblogo server.
        """ 
  import urllib 
  import urllib2 
  #import Image
  al = self. [[#variable60100e20]]( ) 
  url = "http://weblogo.berkeley.edu/logo.cgi" 
  values = {"sequence":al,"format":format,"logowidth":"18","logoheight":"5","logounits":"cm","kind":"AUTO","firstnum":"1","command":"Create Logo","smallsamplecorrection":"on","symbolsperline":32,"res":"96","res_units":"ppi","antialias":"on","title":"","barbits":"","xaxis":"on","xaxis_label":"","yaxis":"on","yaxis_label":"","showends":"on","shrink":"0.5","fineprint":"on","ticbits":"1","colorscheme":"DEFAULT","color1":"green","color2":"blue","color3":"red","color4":"black","color5":"purple","color6":"orange","color1":"black", } 
  for k,v in kwds.items( ):
  
    values[k] = str(v) 
  data = urllib.urlencode(values) 
  req = urllib2.Request(url,data) 
  response = urllib2.urlopen(req) 
  f = open(fname,"w") 
  im = response.read( ) 
  f.write(im) 
  f.close( ) 
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#60100e20]]
to_fasta 
12[[#60100e20]]
_to_fasta