simlistic python script to start Anatomist interactively

Questions about Anatomist manipulation

Moderators: denghien, riviere

Post Reply
yarikoptic
Posts: 10
Joined: Tue Sep 07, 2004 6:01 pm
Location: Psych. Dept., Rutgers-Newark, RUMBA-Labs
Contact:

simlistic python script to start Anatomist interactively

Post by yarikoptic »

Would anyone mind sharing a minimalistic python script to make use of anatomist from interactive (ipython) session. I've tried to "tesselate" neuro.py to reduce it to the point sufficient to simply run a=Anatomist.anatomist() but gave up for now since probably many of you do use such simple scripts ;-)

Thank you in advance!
--
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student Ph.D. @ CS Dept. NJIT, Master @ CS Dept. UNM
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

Hi,
you are talking about the API to control Anatomist from Brainvisa, right ?
The simplest way is to run brainvisa with the --shell commandline option: it will open BV in an interactive IPython shell. Then you can import Anatomist and run your a=Anatomist.anatomist() command.
All the Anatomist communication stuff in brainvisa is in the Anatomist.py source.
Alternatively, you can pass a python script to brainvisa using the -e option. Such a script can use the brainvisa API.
Denis
yarikoptic
Posts: 10
Joined: Tue Sep 07, 2004 6:01 pm
Location: Psych. Dept., Rutgers-Newark, RUMBA-Labs
Contact:

Post by yarikoptic »

Thank you Denis for replies -- they are 200% helpful ;-)
--
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student Ph.D. @ CS Dept. NJIT, Master @ CS Dept. UNM
Post Reply