-
Notifications
You must be signed in to change notification settings - Fork 109
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: Finish qMRI file-level rules #1186
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1186 +/- ##
==========================================
+ Coverage 79.07% 79.09% +0.02%
==========================================
Files 78 78
Lines 2619 2622 +3
Branches 598 598
==========================================
+ Hits 2071 2074 +3
Misses 407 407
Partials 141 141
Continue to review full report at Codecov.
|
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.
I don't know how important that extra ?
is, but it's also missing from the pattern for _TB1DAM
.
Co-authored-by: Taylor Salo <tsalo006@fiu.edu>
|
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.
I tested this PR on the qMRI examples PR, and there are some errors left:
1: [WARN] The Authors field of dataset_description.json should contain an array of fields - with one author per field. This was triggered because there are no authors, which will make DOI registration from dataset metadata impossible. (code: 113 - NO_AUTHORS)
Please visit https://neurostars.org/search?q=NO_AUTHORS for existing conversations about this issue.
Summary: Available Tasks: Available Modalities:
9 Files, 436B MP2RAGE
1 - Subject defacemask
1 - Session
If you have any questions, please post on https://neurostars.org/tags/bids.
Validating dataset qmri_mp2rageme/
bids-validator@1.6.2-dev.0
1: [ERR] Files with such naming scheme are not part of BIDS specification. This error is most commonly caused by typos in file names that make them not BIDS compatible. Please consult the specification and make sure your files are named correctly. If this is not a file naming issue (for example when including files not yet covered by the BIDS specification) you should include a ".bidsignore" file in your dataset (see https://github.com/bids-standard/bids-validator#bidsignore for details). Please note that derived (processed) data should be placed in /derivatives folder and source data (such as DICOMS or behavioural logs in proprietary formats) should be placed in the /sourcedata folder. (code: 1 - NOT_INCLUDED)
./sub-1/fmap/sub-1_TB1map.json
Evidence: sub-1_TB1map.json
./sub-1/fmap/sub-1_TB1map.nii
Evidence: sub-1_TB1map.nii
Please visit https://neurostars.org/search?q=NOT_INCLUDED for existing conversations about this issue.
1: [WARN] The Authors field of dataset_description.json should contain an array of fields - with one author per field. This was triggered because there are no authors, which will make DOI registration from dataset metadata impossible. (code: 113 - NO_AUTHORS)
Please visit https://neurostars.org/search?q=NO_AUTHORS for existing conversations about this issue.
Summary: Available Tasks: Available Modalities:
19 Files, 1.55KB MP2RAGE
1 - Subject
1 - Session
If you have any questions, please post on https://neurostars.org/tags/bids.
Validating dataset qmri_mpm/
bids-validator@1.6.2-dev.0
1: [ERR] Files with such naming scheme are not part of BIDS specification. This error is most commonly caused by typos in file names that make them not BIDS compatible. Please consult the specification and make sure your files are named correctly. If this is not a file naming issue (for example when including files not yet covered by the BIDS specification) you should include a ".bidsignore" file in your dataset (see https://github.com/bids-standard/bids-validator#bidsignore for details). Please note that derived (processed) data should be placed in /derivatives folder and source data (such as DICOMS or behavioural logs in proprietary formats) should be placed in the /sourcedata folder. (code: 1 - NOT_INCLUDED)
./sub-01/fmap/sub-01_acq-bodyMTw_RB1COR.json
Evidence: sub-01_acq-bodyMTw_RB1COR.json
./sub-01/fmap/sub-01_acq-bodyMTw_RB1COR.nii
Evidence: sub-01_acq-bodyMTw_RB1COR.nii
./sub-01/fmap/sub-01_acq-bodyPDw_RB1COR.json
Evidence: sub-01_acq-bodyPDw_RB1COR.json
./sub-01/fmap/sub-01_acq-bodyPDw_RB1COR.nii
Evidence: sub-01_acq-bodyPDw_RB1COR.nii
./sub-01/fmap/sub-01_acq-bodyT1w_RB1COR.json
Evidence: sub-01_acq-bodyT1w_RB1COR.json
./sub-01/fmap/sub-01_acq-bodyT1w_RB1COR.nii
Evidence: sub-01_acq-bodyT1w_RB1COR.nii
./sub-01/fmap/sub-01_acq-headMTw_RB1COR.json
Evidence: sub-01_acq-headMTw_RB1COR.json
./sub-01/fmap/sub-01_acq-headMTw_RB1COR.nii
Evidence: sub-01_acq-headMTw_RB1COR.nii
./sub-01/fmap/sub-01_acq-headPDw_RB1COR.json
Evidence: sub-01_acq-headPDw_RB1COR.json
./sub-01/fmap/sub-01_acq-headPDw_RB1COR.nii
Evidence: sub-01_acq-headPDw_RB1COR.nii
... and 2 more files having this issue (Use --verbose to see them all).
Please visit https://neurostars.org/search?q=NOT_INCLUDED for existing conversations about this issue.
1: [WARN] 'TotalReadoutTime' is greater than 10 are you sure it's expressed in seconds? (code: 5 - TOTAL_READOUT_TIME_GREATER_THAN)
./sub-01/fmap/sub-01_echo-1_flip-01_TB1EPI.json
./sub-01/fmap/sub-01_echo-1_flip-02_TB1EPI.json
./sub-01/fmap/sub-01_echo-1_flip-03_TB1EPI.json
./sub-01/fmap/sub-01_echo-1_flip-04_TB1EPI.json
./sub-01/fmap/sub-01_echo-1_flip-05_TB1EPI.json
./sub-01/fmap/sub-01_echo-1_flip-06_TB1EPI.json
./sub-01/fmap/sub-01_echo-1_flip-07_TB1EPI.json
./sub-01/fmap/sub-01_echo-1_flip-08_TB1EPI.json
./sub-01/fmap/sub-01_echo-1_flip-09_TB1EPI.json
./sub-01/fmap/sub-01_echo-1_flip-10_TB1EPI.json
... and 12 more files having this issue (Use --verbose to see them all).
Please visit https://neurostars.org/search?q=TOTAL_READOUT_TIME_GREATER_THAN for existing conversations about this issue.
2: [WARN] The Authors field of dataset_description.json should contain an array of fields - with one author per field. This was triggered based on the presence of only one author field. Please ignore if all contributors are already properly listed. (code: 102 - TOO_FEW_AUTHORS)
Please visit https://neurostars.org/search?q=TOO_FEW_AUTHORS for existing conversations about this issue.
Summary: Available Tasks: Available Modalities:
108 Files, 54.84KB MPM
1 - Subject TB1EPI
1 - Session fieldmap
If you have any questions, please post on https://neurostars.org/tags/bids.
Validating dataset qmri_mtsat/
bids-validator@1.6.2-dev.0
1: [WARN] The Authors field of dataset_description.json should contain an array of fields - with one author per field. This was triggered based on the presence of only one author field. Please ignore if all contributors are already properly listed. (code: 102 - TOO_FEW_AUTHORS)
Please visit https://neurostars.org/search?q=TOO_FEW_AUTHORS for existing conversations about this issue.
Summary: Available Tasks: Available Modalities:
8 Files, 532B MTS
1 - Subject
1 - Session
If you have any questions, please post on https://neurostars.org/tags/bids.
Validating dataset qmri_qsm/
bids-validator@1.6.2-dev.0
1: [WARN] The Authors field of dataset_description.json should contain an array of fields - with one author per field. This was triggered based on the presence of only one author field. Please ignore if all contributors are already properly listed. (code: 102 - TOO_FEW_AUTHORS)
Please visit https://neurostars.org/search?q=TOO_FEW_AUTHORS for existing conversations about this issue.
Summary: Available Tasks: Available Modalities:
4 Files, 864B Chimap
1 - Subject
1 - Session
If you have any questions, please post on https://neurostars.org/tags/bids.
Validating dataset qmri_sa2rage/
bids-validator@1.6.2-dev.0
1: [ERR] Files with such naming scheme are not part of BIDS specification. This error is most commonly caused by typos in file names that make them not BIDS compatible. Please consult the specification and make sure your files are named correctly. If this is not a file naming issue (for example when including files not yet covered by the BIDS specification) you should include a ".bidsignore" file in your dataset (see https://github.com/bids-standard/bids-validator#bidsignore for details). Please note that derived (processed) data should be placed in /derivatives folder and source data (such as DICOMS or behavioural logs in proprietary formats) should be placed in the /sourcedata folder. (code: 1 - NOT_INCLUDED)
./sub-01/fmap/sub-01_acq-td1_TB1SRGE.json
Evidence: sub-01_acq-td1_TB1SRGE.json
./sub-01/fmap/sub-01_acq-td1_TB1SRGE.nii.gz
Evidence: sub-01_acq-td1_TB1SRGE.nii.gz
./sub-01/fmap/sub-01_acq-td2_TB1SRGE.json
Evidence: sub-01_acq-td2_TB1SRGE.json
./sub-01/fmap/sub-01_acq-td2_TB1SRGE.nii.gz
Evidence: sub-01_acq-td2_TB1SRGE.nii.gz
Please visit https://neurostars.org/search?q=NOT_INCLUDED for existing conversations about this issue.
1: [WARN] The Authors field of dataset_description.json should contain an array of fields - with one author per field. This was triggered because there are no authors, which will make DOI registration from dataset metadata impossible. (code: 113 - NO_AUTHORS)
Please visit https://neurostars.org/search?q=NO_AUTHORS for existing conversations about this issue.
Summary: Available Tasks: Available Modalities:
10 Files, 216.04KB MP2RAGE
1 - Subject
1 - Session
If you have any questions, please post on https://neurostars.org/tags/bids.
Validating dataset qmri_vfa/
bids-validator@1.6.2-dev.0
1: [ERR] Files with such naming scheme are not part of BIDS specification. This error is most commonly caused by typos in file names that make them not BIDS compatible. Please consult the specification and make sure your files are named correctly. If this is not a file naming issue (for example when including files not yet covered by the BIDS specification) you should include a ".bidsignore" file in your dataset (see https://github.com/bids-standard/bids-validator#bidsignore for details). Please note that derived (processed) data should be placed in /derivatives folder and source data (such as DICOMS or behavioural logs in proprietary formats) should be placed in the /sourcedata folder. (code: 1 - NOT_INCLUDED)
./sub-01/fmap/sub-01_TB1map.json
Evidence: sub-01_TB1map.json
./sub-01/fmap/sub-01_TB1map.nii.gz
Evidence: sub-01_TB1map.nii.gz
Please visit https://neurostars.org/search?q=NOT_INCLUDED for existing conversations about this issue.
1: [WARN] The Authors field of dataset_description.json should contain an array of fields - with one author per field. This was triggered based on the presence of only one author field. Please ignore if all contributors are already properly listed. (code: 102 - TOO_FEW_AUTHORS)
Please visit https://neurostars.org/search?q=TOO_FEW_AUTHORS for existing conversations about this issue.
Summary: Available Tasks: Available Modalities:
8 Files, 865B VFA
1 - Subject
1 - Session
If you have any questions, please post on https://neurostars.org/tags/bids.
In particular:
--> some qmri datasets are passing now 🎉
f714d63 fixes the errors reported above, except for: |
6058d9e fixes the remaining issue. The auto style fix has obscured the diff, but this was the essential change: - ?_flip-[0-9]+?_inv-[0-9]+?
+ ?(?:_flip-[0-9]+)?(?:_inv-[0-9]+)? In case this fix was wrong, we can revert it ... and fix the dataset instead. In case this fix was fine, we can merge this and then we're almost done (only warnings of two kinds remaining for the qMRI examples). @tsalo @effigies |
Thanks @sappelhoff! Apologies if this came up elsewhere, but are we sure that the examples are right? |
Not sure 😞 |
@agahkarakuzu @Gilles86 can you shed some light on this, please? |
I added flip/inv to the example dataset. |
@sappelhoff I am also working on the example datasets on my fork (https://github.com/agahkarakuzu/BIDS-examples/tree/qmri), but had some issues with syncing changes with the validator. As for TB1SRGE, |
Thanks @effigies - and as @agahkarakuzu mentioned right afterwards, this was good:
Now we just need to:
Perhaps we can merge @effigies's PR into the https://github.com/bids-standard/bids-examples/tree/bep001_qmri branch first, instead of WDYT? |
This reverts commit 6058d9e.
Stefan, please feel free to do what you think necessary. I'll make you an admin on my forks of validator and examples. |
conditionalMatch(fmapTB1EPI, path))) || | ||
conditionalMatch(fmaprf, path) || | ||
conditionalMatch(fmapTB1SRGE, path) || | ||
conditionalMatch(fmapparametric, path) |
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.
Just a quick note that if this logic doesn't work, the idea is just find all files that match isFieldMap
and aren't JSON. The original parenthesis pattern could be restored.
* ENH: Finish qMRI file-level rules * TB1RMF -> TB1RFM * Apply suggestions from code review Co-authored-by: Taylor Salo <tsalo006@fiu.edu> * add regexps to typs.js * make flip and inv optional for TB1SRGE * Revert "make flip and inv optional for TB1SRGE" This reverts commit 6058d9e. Co-authored-by: Taylor Salo <tsalo006@fiu.edu> Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
Partner PR to bids-standard/bids-specification#728. If that goes in without modification, this should be able to as well.