Closed biggstd closed 4 years ago
@biggstd , when I test I get this:
$ python /local/projects/KINC/scripts/viz_kinc_network.py "rice_heat_drought.GEM.FPKM.filtered.traditional.gcn.txt"
File "/local/projects/KINC/scripts/viz_kinc_network.py", line 127
**self.graph_opts}
^
SyntaxError: invalid syntax
Thoughts?
What version of python are you using? I think this script requires 3.6.
I finally got back to this. Sorry for the slowness. I was able to get it to work and it looks great and is very responsive! The Bokeh controls work great. But I had a few issues that I couldn't get past. Before I get into those. I did update the code a bit to support the new file formats that KINC 3.4.0 will generate. I also fixed a bug that kept the code from opening. I just had to uncomment this line:
edge_line_width = param.Selector(default=None)
Issues
Requested Changes
Testing to be done
Oh, one thing that would be nice. Is it possible with the graph library being used to get the degree of each node and size the node according to it's degree? This way it would be easier to spot hub nodes in the hair ball.
I have replaced the 2D visualization script with a 3D version. This is the only change and it's independent of the C++ code for KINC so I'm merging.
Visualization script is for plain-text co-expression files. This new file is the only change in this commit.
This script can be launched as a 'panel' application via:
Or as a standard python module via:
You may need to install some python packages -- I didn't see a python requirements.txt to update: