Skip to content

warp fields are not created without this change and the workflow fails silently #838

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

Closed
wants to merge 1 commit into from

Conversation

chrisgorgo
Copy link
Member

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 33073f9 on chrisfilo:fix/apply_warp into cba8e41 on nipy:master.

@satra
Copy link
Member

satra commented Apr 28, 2014

if this is required then the connections to warping stage are incorrect - it uses the field file. we need to check the workfow then.

@chrisgorgo
Copy link
Member Author

The problem is that applywarp will not complain if it does not get a warp -
it will just resample the image. So even though there is a connection
nothing was passed along it because FNIRT did not produce the warp fields.
That's why this but went unnoticed.

On Mon, Apr 28, 2014 at 4:58 PM, Satrajit Ghosh notifications@github.comwrote:

if this is required then the connections to warping stage are incorrect -
it uses the field file. we need to check the workfow then.


Reply to this email directly or view it on GitHubhttps://github.com//pull/838#issuecomment-41568362
.

@satra
Copy link
Member

satra commented Apr 28, 2014

i mean the field_file is different from the fieldcoeff_file and it was passing along the field_file which may be incorrect!

@satra
Copy link
Member

satra commented Apr 28, 2014

so we should check the workflow to see what the outputs look like.

@mwaskom
Copy link
Member

mwaskom commented Apr 28, 2014

Ah, can confirm that I've had to do this in my warp workflow too: https://github.com/mwaskom/lyman/blob/master/lyman/workflows/anatwarp.py#L97

@thelxinoe
Copy link

I'm not sure whether another bug or not but I just wanted to point out that the fsl registration in the workflows is wrong as well:

anat2target_nonlinear = pe.Node(fsl.FNIRT(), name='anat2target_nonlinear')

They all use field and none of the warping is instigated.

@satra
Copy link
Member

satra commented Apr 29, 2014

@thelxinoe - i believe it's a bug - since i originally wrote that bit, i will look into it tomorrow and fix it.

@chrisgorgo
Copy link
Member Author

To avoid such mistakes in the future maybe we should make "field" input of ApplyWarp mandatory and use ApplyXfm instead of ApplyWarp for linear only transformations?

@mwaskom mwaskom closed this Apr 30, 2014
@mwaskom mwaskom reopened this Apr 30, 2014
@thelxinoe
Copy link

I fixed this, I'm using the workflow, just by turning on fieldcoeff_file = True and replacing field_file with fieldcoeff_file.

I also noticed that there is a mistake at the beginning of the same workflow where the non-bet structural image is used for mean registration. This doesn't really work.

register.connect(inputnode, 'anatomical_image', mean2anat, 'reference')

Should I submit them?

@chrisgorgo
Copy link
Member Author

Please do. Thank you for your contributions. We have found the same
BET/FLIRT issue in BIPs - will fix it too.

On Thu, May 1, 2014 at 12:29 PM, thelxinoe notifications@github.com wrote:

I fixed this, I'm using the workflow, just by turning on fieldcoeff_file =
True and replacing field_file with fieldcoeff_file.

I also noticed that there is a mistake at the beginning of the same
workflow where the non-bet structural image is used for mean registration.
This doesn't really work.

register.connect(inputnode, 'anatomical_image', mean2anat, 'reference')

I'm just checking that they work but should I submit them?


Reply to this email directly or view it on GitHubhttps://github.com//pull/838#issuecomment-41898493
.

@thelxinoe
Copy link

Okay, I noticed a couple of other faults I'll submit them in a bit. Thanks.

@thelxinoe
Copy link

Okay, I found a number of bugs with respects to FSL and the application of certain affine matrices. It seems they can only be applied with flirt and not applywarp or applyxfm4d.

I'll rewrite tomorrow to reflect this.

@chrisgorgo
Copy link
Member Author

Thanks!

On Thu, May 1, 2014 at 7:05 PM, thelxinoe notifications@github.com wrote:

Okay, I found a number of bugs with respects to FSL and the application of
certain affine matrices. It seems they can only be applied with flirt and
not applywarp or applyxfm4d.

I'll rewrite tomorrow to reflect this.


Reply to this email directly or view it on GitHubhttps://github.com//pull/838#issuecomment-41930713
.

@satra
Copy link
Member

satra commented Jul 15, 2014

any updates on this?

@thelxinoe
Copy link

I think the fix has been accepted?
On 15 Jul 2014 01:44, "Satrajit Ghosh" notifications@github.com wrote:

any updates on this?


Reply to this email directly or view it on GitHub
#838 (comment).

@satra
Copy link
Member

satra commented Jul 15, 2014

closing this one. this fax has been accepted and a newer set of patches is now available #877

@satra satra closed this Jul 15, 2014
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.

5 participants