-
Notifications
You must be signed in to change notification settings - Fork 95
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
[RF] Remove os.system calls to AFNI #40
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,11 +47,11 @@ def test_outputs(): | |
'T1gs.nii', | ||
'tsoc_orig.nii', | ||
'tsoc_nogs.nii', | ||
'.cc_temp.nii.gz', | ||
'.fcl_in.nii.gz', | ||
'.fcl_out.nii.gz', | ||
'__clin.nii.gz', | ||
'__clout.nii.gz', | ||
# '.cc_temp.nii.gz', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we just delete these, rather than commenting them out ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Definitely! I suppose I should have done that in the first place, but I wasn't confident this would work in a single shot. I'll remove them now. |
||
# '.fcl_in.nii.gz', | ||
# '.fcl_out.nii.gz', | ||
# '__clin.nii.gz', | ||
# '__clout.nii.gz', | ||
'veins_l0.nii', | ||
'veins_l1.nii', | ||
'ts_OC.nii', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if this is not true ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not so much "make sure" as it is "temporarily set voxel sizes to 1mm^3". That way the
min_cluster_size
argument represents the number of voxels we want in a cluster rather than the actual size of the cluster in mm^3. This was originally accomplished using3dmerge -dxyz=1
;nilearn.regions.connected_regions
does't have a comparable parameter.We could instead do some calculation of the actual voxel volume, but I wasn't sure how rounding errors would be treated. Moreover, temporarily resetting the affine should be okay because it (the affine) is discarded when the clustered data is loaded back in to memory:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, got it. Sorry, I misinterpreted the code comment ! I think that method totally makes sense. Would it be possible to update the comment ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely! Apologies for being so minimalist with them. I'll try to be a bit more descriptive in the future 😄