GithubHelp home page GithubHelp logo

Comments (10)

wanderine avatar wanderine commented on August 17, 2024

There is something strange with your fMRI data, it has 13586 slices but
only one time point?

What do you get if you run fslinfo (FSL) or 3dinfo (AFNI) for the fMRI
dataset?

2015-08-16 18:58 GMT+02:00 ImmanuelSamuel [email protected]:

Authored by K.A. Eklund
fMRI data size: 64 x 64 x 13586 x 1
fMRI voxel size: 3.500000 x 3.500000 x 3.500000 mm
fMRI TR: 1.980000 s
fMRI slice order: Seqential increasing
T1 data size: 155 x 208 x 190
T1 voxel size: 1.000000 x 1.000000 x 1.000000 mm
MNI data size: 182 x 218 x 182
MNI voxel size: 1.000000 x 1.000000 x 1.000000 mm
Number of original GLM regressors: 1
Number of total GLM regressors: 5
Number of contrasts: 1

Performing registration between T1 and MNI
Performing registration between fMRI and T1
Segmentation fault (core dumped)


Reply to this email directly or view it on GitHub
#20.

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

I used dcm2nii converter from mricron. Yeah I saw that I am check it now.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

OK I haven't used it but for some reason it puts all the fMRI data into a
single volume, instead of several volumes. I think your dataset should be
something like

64 x 64 x 34 x 400

Is there any option that you can change?

2015-08-16 19:02 GMT+02:00 ImmanuelSamuel [email protected]:

I used dcm2nii converter from mricron


Reply to this email directly or view it on GitHub
#20 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

fslinfo shows

data_type      INT16
dim1           64
dim2           64
dim3           13586
dim4           1
datatype       4
pixdim1        3.500000
pixdim2        3.500000
pixdim3        3.500000
pixdim4        1.980000
cal_max        0.0000
cal_min        0.0000
file_type      NIFTI-1+

I am reconverting them after some changes and checking if dim4>1. It is taking time for conversion will update after it is done.

what do you use?

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

So I tried to use fslhd to look at the header to see if there is number of slices per volume tag. But I am getting this error saying couldn't open file. My linux inexperience is really showing now.

Using sudo gets me the permission but now I can read the libraries associated with fsl just like what happened yesterday.

Tried
chown -R immanuel:immanuel /path to directory
but didnt work.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Try

chmod +x filename

2015-08-16 21:12 GMT+02:00 ImmanuelSamuel [email protected]:

So I tried to use fslhd to look at the header to see if there is number of
slices per volume tag. But I am getting this error saying couldn't open
file. My linux inexperience is really showing now.

Using sudo gets me the permission but now I can read the libraries
associated with fsl just like what happened yesterday.

Tried
chown -R immanuel:immanuel /path to directory
but didnt work.


Reply to this email directly or view it on GitHub
#20 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

3dinfo also shows 64 x 64 x 13586 ... I used other converters and they said cannot find slice per volume info in the header.
I used dicom_hdr to look at header information no slice per volume information. So wierd.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Did you try to3d in afni?

to3d -epan -prefix mynifti.nii -time:zt nz nt TR *.dcm

nz is the number of slices
nt is the number of time points
TR is the repetition time, in milliseconds, i.e. 2000 for 2 seconds

2015-08-16 21:27 GMT+02:00 ImmanuelSamuel [email protected]:

yeah it worked 3dinfo also shows 64 x 64 x 13586 ... I used other
converters and they said cannot find slice per volume info in the header.
So wierd.


Reply to this email directly or view it on GitHub
#20 (comment).

Anders Eklund, PhD

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Sorry should be

to3d -epan -prefix mynifti.nii -time:zt nz nt TR timepattern *.dcm

tpattern = Code word that identifies how the slices (z-direction)

           were gathered in time.  The values that can be used:


   alt+z = altplus    = alternating in the plus direction

   alt+z2             = alternating, starting at slice #1

   alt-z = altminus   = alternating in the minus direction

   alt-z2             = alternating, starting at slice #nz-2

   seq+z = seqplus    = sequential in the plus direction

   seq-z = seqminus   = sequential in the minus direction

   zero  = simult     = simultaneous acquisition

   FROM_IMAGE         = (try to) read offsets from input images

   @filename          = read temporal offsets from 'filename'

2015-08-16 21:38 GMT+02:00 Anders Eklund [email protected]:

Did you try to3d in afni?

to3d -epan -prefix mynifti.nii -time:zt nz nt TR *.dcm

nz is the number of slices
nt is the number of time points
TR is the repetition time, in milliseconds, i.e. 2000 for 2 seconds

2015-08-16 21:27 GMT+02:00 ImmanuelSamuel [email protected]:

yeah it worked 3dinfo also shows 64 x 64 x 13586 ... I used other
converters and they said cannot find slice per volume info in the header.
So wierd.


Reply to this email directly or view it on GitHub
#20 (comment).

Anders Eklund, PhD

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Ok found the problem. I usually use SPM so I just reject the last two images that are usually incomplete images. This occurs due to partial acquisition. I just might have to try other converters that gives better control of conversion parameters.

from broccoli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.