-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for win32 #32
Comments
Traceback from un-modified project
|
Oof, it’s actually more complex than that; I had to modify the Louvain community detection binaries for tfmodisco. Phenograph ships precompiled binaries, but I was only able to prepare a precompiled binary for osx and linux because I literally don’t have access to a windows system. I can look into modifying setup.py to compile things on the fly. Part of the problem is that there are 3 binaries, two of which I modified, and 1 of which was modified by the author of phenograph - but the author of phenograph has not released the source code for those modifications (despite multiple requests jacoblevine/PhenoGraph#9), which is why I was relying on shipping the precompiled binaries rather than having the user compile from source. In the meantime, are you able to compile the code here from source: https://github.com/kundajelab/modisco_louvain? If so you could just update your version of tfmodisco to have the precompiled windows binaries. |
(Let me know if you are able to compile from source, and I will provide more detailed instructions on how to modify tfmodisco to use the binaries) |
Av - I have a windows machine if you want to try it out. |
Due to deadlines I'm working with, I've already started building a linux environment. Assuming that goes well then the current build will suit my needs. However, I wanted to open this issue to help track and raise visibility to the need. |
Thanks Tommy! If your datasets are not too big, I might also suggest working off a Colab notebook. There are many ways to get your data on a Colab notebook, one of which is to upload it to some publicly available server and then download it in the Colab notebook with curl, e.g.: Here's an example where I run TF-MoDISco in a Colab notebook on SVM-derived importance scores: https://github.com/kundajelab/igsvm/blob/master/lsgkmexplain_NFE2.ipynb |
Looks like the dependency modisco/cluster/phenograph/core.py uses an old codebase:
#copied from https://github.com/jacoblevine/PhenoGraph/blob/master/phenograph/core.py
The most recent update from that repo includes support for win32 systems.
I did try to modify a local copy of:
modisco/cluster/core.py -- edit, not sure this file was modified, not near system right now
modisco/cluster/init.py
modisco/affinitymat/transformers.py
to import a copy of jacoblevine/phenograph installed from pip instead (for the up to date copy) but the sample TF MoDISco TAL GATA breaks due to other functions missing from the phenograph .py's
Could we update modisco to require jacoblevine/phenograph as a dependency and add hooks or overrides instead of extending the .pys directly through copy/paste?
Alternatively is there a known list of all functions that were added to pheonograph's files that I could use to build this?
The text was updated successfully, but these errors were encountered: