Hello, thank you for all the work on this project! I am currently using HALPER on a server that was not making it easy for me to install matplotlib. I noticed that it seems this dependency is only required for creating the histograms at the end of the orthologFind.py script.
It was faster for me to conditionally import matplotlib than figure out what the issue was with pip on the server so I thought I'd share the code I added. Maybe it would be helpful for someone in a similar situation. Although it does seem the chances you are able to get numpy running and not matplotlib like in my case are low.
Main changes are to add a command line argument -noHist that is True by default and moving the matplotlib import statement into the make_hist function. If -noHist flag is passed then make_hist is never called.
Hello, thank you for all the work on this project! I am currently using HALPER on a server that was not making it easy for me to install
matplotlib
. I noticed that it seems this dependency is only required for creating the histograms at the end of theorthologFind.py
script.It was faster for me to conditionally import
matplotlib
than figure out what the issue was with pip on the server so I thought I'd share the code I added. Maybe it would be helpful for someone in a similar situation. Although it does seem the chances you are able to getnumpy
running and notmatplotlib
like in my case are low.Main changes are to add a command line argument
-noHist
that isTrue
by default and moving thematplotlib
import statement into themake_hist
function. If-noHist
flag is passed thenmake_hist
is never called.