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

DOC: Fix documentation and description for init_bold_grayords_wf #3051

Merged
merged 5 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,11 @@
"name": "Blair, Ross W.",
"orcid": "0000-0003-3007-1056"
},
{
Shotgunosine marked this conversation as resolved.
Show resolved Hide resolved
"affiliation": "Machine Learning Team, National Institute of Mental Health",
"name": "Nielson, Dylan M.",
"orcid": "0000-0003-4613-6643"
},
{
"affiliation": "Department of Psychology, Stanford University",
"name": "Poldrack, Russell A.",
Expand Down
21 changes: 12 additions & 9 deletions fmriprep/workflows/bold/resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1241,19 +1241,20 @@ def init_bold_grayords_wf(
Either ``"91k"`` or ``"170k"``, representing the total *grayordinates*.
mem_gb : :obj:`float`
Size of BOLD file in GB
repetition_time : :obj:`float`
Repetition time in seconds
name : :obj:`str`
Unique name for the subworkflow (default: ``"bold_grayords_wf"``)

Inputs
------
bold_fsLR : :obj:`str`
List of paths to BOLD series resampled as functional GIFTI files in fsLR space
bold_std : :obj:`str`
List of BOLD conversions to standard spaces.
spatial_reference : :obj:`str`
List of unique identifiers corresponding to the BOLD standard-conversions.
surf_files : :obj:`str`
List of BOLD files resampled on the fsaverage (ico7) surfaces.
surf_refs :
List of unique identifiers corresponding to the BOLD surface-conversions.


Outputs
-------
Expand All @@ -1268,16 +1269,18 @@ def init_bold_grayords_wf(
from niworkflows.interfaces.utility import KeySelect

workflow = Workflow(name=name)

mni_density = "2" if grayord_density == "91k" else "1"
mgxd marked this conversation as resolved.
Show resolved Hide resolved

workflow.__desc__ = """\
*Grayordinates* files [@hcppipelines] containing {density} samples were also
generated using the highest-resolution ``fsaverage`` as intermediate standardized
surface space.
generated with surface data transformed directly to fsLR space and subcortical
data transformed to {mni_density} mm resolution MNI152NLin6Asym space.
""".format(
density=grayord_density
density=grayord_density,
mni_density=mni_density
)

mni_density = "2" if grayord_density == "91k" else "1"

inputnode = pe.Node(
niu.IdentityInterface(
fields=[
Expand Down