[Mrtrix-discussion] seed from text file
Markus Gschwind
markus.gschwind at gmail.com
Sat Apr 21 04:55:44 PDT 2012
Hi!
You could try somthing like:
awk '{ print "streamtrack <therest_of_the_command>" $1 " tract_output" }'
list_of_the_coordinates.txt | sh
This command runs throught the list of your coordinates (=per subject, as
described below, saved in a txt file), executing each time the streamtrack
command (please complete your command within the <>)
Hope this helps!
Markus
2012/4/20 Luis Concha <lconcha at unam.mx>
> Hello.
>
> I would like to seed from several very specific seeds that I normally pass
> to the -seed option of streamtrack as x,y,z,radius. However, I must pass
> them one by one, by several invocations of the command. Is there a way to
> pass a text file for seeding, which could contain the coordinates? (I'm
> thinking of a file with nRows=nSeeds, and 4 columns [x,y,z,radius]).
>
> Also, I need to be able to keep a good order between the tracks and the
> seeds, so I would expect the track indices to be the same as the rows in
> the seed text file.
>
> So far I have been using a for loop, making several track files, but I
> imagine (and please correct me if I'm wrong) that the bottleneck for
> processing speed is in the loading of the CSD file at each iteration.
>
> Any suggestions are most welcome. Thanks.
>
>
> Dr. Luis Concha Loyola
> Instituto de Neurobiología
> Laboratorio C-12
> UNAM, Campus Juriquilla
> Boulervard Juriquilla 3001
> Juriquilla, Querétaro.
> C.P. 76230
> México
> Tel (442) 2 38 10 53
> Fax (442) 2 38 10 46
> www.inb.unam.mx
>
>
> _______________________________________________
> Mrtrix-discussion mailing list
> Mrtrix-discussion at www.nitrc.org
> http://www.nitrc.org/mailman/listinfo/mrtrix-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nitrc.org/pipermail/mrtrix-discussion/attachments/20120421/6ecb1044/attachment.html
More information about the Mrtrix-discussion
mailing list