-
Notifications
You must be signed in to change notification settings - Fork 1
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
Visualise/verify network connectivity as exported in NML2 #16
Comments
@pgleeson Ok, take a look at this net It validates with jnml -validate (at least locally). Don't know if this will show at all, as I haven't gotten nC to run yet. |
One issue with nC is that you'd have to manually import all of the Mitral/GC cells to the nc project to be able to visualise a network with connections... The command line import needs work: NeuralEnsemble/neuroConstruct#47 Better in the shorter term is the OSB visualisation option or the SVG export. To allow you to test the visualisation of networks and cells (I see you've restructured the nml2 files in your fork) you could add a new OSB project and point it at your fork on github. Then you would be able to visualise any *.nml cels in the drop down menus in OSB 3D explorer Note this however: openworm/org.geppetto#463 |
Ok, got it into a private OSB project. When I load it in the 3d explorer, it just spins the star icon saying it's taking longer than usual. Console is frozen, so don't know if there are any errors. I'll mess with a bunch of different versions of the network to see if it will render. |
@JustasB I have just had a look at your network. OSB Explorer is not able to reproduce the network because you are using a ComponentType as the synapse. It should be a component instead. So the best option is probably to include another NeuroML file with the synapse (component) as we are doing here. |
@adrianq Thank you. Anyway to make that into an error message visible in the console? I don't want to take up your guys' time with small mistakes like that. |
@JustasB Good point re that check. Would be better to put that in jnml -validate to catch such errors earlier. It had been mentioned here: NeuroML/org.neuroml.model#12 (comment). I've just locally implemented that check (and others, e.g. component pointed to by population not found, which is also a problem with your file, Granule_0_92389 etc.). Will do some tests on other NML examples on OSB and commit in the next day or two... |
@JustasB you are right. This is something we should expose to the user but at the moment there is not an easy way to implement it. I will try to find a solution for the next release and let you know... |
Nice... I think what's happening though is the somas of the mitral cells are already in place, i.e. not at (0,0,0), but you're positioning them at that location, i.e. they're being shifted twice. Try using
Also a nice tool to try is pynml-povray in pyNeuroML. You can even make movies... |
Beautiful! |
@JustasB updates to validator mentioned above have been committed, you'll get them if you pull & build jNeuroML from source again (python getNeuroML.py development). |
@pgleeson Is there any way to specify the orientation of the cells? For example in the above network, all the gran cells are pointing in one direction. Do you have any examples of setting the orientation of the cell, or does it all have to be done via the segment positions in the cell definition? |
Currently, there is no way to (re)orient the cells in a population. This is part of the long term plans for nml2, but won't be there any time soon. I see you have done the next best thing currently available and exported an instance of each Grc & included those. Looks good. |
The verified connectivity has been implemented here: This has been implemented here: #25 |
Issue OpenSourceBrain/redmine#245 should be resolved now...
First requirement with all of this is making sure the network is valid... Could you commit an example of the exported network if you're still having problems @JustasB?
The text was updated successfully, but these errors were encountered: