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 11 forks source link

Testing 5.0.10 #140

Closed TomMaullin closed 5 years ago

TomMaullin commented 5 years ago

What does this PR do?

This is a small PR which fixing a bug discovered when testing the current exporter against data from FSL 5.0.10. The bug was that the cluster table header for F contrasts can have either 5 or 7 columns depending on the type of analysis/contrast being recorded. Previously, only the case where 5 columns were present had been tested.

Link to relevant issues

PR submission checklist

pep8speaks commented 5 years ago

Hello @TomMaullin! Thanks for updating the PR.

Comment last updated on September 26, 2018 at 10:35 Hours UTC
TomMaullin commented 5 years ago

Hi @cmaumet ,

Following one small bug fix, I have managed to make sure that all NIDM-Results packs on the fsl_5.0.10 branch export. However, the cluster coordinates have come out slightly differently as we now use python code to derive them instead of the call to cluster. It can be seen in the logs however that they are very similar.

My suggestion would be to update the ground truth in fsl_5.0.10 to match what has been output here. What are your thoughts on this?

cmaumet commented 5 years ago

Hi @TomMaullin! Thanks for tracking this down! Updating the coordinates in the ground truth sounds fine but I thought we had already done it in https://github.com/incf-nidash/nidmresults-examples/pull/105?

TomMaullin commented 5 years ago

Hi @cmaumet , if I remember correctly we did this for the data generated by FSL 5.0.8. As only the group level nidmresults packs generated by FSL 5.0.8 had recorded cluster xyz coordinates, I suspect we only updated the ground truth for the group level analyses and not the subject level.

cmaumet commented 5 years ago

I had another look and the only modified ground truth is fsl_full_example001 which is a single-subject analysis https://github.com/incf-nidash/nidmresults-examples/pull/105/files. But thinking about it, all we might have to do is merge master into the 5.0.10 branch so that those changes to the ground truth are applied. Let me try!

cmaumet commented 5 years ago

@TomMaullin: I've just rebased https://github.com/incf-nidash/nidmresults-examples/pull/103 on master. Can you try running the test suite again?

TomMaullin commented 5 years ago

@cmaumet Ah yes apologies you're completely right! All tests pass! Is this branch okay to merge?

cmaumet commented 5 years ago

Great! Yes, let's merge! Can you just shortly document the small bug fix you made? Ideally, if you can edit the top comment in this PR that would be great! (It's easier to retrieve later on if the top comment is up to date with what was finally put in the PR).