Motif weblogo resolution
1
1
Entering edit mode
10.4 years ago
sndrtj ▴ 180

Hi there,

I'm creating motif weblogo's using biopython's motif.weblogo('somefile.png'). It works very well, but unfortunately the resolution is super tiny (see the example) and therefore not very useful. Is there any way to crank up the resolution programatically? I'd not like to use the weblogo website as I need to produce these things from an automated script.

Thanks a lot! :-)

genome motif biopython weblogo • 3.9k views
ADD COMMENT
5
Entering edit mode
10.4 years ago

I'm not a python dev, but I think you should use a vectorial format like SVG rather than the default bitmap format ('PNG') when calling weblogo http://biopython.org/DIST/docs/api/Bio.motifs-pysrc.html#Motif.weblogo

motif.weblogo('somefile.svg',format='SVG')

or modify another parameter using the **kwds** argument (try stack_width="large", etc... )

ADD COMMENT
0
Entering edit mode

Worked like a charm! Thanks :-).

ADD REPLY

Login before adding your answer.

Traffic: 2331 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6