You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, from the documentation it is not clear to me what this parameter actually does. Maybe that could be added?
Additionally, it would be nice if the pipeline would detect the missing parameter already at the start and not at the moment it encounters the error.
My current pipeline's should simply preprocess all FIF files in our dataset without epoching, i.e. apply ICA, filtering and downsampling and output the files to derivatives, from where I will deal with them outside of the pipeline. The epoching is done in a separate script, therefore, I treat all data as "rest"
``pipeline_preproc.conf
config
################################################################################## Preprocessing pipeline settings for mne-bids-pipeline |###############################################################################fromcollections.abcimportCallable, SequencefromtypingimportAnnotated, Any, Literalfromannotated_typesimportGe, Interval, Len, MinLenfrommneimportCovariancefrommne_bidsimportBIDSPathfrommne_bids_pipeline.typingimport (
# ArbitraryContrast,# DigMontageType,# FloatArrayLike,PathLike,
)
# %%05# # General settings# Configuration file for mne-bids-pipelinefromtypingimportSequence, Literal, OptionalfrommneimportCovariancefrommne_bidsimportBIDSPath# %%# General Settingsbids_root: PathLike|None='/data/fastreplay/Fast-Replay-MEG-bids/'deriv_root: PathLike=f"{bids_root}/derivatives/"# Save all processed data under /derivatives/subjects_dir: Optional[PathLike] =f"{deriv_root}/freesurfer/subjects/"# Path to FreeSurfer subject reconstructionsinteractive: bool=False# Disable interactive elements# sessions: Literal["all"] = "all" # Process all sessions# task: str = "" # Process all tasks by leaving emptytask_is_rest: bool=True# Treat data as resting-state, disable epoching# runs: Literal["all"] = "all" # Process all runsexclude_runs: Optional[dict[str, list[str]]] =None# No excluded runssubjects: Sequence[str] |Literal["all"] ="all"# Analyze all subjectsexclude_subjects: Sequence[str] = ['23'] # No excluded subjectsprocess_empty_room: bool=True# Preprocess empty-room dataprocess_rest: bool=True# Preprocess resting-state datach_types: Sequence[Literal["meg"]] = ["meg"] # Include MEG and EEG channelsdata_type: Literal["meg", "eeg"] ="meg"# Data type is MEGeog_channels: Sequence[str] = ["BIO0002", "BIO0003"] # Specify EOG channelsecg_channel: str="BIO0001"# Specify ECG channelspatial_filter: Literal["ica"] ="ica"# Use ICA for artifact removalica_n_components: int=50# Number of ICA componentsica_algorithm: str='picard'# %%# Preprocessingraw_resample_sfreq: float=100.0# Resample data to 100 Hzl_freq: float=0.1# Apply high-pass filter at 0.1 Hzh_freq: Optional[float] =None# Disable low-pass filternotch_freq: Sequence[float] = [50.0] # Apply notch filter at 50 Hznotch_trans_bandwidth: float=1.0# Set notch filter transition bandwidth to 1 Hz# %%# Artifact Removal via ICA# The pipeline will automatically identify and remove ICA components related to EOG and ECG.# %%# Source-level Analysisrun_source_estimation: bool=True# Enable source-level analysisinverse_method: Literal["dSPM"] ="dSPM"# Use dSPM as the inverse solution methodloose: float=0.2# Weigh parallel dipole components by 0.2depth: float=0.8# Set depth weighting exponent to 0.8noise_cov="emptyroom"# Use resting-state recording for noise covariance# %%# FreeSurfer recon-all Settingsrecon_all: bool=True# Enable FreeSurfer's recon-allfreesurfer_verbose: bool=True# print the complete recon-all pipeline# %%# Parallelizationn_jobs: int=4# Use all available CPU coresparallel_backend: Literal["loky"] ="loky"# Use 'loky' backend for parallel processing# %%# Logginglog_level: Literal["info"] ="info"# Set pipeline logging verbosity to 'info'mne_log_level: Literal["error"] ="error"# Set MNE-Python logging verbosity to 'error'# %%# Error Handlingon_error: Literal["abort"] ="abort"# Abort processing on errorsconfig_validation: Literal["raise"] ="raise"# Raise exceptions on config validation issues
The text was updated successfully, but these errors were encountered:
Before we use this variable we should raise an informative error telling people to set this value. Presumably no default is set (e.g., like 1.) because we want the end-user to make a conscious decision about what the duration should be.
Currently my pipeline fails with this error
However, from the documentation it is not clear to me what this parameter actually does. Maybe that could be added?
Additionally, it would be nice if the pipeline would detect the missing parameter already at the start and not at the moment it encounters the error.
My current pipeline's should simply preprocess all FIF files in our dataset without epoching, i.e. apply ICA, filtering and downsampling and output the files to derivatives, from where I will deal with them outside of the pipeline. The epoching is done in a separate script, therefore, I treat all data as "rest"
``pipeline_preproc.conf
config
The text was updated successfully, but these errors were encountered: