-
|
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Ah OK then I understand... :) |
Beta Was this translation helpful? Give feedback.
-
|
I could fix the import process quite easily, but the freesurfer import process has a more important problem: it is running a (partial) Morphologist process and gives it only a few filenames, letting the completion system determine the others. But the completion system needs databasing, thus the process doesn't work in parallel execution.
So for now the short answer is: no it's not possible to run this specific process in parallel. |
Beta Was this translation helpful? Give feedback.
-
|
I was able to parallelize this process but in a bit of an unconventional way to meet the needs of a cluster I am computing on. Specifically, my cluster needed all data/scripts to be copied to a directory created for each job (one job per subject) submitted, populated upon job submission. If you use the singularity distribution and then use axon-runprocess to run a *.bvproc file from the command line (i.e., the process for importing freesurfer files, which you can specify inputs/outputs in and then save) without using any fancier singularity commands to bind directories, then the process will automatically access databases associated with the brainvisa installation specified by the PATH environmental variable. So, you could technically just make a new copy of brainvisa in a new directory for each subject, and then add that install to the top of the the path with This should work because I believe that if you create a shell script for each subject, then that shell script should only have the PATH updated within its own processing (avoiding cross-talk between PATH variables). This is because shell scripts inherit the PATH from its parent but do not modify its parent, and so your path will end up including your original brainvisa install and this copied one, but the copied one gets picked up first with the export command I showed. You must create the database in your original brainvisa install location, such as brainvisa-5.0.3/home/database (and make sure you have checked in the GUI that this database is selected in. preferences). When you copy the whole brainvisa install into a subject directory, then axon-runprocess (with the updated path) will access the database in this new location. This a kind of hack (and may take some playing around with) and probably not optimal for most, so I wouldn't necessarily recommend it but could be useful if your planning to run many subjects at once on a cluster (and can spare the extra GBs for copying / deleting the brainvisa copies you make for each subject). |
Beta Was this translation helpful? Give feedback.
-
|
I could make an implementation of solution 2) work.
The update will allow the process to force enabling databasing during execution, thus completion will happen. |
Beta Was this translation helpful? Give feedback.
I could fix the import process quite easily, but the freesurfer import process has a more important problem: it is running a (partial) Morphologist process and gives it only a few filenames, letting the completion system determine the others. But the completion system needs databasing, thus the process doesn't work in parallel execution.
So in the current state, the FS import process cannot run in parallel.
To fix it, technically, there are 2 ways: