| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 56 | 2 | 1 | 0.999 | compound_stmt |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 56 | 218 | Bio/AlignAce/Motif.py |
| 2 | 54 | 612 | 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
#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( )
|
| ||||
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( )
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#60100e20]] | to_fasta |
| 1 | 2 | [[#60100e20]] | _to_fasta |