pierrepo / PBxplore

A suite of tools to explore protein structures with Protein Blocks :snake:
https://pbxplore.readthedocs.org/en/latest/
MIT License
28 stars 17 forks source link

Generate weblogo images through weblogo API instead from weblogo binary #78

Closed HubLot closed 8 years ago

HubLot commented 8 years ago

From the weblogo documentation (http://weblogo.threeplusone.com/manual.html), there is an python API to generate weblogo images. I think it will be more easier to us to create images from the API instead from the binary. It will spare us a call from the command line. Plus, from what I seen the API can handle numpy array. If it's possible, the conversion to the transfac format will be no longer necessary and the modularization of the plotting function will be easier.

HubLot commented 8 years ago

With a little diging, here a notebook that use the API to generate the good image: https://gist.github.com/HubLot/e0078a4f5ebe77c3f1d2

HubLot commented 8 years ago

Solved in the commit 54daa75 in the pull-request #77