-
Notifications
You must be signed in to change notification settings - Fork 0
Plot coordinates (peaks) in Display
Eduardo Garza-Villarreal edited this page Aug 22, 2019
·
3 revisions
Make a peaks object in R and export it.
peaks <- mincFindPeaks(vs, "tvalue-SexM", minDistance = 1, threshold = 4)
write_csv(peaks, "peaks.csv")
Then copy only the world coordinates related to the template you used for the analysis, and make a tag file (i.e. peaks.tag).
MNI Tag Point File
Volumes = 1;
Points =
3.370666666535 5.930666666435 0.553191489370002
-6.783999999735 0.383999999985001 -0.468085106389998
-5.674666666445 5.503999999785 2.51063829791
0.981333333295 -13.439999999475 2.00000000003
5.418666666455 1.237333333285 -1.06382978725
-0.042666666664999 -10.026666666275 7.44680851075
6.442666666415 -7.551999999705 2.25531914897
-2.431999999905 -12.842666666165 -1.65957446811
6.357333333085 1.493333333275 3.87234042559
1.322666666615 0.469333333314999 4.21276595751
10.367999999595 8.575999999665 -3.44680851069
-5.333333333125 -6.015999999765 3.36170212771
2.346666666575 -7.978666666355 -1.06382978725
-9.087999999645 -10.879999999575 4.89361702135
3.882666666515 -5.674666666445 3.78723404261
-4.821333333145 -5.503999999785 4.04255319155
-1.322666666615 6.015999999765 2.34042553195
-2.773333333225 -0.981333333295 0.893617021290002
-1.322666666615 11.818666666205 1.65957446811
5.418666666455 1.663999999935 4.04255319155
-5.930666666435 3.455999999865 3.02127659579
0.895999999964999 3.285333333205 -2.00000000003
-0.981333333295 0.554666666645002 6.17021276605
2.431999999905 -1.151999999955 1.14893617023
-4.565333333155 -10.026666666275 1.74468085109
-1.407999999945 -6.698666666405 -1.82978723407
0.383999999985001 -4.821333333145 7.27659574479
-3.199999999875 10.111999999605 -3.44680851069
-0.469333333314999 -9.514666666295 5.57446808519
3.285333333205 -9.087999999645 -0.638297872349998
;
Convert your tag file to spheres (radius of the spheres in mm)
tags_to_spheres peak.tag peak.obj 0.5
In this case I used 0.5 mm, you can use whatever.
Open display with obj file and template.
Display template.mnc peak.obj

Thats it.
Note: The polygons are shown in the same order as the tag file.