Skip to content

FFX specify&estimate fails in case in a run a specific tryal_type specified in the model is missing #197

@marcobarilari

Description

@marcobarilari

Describe your problem in detail

In my design I have 3 condition (A, B and C) and only 1 of them is presented in a run. I have specified my model.json file as:

{
[...]

  },
  "Steps": [
    {
      "Level": "run",
      "Model": {
        "X": [
          "trial_type.A",
          "trial_type.B",
          "trial_type.C",
          "trial_type.response",
          "trans_x", "trans_y", "trans_z", "rot_x", "rot_y", "rot_z"
        ]
      },

[...]

only 1 of them is presented in a run
means that if in run1 I have condition A, condition B and C are missing.

Same story if I have no responses from the participant (@fedefalag has this problem).

Describe what outcome you expected

I don't what should happen in this case, maybe a 'FFX specify&estimate' per run

Describe what you got instead

Error message

------------------------------------------------------------------------
28-Nov-2020 22:11:21 - Running job #2
------------------------------------------------------------------------
28-Nov-2020 22:11:21 - Running 'fMRI model specification'
28-Nov-2020 22:11:21 - Failed  'fMRI model specification'
Error using spm_run_fmri_spec (line 169)
MultiCond file: sess 1 cond 1 has no onset.
In file "/Users/barilari/data/tools/spm12/config/spm_run_fmri_spec.m" (v6562), function "spm_run_fmri_spec" at line 169.
No executable modules, but still unresolved dependencies or incomplete module inputs.
The following modules did not run:
Failed: fMRI model specification
Skipped: Model estimation
Error using MATLABbatch system
Job execution failed. The full log of this run can be found in MATLAB command window, starting with the lines (look for the line showing the
exact #job as displayed in this error message)
------------------
Running job #2
------------------

It says that in sess 1 (run 1) cond 1 (A) has no onset (no entries in trial_type column corresponding to 'A')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions