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.
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.