incf-nidash / nidmresults-fsl

A python library to export FSL's feat results to NIDM-Results
http://nidm.nidash.org/specs/nidm-results.html
MIT License
3 stars 10 forks source link

group-level results error with motion regressors #115

Open AlexBowring opened 7 years ago

AlexBowring commented 7 years ago

If motion regressors are added within the design.fsf file inside the group.gfeat directory:

# Add motion parameters to model
# 0 : No
# 1 : Yes
set fmri(motionevs) 1
set fmri(motionevsbeta) ""
set fmri(scriptevsbeta) ""

Then nidmfsl gives the error:

% nidmfsl -g control 16 group.gfeat/
Exporting NIDM results from /Users/maullz/Desktop/Software_Comparison/ds001/FSL/LEVEL2/group.gfeat
(16, 1)
['pumps_demean', 'mot_1', 'mot_2', 'mot_3', 'mot_4', 'mot_5', 'mot_6']
Traceback (most recent call last):
  File "/usr/local/bin/nidmfsl", line 46, in <module>
    fslnidm.parse()
  File "/usr/local/lib/python2.7/site-packages/nidmfsl/fsl_exporter/fsl_exporter.py", line 143, in parse
    super(FSLtoNIDMExporter, self).parse()
  File "/usr/local/lib/python2.7/site-packages/nidmresults/exporter.py", line 97, in parse
    self.model_fittings = self._find_model_fitting()
  File "/usr/local/lib/python2.7/site-packages/nidmfsl/fsl_exporter/fsl_exporter.py", line 185, in _find_model_fitting
    design_matrix = self._get_design_matrix(analysis_dir)
  File "/usr/local/lib/python2.7/site-packages/nidmfsl/fsl_exporter/fsl_exporter.py", line 745, in _get_design_matrix
    str(len(real_ev)) + ')')
Exception: Inconsistency: number of columns in the design matrix (1) is not equal to number of regressor names (7)