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

ENH: Confounds metadata #1708

Merged
merged 9 commits into from Sep 24, 2019
Merged

ENH: Confounds metadata #1708

merged 9 commits into from Sep 24, 2019

Conversation

rciric
Copy link
Contributor

@rciric rciric commented Jul 20, 2019

@rciric rciric changed the title Confounds metadata [ENH] Confounds metadata Jul 20, 2019
@oesteban oesteban changed the title [ENH] Confounds metadata ENH: Confounds metadata Sep 11, 2019
@oesteban
Copy link
Member

oesteban commented Sep 12, 2019 via email

@effigies
Copy link
Member

effigies commented Sep 12, 2019

Maybe a good candidate for repackaging as a niflow (so we don't have to worry about perceived authorship, as we would if we just packaged up AROMA and pushed it without @maartenmennes' blessing)? Is there anything besides version numbering that we actually need to update in the short term? If not, we can target a hackathon where there are two or three of us who are familiar with nipype and AROMA to just get the thing done.

As for determining the version dynamically, perhaps we can do a diff between releases and see if we can find a characteristic string or object that can be used as an indicator of the version.

@oesteban
Copy link
Member

Just to note: this PR is still failing (https://circleci.com/gh/poldracklab/fmriprep/9634). It doesn't look like a big deal.

Node: fmriprep_wf.single_subject_01_wf.func_preproc_task_mixedgamblestask_run_02_wf.ica_aroma_wf.ica_aroma_metadata_fmt
Working directory: /scratch/fmriprep_wf/single_subject_01_wf/func_preproc_task_mixedgamblestask_run_02_wf/ica_aroma_wf/ica_aroma_metadata_fmt

Node inputs:

additional_metadata = {'Method': {'Name': 'ICA-AROMA', 'Version': '0.4.4-beta'}}
drop_columns = None
enforce_case = True
in_file = /scratch/fmriprep_wf/single_subject_01_wf/func_preproc_task_mixedgamblestask_run_02_wf/ica_aroma_wf/ica_aroma_confound_extraction/classification_overview.tsv
index_column = IC
output = None

Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/legacymultiproc.py", line 69, in run_node
    result['result'] = node.run(updatehash=updatehash)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 473, in run
    result = self._run_interface(execute=True)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 564, in _run_interface
    return self._run_command(execute)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 649, in _run_command
    result = self._interface.run(cwd=outdir)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 376, in run
    runtime = self._run_interface(runtime)
  File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/interfaces/utils.py", line 822, in _run_interface
    enforce_case=self.inputs.enforce_case
  File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/interfaces/utils.py", line 879, in _tsv2json
    tsv_data[k] = v
  File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/core/frame.py", line 3119, in __setitem__
    self._set_item(key, value)
  File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/core/frame.py", line 3194, in _set_item
    value = self._sanitize_column(key, value)
  File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/core/frame.py", line 3391, in _sanitize_column
    value = _sanitize_index(value, self.index, copy=False)
  File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/core/series.py", line 4001, in _sanitize_index
    raise ValueError('Length of values does not match length of ' 'index')
ValueError: Length of values does not match length of index

@oesteban oesteban merged commit c7c428c into nipreps:master Sep 24, 2019
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

Successfully merging this pull request may close these issues.

Write out metadata about ICA-AROMA regressors Write out metadata about Global Signal regressors
4 participants