mne-tools / mne-bids-pipeline

Automatically process entire electrophysiological datasets using MNE-Python.
https://mne.tools/mne-bids-pipeline/
BSD 3-Clause "New" or "Revised" License
134 stars 65 forks source link

_bads.tsv missing for reference run (preprocessing/_03_maxfilter) #842

Closed SophieHerbst closed 6 months ago

SophieHerbst commented 6 months ago

Sorry, another issue: It seems like the pipeline wants an extra file for the bad channels for the reference run, but in my BIDS dataset, bad channels are marked in the channels.tsv files for each run, and I don't have the _bads.tsv file Is there a parameter I am missing to use this file? Thanks!

┌────────┬ preprocessing/_03_maxfilter ─────────────────────────────────────────
│16:57:50│ ❌ sub-155 run-01 A critical error occurred. The error message was: missing in_files["raw_ref_run-bads"] = /neurospin/meg/meg_tmp/TimeInWM_Izem_2019/BIDS_anonymized/derivatives/mne-bids-pipeline/sub-155/meg/sub-155_task-tiwm_run-01_bads.tsv

Aborting pipeline run. The traceback is:

  File "/home/sh254795/Documents/REPOS/mne-study-template/mne_bids_pipeline/_run.py", line 412, in _path_to_str_hash
    assert v.exists(), f'missing {kind}_files["{k}"] = {v}'
larsoner commented 6 months ago

This is on latest main? And on a new/clean run of the data (with derivatives deleted)?

There are some complicated conditionals about when to add bads and where they come from. It's possible there is an error in the logic somewhere. Any chance you can share one subject's data and a config file with me privately that I can use to reproduce the error?

SophieHerbst commented 6 months ago

Hi @larsoner, I confirm, no existing derivatives when starting the pipeline, and latest main. I will send you a link. Thanks!