Hello,
is it possible to add a new property to display onto a graph (graph display properties in anatomist)?
I would like to visualize e.g. the posterior probabilities from the SPAM recognition process or a p-value that I would have computed for each sulcal piece.
It seems to me that there should be an interaction with a given hierarchy so It may not be so easy...
...but I guess it is possible, as with brainvisa: "yes, we can!"
cheers
gui
graph display properties
- riviere
- Site Admin
- Posts: 1361
- Joined: Tue Jan 06, 2004 12:21 pm
- Location: CEA NeuroSpin, Saint Aubin, France
- Contact:
Re: graph display properties
Hi Guillaume,
It is completely possible to add properties in a graph, but just the graph .arg format does not write/read unlnown properties.
You can either set the properties in a script and view the graph on the fly in pyanatomist, or modify your graph.stx file to add IO for your new properties.
Alternately you can use siCsvMapGraph.py which does more or less what you seem to need: take values from a CSV file, map then on graph nodes, and display them in anatomist.
Denis
It is completely possible to add properties in a graph, but just the graph .arg format does not write/read unlnown properties.
You can either set the properties in a script and view the graph on the fly in pyanatomist, or modify your graph.stx file to add IO for your new properties.
Alternately you can use siCsvMapGraph.py which does more or less what you seem to need: take values from a CSV file, map then on graph nodes, and display them in anatomist.
Denis
-
- Posts: 44
- Joined: Wed Mar 15, 2006 10:29 am
- Location: Institut des Neurosciences de la Timone
- Contact:
Re: graph display properties
Hi Denis,
one more time thank you for your fast answer!
As you said, siCsvMapGraph.py seems doing the job I want.
I tried it with a *_proba.csv resulting from the SPAM recognition and it works fine.
However, I have one more question concerning the csv input:
I see that the *_proba.csv looks like:
nodes likelihood
12 4.173395
8 4.190664
... ...
which means that we give one value per node in the graph.
Would it be possible to give as input a csv that would look like the following?
F.C.L.a._left 4.173395
S.C._left 4.190664
Or in other words: where could I find a csv file example?
many thanks
gui
one more time thank you for your fast answer!
As you said, siCsvMapGraph.py seems doing the job I want.
I tried it with a *_proba.csv resulting from the SPAM recognition and it works fine.
However, I have one more question concerning the csv input:
I see that the *_proba.csv looks like:
nodes likelihood
12 4.173395
8 4.190664
... ...
which means that we give one value per node in the graph.
Would it be possible to give as input a csv that would look like the following?
F.C.L.a._left 4.173395
S.C._left 4.190664
Or in other words: where could I find a csv file example?
many thanks
gui
- riviere
- Site Admin
- Posts: 1361
- Joined: Tue Jan 06, 2004 12:21 pm
- Location: CEA NeuroSpin, Saint Aubin, France
- Contact:
Re: graph display properties
Hi Guillaume,
Yes, we still need a tool to integrate probas at sulcus level. That's something we wanted to do with Matthieu for several yearts but never took time to do it...
Denis
Yes, we still need a tool to integrate probas at sulcus level. That's something we wanted to do with Matthieu for several yearts but never took time to do it...
Denis
Re: graph display properties
Hi,
siCsvMapGraph.py is very useful!
Would be possible to change the default palette in siCsvMapGraph.py , or to select a palette with a kind of 'siCsvMapGraph.py -palette-option', assigning also the min/max values?
And, in my case there are always some 'unknown' objects that I have to delete manually. Is it possible to not load these abojects?
Thank you!
Fab
siCsvMapGraph.py is very useful!
Would be possible to change the default palette in siCsvMapGraph.py , or to select a palette with a kind of 'siCsvMapGraph.py -palette-option', assigning also the min/max values?
And, in my case there are always some 'unknown' objects that I have to delete manually. Is it possible to not load these abojects?
Thank you!
Fab
- riviere
- Site Admin
- Posts: 1361
- Joined: Tue Jan 06, 2004 12:21 pm
- Location: CEA NeuroSpin, Saint Aubin, France
- Contact:
Re: graph display properties
HI,
It could be done, an option could be added...
Denis
It could be done, an option could be added...
Denis
Re: graph display properties
Hi,
I changed the default palette by adding the following command at the line ~330
and then
at line ~343
Thanks!
Fab
I changed the default palette by adding the following command at the line ~330
Code: Select all
palette=a.getPalette("Yellow-red-fusion")
Code: Select all
if isinstance( palette, a.APalette ):
ag.setPalette( palette ,minVal=0.18, maxVal=0.72, absoluteMode=True)
Thanks!
Fab