Hi
I keep getting a KeyError with the parcel_naming.py
``
python parcel_naming.py random_all.nii.gz random '10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200,210,220,230,240,250,260,270,280,290,300,350,400,450,500,550,600,650,700,750,800,850,900,950'
[10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 260, 270, 280, 290, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950]
parcel_naming.py called with random_all.nii.gz, random, 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200,210,220,230,240,250,260,270,280,290,300,350,400,450,500,550,600,650,700,750,800,850,900,950
Read in the parcellation results random_all.nii.gz
(47, 56, 46, 43)
43
Length of parcel values (43) == number of parcel images (43)
Reading in the atlas labels: mni_labels.csv
Read in the atlas /usr/share/fsl/5.0/data/atlases/MNI/MNI-maxprob-thr25-2mm.nii.gz
Downsample the atlas
Reading in the atlas labels: harvardoxford_subcortical_labels.csv
Read in the atlas /usr/share/fsl/5.0/data/atlases/HarvardOxford/HarvardOxford-sub-maxprob-thr25-2mm.nii.gz
Downsample the atlas
Reading in the atlas labels: juelich_labels.csv
Read in the atlas /usr/share/fsl/5.0/data/atlases/Juelich/Juelich-maxprob-thr25-2mm.nii.gz
Downsample the atlas
Reading in the atlas labels: talairach_labels.csv
Read in the atlas /usr/share/fsl/5.0/data/atlases/Talairach/Talairach-labels-2mm.nii.gz
Downsample the atlas
Reading in the atlas labels: harvardoxford_cortical_labels.csv
Read in the atlas /usr/share/fsl/5.0/data/atlases/HarvardOxford/HarvardOxford-cort-maxprob-thr25-2mm.nii.gz
Downsample the atlas
Traceback (most recent call last):
File "parcel_naming.py", line 226, in
main()
File "parcel_naming.py", line 221, in main
fid.write("["%s": %2.2f]"%(atlases[atlas][0][h[0]],h[1]))
KeyError: 8
``
Thanks
Eduardo
Hi
I keep getting a KeyError with the parcel_naming.py
``
python parcel_naming.py random_all.nii.gz random '10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200,210,220,230,240,250,260,270,280,290,300,350,400,450,500,550,600,650,700,750,800,850,900,950'
[10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 260, 270, 280, 290, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950]
parcel_naming.py called with random_all.nii.gz, random, 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200,210,220,230,240,250,260,270,280,290,300,350,400,450,500,550,600,650,700,750,800,850,900,950
Read in the parcellation results random_all.nii.gz
(47, 56, 46, 43)
43
Length of parcel values (43) == number of parcel images (43)
Reading in the atlas labels: mni_labels.csv
Read in the atlas /usr/share/fsl/5.0/data/atlases/MNI/MNI-maxprob-thr25-2mm.nii.gz
Downsample the atlas
Reading in the atlas labels: harvardoxford_subcortical_labels.csv
Read in the atlas /usr/share/fsl/5.0/data/atlases/HarvardOxford/HarvardOxford-sub-maxprob-thr25-2mm.nii.gz
Downsample the atlas
Reading in the atlas labels: juelich_labels.csv
Read in the atlas /usr/share/fsl/5.0/data/atlases/Juelich/Juelich-maxprob-thr25-2mm.nii.gz
Downsample the atlas
Reading in the atlas labels: talairach_labels.csv
Read in the atlas /usr/share/fsl/5.0/data/atlases/Talairach/Talairach-labels-2mm.nii.gz
Downsample the atlas
Reading in the atlas labels: harvardoxford_cortical_labels.csv
Read in the atlas /usr/share/fsl/5.0/data/atlases/HarvardOxford/HarvardOxford-cort-maxprob-thr25-2mm.nii.gz
Downsample the atlas
Traceback (most recent call last):
File "parcel_naming.py", line 226, in
main()
File "parcel_naming.py", line 221, in main
fid.write("["%s": %2.2f]"%(atlases[atlas][0][h[0]],h[1]))
KeyError: 8
``
Thanks
Eduardo