Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contrasts missing from report #392

Open
jpiaszynski opened this issue Dec 6, 2022 · 1 comment
Open

Contrasts missing from report #392

jpiaszynski opened this issue Dec 6, 2022 · 1 comment

Comments

@jpiaszynski
Copy link

jpiaszynski commented Dec 6, 2022

Environment

  • fitlins version: 0.11.0

Problem

After updating to the latest version, the contrasts are no longer showing up in the report. Instead, a message is displayed reading "Missing contrast skipped (used: --drop-missing)" under each header. I don't believe this is an issue with the input data, as I verified that the previous version I had been using (0.10.1) is still able to produce a complete report with the same model. Going down the hierarchy for /node-runLevel/reports, I find the same files for each subject that I would see with the older version, including PNGs of the contrasts. The program is seemingly producing the contrasts, but then is unable to locate them for the report.

Fitlins call

singularity run --cleanenv \
    -B ${DATA_DIR} \
    -B ${BIDS_DIR} \
    -B ${DATA_DIR}/derivatives/fmriprep \
    -B ${DATA_DIR}/derivatives \
    -B ${DATA_DIR}/wdir \
    ${CONTAINERS}/fitlins-0.11.0.simg \
    ${BIDS_DIR} \
    ${OUT_DIR} \
    participant --participant-label ${SUBJECT} \
    -d ${DATA_DIR}/derivatives/fmriprep \
    -w ${DATA_DIR}/wdir \
    -m ${MODEL} \
    --n-cpus 8 --mem-gb 16 \
    --debug -v \
    --space MNI152NLin6Asym \
    --smoothing 8:dataset:iso

Model

{
    "Name": "animations",
    "Description": "",
    "BIDSModelVersion":"1.0.0",
    "Input":{
        "task": "animations"
    },
    "Nodes": [
        {
            "Level": "Run",
            "Name": "run_level",
            "GroupBy":["run","session","subject"],
            "Transformations":{
                "Transformer":"pybids-transforms-v1",
                "Instructions":[
                    {
                        "Name": "Factor",
                        "Input":[
                            "trial_type"
                        ]
                    },
                    {
                        "Name": "Convolve",
                        "Input":[
                            "trial_type.R",
                            "trial_type.M"
                        ],
                        "Model":"spm"
                    }
                ]
            },
            "Model":{
                "Type": "glm",
                "X":[
                    "trans_x", "trans_y", "trans_z", "rot_x", "rot_y", "rot_z",
                    "trial_type.R","trial_type.M"
                ]
            },
            "Contrasts":[
                {
                    "Name":"RvsM",
                    "ConditionList":["trial_type.R", "trial_type.M"],
                    "Weights":[1, -1],
                    "Test":"t"
                },
                {
                    "Name":"MvsR",
                    "ConditionList":["trial_type.M", "trial_type.R"],
                    "Weights":[1, -1],
                    "Test":"t"
                }
            ]
            
        },
        
        {
            "Level":"Dataset",
            "Name":"dataset_level",
            "GroupBy":["contrast"],
            "Model":{
                "X":[1],
                "Type":"glm"
            },
            "DummyContrasts":{"Test":"t"},
            "Contrasts":[
                {
                    "Name":"MvsR",
                    "ConditionList":["trial_type.M","trial_type.R"],
                    "Weights":[1,-1],
                    "Test":"F"
                },
                {
                    "Name":"RvsM",
                    "ConditionList":["trial_type.R","trial_type.M"],
                    "Weights":[1,-1],
                    "Test":"F"
                }
            ]
        }
    ]
}
@vogelbac
Copy link

I have the same problem for two different datasets with this version. If I run the same model with the version 0.10.1 then the report ist generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants