Skip to content

BUG?: head shape missing in brain storm resting state datasets  #4184

Closed

Description

@dengemann

According to the old tutorials there should be a rich digitisation using polhemus (http://neuroimage.usc.edu/brainstorm/Tutorials/Resting#Download_and_installation)
The fif files however come only with fiducials and landmarks. It seems that the head shape did not make it into the fif files that we ship. I think we need to do some updates here.

cc @jasmainak @jaeilepp

Activity

  1. jaeilepp commented on Apr 12, 2017

    @jaeilepp
    Contributor

    I suppose the digitization points are the ones at subj002_11022011.pos. The python version reads them correctly, but the C version ignores them. So we just need to convert the files using python and update the dataset.

  2. dengemann commented on Apr 12, 2017

    @dengemann
    MemberAuthor
  3. dengemann commented on Apr 12, 2017

    @dengemann
    MemberAuthor
  4. dengemann commented on Apr 13, 2017

    @dengemann
    MemberAuthor

    @jaeilepp currently the ctf reader gives me this when trying to read the noise files:

    ds directory : ./Data/subj002_noise_20111104_02.ds
        res4 data read.
        hc data read.
        Separate EEG position data file read.
        Quaternion matching (desired vs. transformed):
           0.00   80.00    0.00 mm <->    0.00   80.00    0.00 mm (orig :  -56.57   56.57 -270.00 mm) diff =    0.000 mm
           0.00  -80.00    0.00 mm <->    0.00  -80.00    0.00 mm (orig :   56.57  -56.57 -270.00 mm) diff =    0.000 mm
          80.00    0.00    0.00 mm <->   80.00   -0.00    0.00 mm (orig :   56.57   56.57 -270.00 mm) diff =    0.000 mm
        Coordinate transformations established.
        Polhemus data for 3 HPI coils added
        Device coordinate locations for 3 HPI coils added
        Measurement info composed.
    Finding samples for ./Data/subj002_noise_20111104_02.ds/subj002_noise_20111104_02.meg4: 
        System clock channel is available, checking which samples are valid.
        5 x 120000 = 600000 samples from 299 chs
    Current compensation grade : 0
    ValueErrorTraceback (most recent call last)
    <ipython-input-17-7c26c30e9a9a> in <module>()
          4         '.ds', '_raw.fif')
          5     raw = mne.io.read_raw_ctf(fname)
    ----> 6     if 'spontaneous' in raw:
          7         assert len(raw.info['dig']) == 101
    
    /Users/dengemann/github/mne-python/mne/channels/channels.pyc in __contains__(self, ch_type)
        176                            _contains_ch_type(self.info, 'grad'))
        177         else:
    --> 178             has_ch_type = _contains_ch_type(self.info, ch_type)
        179         return has_ch_type
        180 
    
    /Users/dengemann/github/mne-python/mne/channels/channels.pyc in _contains_ch_type(info, ch_type)
         79     if ch_type not in valid_channel_types:
         80         raise ValueError('ch_type must be one of %s, not "%s"'
    ---> 81                          % (valid_channel_types, ch_type))
         82     if info is None:
         83         raise ValueError('Cannot check for channels of type "%s" because info '
    
    ValueError: ch_type must be one of ['bio', 'chpi', 'dipole', 'ecg', 'ecog', 'eeg', 'emg', 'eog', 'exci', 'fnirs', 'gof', 'grad', 'hbo', 'hbr', 'ias', 'mag', 'misc', 'planar1', 'planar2', 'ref_meg', 'resp', 'seeg', 'stim', 'syst'], not "spontaneous"
    
  5. dengemann commented on Apr 13, 2017

    @dengemann
    MemberAuthor

    @jaeilepp never mind it was my bad.

  6. dokato commented on Feb 20, 2018

    @dokato
    Contributor

    Hi @dengemann , @jaeilepp! I was working with resting state dataset (http://neuroimage.usc.edu/brainstorm/Tutorials/Resting) and got to the point, where need to specify transform between mri and head in make_forward_solution. For now I've given None, but we should be able to make a transform based on digitisation data. I think this is related. Any update on that?

  7. agramfort commented on Feb 20, 2018

    @agramfort
    SponsorMember
  8. dengemann commented on Feb 20, 2018

    @dengemann
    MemberAuthor
  9. dokato commented on Feb 20, 2018

    @dokato
    Contributor

    Thanks! Since we are on that, notice also that mne_data/MNE-brainstorm-data/bst_resting/subjects/bst_resting/bem/ contains files with prefix: bst_resting- (eg. bst_resting-inner_skull.surf). It seems that current mne.make_bem_model doesn't support that. So I guess it would be worth to either add some prefix option, or rename bem files in this dataset.

  10. dengemann commented on Feb 20, 2018

    @dengemann
    MemberAuthor
  11. dengemann commented on Mar 6, 2018

    @dengemann
    MemberAuthor

    @agramfort for updating the brainstorm resting dataset shall we:

    1. ... replace the fiff files with the ds ones?
    2. ... handle name cleaning explicitly in tutorials or do silent magic inside MNE?
  12. agramfort commented on Mar 7, 2018

    @agramfort
    SponsorMember
  13. dengemann commented on Mar 7, 2018

    @dengemann
    MemberAuthor
  14. dokato commented on May 29, 2018

    @dokato
    Contributor

    @dengemann what's the status of that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions