question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: Somato BIDS dataset derivatives need to be updated

See original GitHub issue

Turns out there was a bug with the conversion in #6414 conversion. The subject used to be somato but now it’s 01 and the -src.fif was never updated. We thus end up with:

>>> fwd['src'][0]['subject_his_id']
'somato'

which is wrong (and is now arguably correctly treated as an error downstream later by MNE). I have a quick fix for this but it would be good @jasmainak @sappelhoff if someone could re-create the src, fwd, and (if applicable) inv for this subject because they will all have the old, incorrect subject_his_id value.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
larsonercommented, Mar 4, 2020

No I would not create a new one, just use read_forward_solution, modify s['subject_his_id'] for each s in fwd['src'], then write_forward_solution. It ensures that everything stays the same except the subject_his_id

0reactions
sappelhoffcommented, Mar 4, 2020

@larsoner to create a new (correct) one, I assume that I would use mne.make_forward_solution

What should I supply for the src and bem parameters?

These are all the files I have (printed up to depth 3):

|MNE-somato-data/
|--- subjects/
|------ somato/
|--------- scripts/
|--------- stats/
|--------- label/
|--------- touch/
|--------- surf/
|--------- mri/
|--------- trash/
|--------- tmp/
|--------- src/
|--------- bem/
|--- MEG/
|------ somato/
|--------- sef_raw_sss-trans.fif
|--------- somato-meg-oct-6-fwd.fif
|--------- sef_raw_sss.fif

Read more comments on GitHub >

github_iconTop Results From Across the Web

12. Updating BIDS datasets — MNE-BIDS 0.11.1 documentation
Download the somato BIDS dataset#. Download the data if it hasn't been downloaded already, and return the path to the download directory. This ......
Read more >
layout.add_derivatives requires 'PipelineDescription' not in ...
Using the add_derivatives method I get the following error: MANDATORY_DERIVATIVES_FIELDS['PipelineDescription.Name']) bids.exceptions.
Read more >
MNE-somato-data-bids dataset (anonymized) - OpenNeuro
This dataset contains the MNE-somato-data in BIDS format. The conversion can be reproduced through the Python script stored in the /code ...
Read more >
BIDS Derivatives - Brain Imaging Data Structure v1.8.0
BIDS Derivatives. Derivatives are outputs of common processing pipelines, capturing data and meta-data sufficient for a researcher to understand and ...
Read more >
pyBids derivative validation error running fitlins on fmriprep ...
First: I'm getting an error in fitlins from the pybids validator: Traceback (most ... We're going to need to update PyBIDS to handle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found