Open jungheejung opened 2 months ago
@Zizhuang-Miao Could I get your help on resolving this HED warning? It's the 3rd issue in the output above
[WARNING] HED_WARNING The validation on this HED string returned a warning.
/sub-0001/ses-01/func/sub-0001_ses-01_task-alignvideo_acq-mb8_run-01_events.tsv - WARNING: [UNITS_MISSING] No unit specified. Using "m" as the default - "X-position/45.62". TSV line: 11. (For more information on this HED warning, see https://hed-specification.readthedocs.io/en/latest/Appendix_B.html#units-missing.)
/sub-0001/ses-01/func/sub-0001_ses-01_task-alignvideo_acq-mb8_run-01_events.tsv - WARNING: [UNITS_MISSING] No unit specified. Using "m" as the default - "X-position/35.0". TSV line: 12. (For more information on this HED warning, see https://hed-specification.readthedocs.io/en/latest/Appendix_B.html#units-missing.)
75994 more files with the same issue
Please visit https://neurostars.org/search?q=HED_WARNING for existing conversations about this issue.
Currently, this is the key and value pair in the task-alignvideo_events.json
file
"response_value": {
"LongName": "The value of the rating",
"Description": "This value ranges from 0 ('Barely at all') to 100 ('Strongest imaginable'). Note that if the 'duration' of one rating event was 'n/a', the response value would also be 'n/a'.",
"HED": "(X-position/#, Agent-action, (Press, Mouse-button, Scroll-wheel))"
}
Moving forward, it would be nice to validate the HED tags on a HED validator, since running bids-validator on the entire data dataset can be inefficient for debugging purposes.
@jungheejung I looked into this issue and now I do not think this warning could be elegantly avoided. HED expects a tag that takes values to have a specified unit followed it (https://hed-specification.readthedocs.io/en/latest/03_HED_formats.html#tags-that-take-values; please also see examples in the 3.2.2 section right above it). In our experiments the rating values are either without units (a relative number between 0 and 100) or in the unit of pixels, while pixel is not in the list of allowed units in HED (https://hed-specification.readthedocs.io/en/latest/Appendix_A.html#a-1-1-unit-classes-and-units). I will suggest that we ignore this warning for now.
Awesome, appreciate you taking a look into this HED warning @Zizhuang-Miao . In that case, we'll ignore for now.
re 6
-- you say
Some runs are indeed shorter than expected, due to partial data collection (e.g. participant had issue with trackball, scanner failure etc)
but it seems not "scanner failure" since it is events file shorter than data file so data collection was fine. Overall, after you handle it (what about the other 60 ?) -- could be added to ignored I guess
[x] Error 1
[ERROR] HED_ERROR The validation on this HED string returned an error.
/task-social_events.json - ERROR: [TAG_EXTENSION_INVALID] "Data-property" appears as "Property/Data-property" and cannot be used as an extension.
Indices ([object Object], ). (For more information on this HED error, see https://hed-specification.readthedocs.io/en/latest/Appendix_B.html#tag-extension-invalid
.)
/task-social_events.json - ERROR: [TAG_EXTENSION_INVALID] "Data-property" appears as "Property/Data-property" and cannot be used as an extension.
Indices ([object Object], ). (For more information on this HED error, see https://hed-specification.readthedocs.io/en/latest/Appendix_B.html#tag-extension-invalid
.)
9269 more files with the same issue
Please visit https://neurostars.org/search?q=HED_ERROR for existing conversations about this issue.
[x] ERROR 2
[ERROR] NOT_INCLUDED 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/spacetop-prep/.github/ISSUE_TEMPLATE/
/code/spacetop-prep/spacetop_prep/
1 more files with the same issue
Please visit https://neurostars.org/search?q=NOT_INCLUDED for existing conversations about this issue.
[ ] ERROR 3
[ERROR] INTENDED_FOR 'IntendedFor' field needs to point to an existing file.
Files must be subject-relative paths or BIDS URIs.
/sub-0001/ses-01/fmap/sub-0001_ses-01_acq-mb8_dir-ap_run-01_epi.nii.gz
/sub-0001/ses-01/fmap/sub-0001_ses-01_acq-mb8_dir-pa_run-01_epi.nii.gz
188 more files with the same issue
Please visit https://neurostars.org/search?q=INTENDED_FOR for existing conversations about this issue.
[ ] ERROR 4
[ERROR] HED_INTERNAL_ERROR An internal error occurred during HED validation.
/sub-0001/ses-02/func/sub-0001_ses-02_task-faces_acq-mb8_run-01_events.tsv - ERROR: [GENERIC_ERROR] Internal error - message: "Attempting to access the onset of a TSV row without one.". (For more information on this HED error, see https://hed-specification.readthedocs.io/en/latest/Appendix_B.html#generic-error.)
/sub-0001/ses-02/func/sub-0001_ses-02_task-faces_acq-mb8_run-02_events.tsv - ERROR: [GENERIC_ERROR] Internal error - message: "Attempting to access the onset of a TSV row without one.". (For more information on this HED error, see https://hed-specification.readthedocs.io/en/latest/Appendix_B.html#generic-error.)
318 more files with the same issue
Please visit https://neurostars.org/search?q=HED_INTERNAL_ERROR for existing conversations about this issue.
[x] ERROR 5
[ERROR] STIMULUS_FILE_MISSING A stimulus file was declared but not found in the dataset.
/sub-0001/ses-03/func/sub-0001_ses-03_task-shortvideo_acq-mb8_run-01_events.tsv
/sub-0133/ses-03/func/sub-0133_ses-03_task-shortvideo_acq-mb8_run-01_events.tsv
121 more files with the same issue
Please visit https://neurostars.org/search?q=STIMULUS_FILE_MISSING for existing conversations about this issue.
SOLUTION: git grep -l task-shortvideos/ | xargs sed -i -e 's,task-shortvideos/,task-shortvideo/,g'
[ ] ERROR 6
[ERROR] EMPTY_FILE Empty files not allowed.
/sourcedata/d_beh/
Please visit https://neurostars.org/search?q=EMPTY_FILE for existing conversations about this issue.
Which module is this from?
datalad
What is the issue?
Deno validator warning and errors
What was your expected behavior?
Full pass with no errors
How can we reproduce this?
Code: https://github.com/bids-standard/bids-validator/issues/2129
Any additional context?
[x] 1
TODO
ISSUEJSON sidecar[x] 2 Potentially false alarm? https://github.com/bids-standard/bids-validator/issues/2128
[x] 3
IGNORE
HED tag in task-alignvideo. Unit and HED tag β Ignore for now. See comment by Zizhuang below: https://github.com/spatialtopology/spacetop-prep/issues/111#issuecomment-2346633631[x] 4
DONE
Add column descriptor in metadata .json to match events.tsv β double check by running deno[x] 5
DONE
task-fractional onset order sort β updated with commit 085cf88[ ] 6 Need specific files since these seem to be less systematic. N = 66 files #115 #110
To solve this issue above, I created a code to print list of runs that deviate from standard TR length. https://github.com/spatialtopology/spacetop-prep/blob/88a560c28dd8109df4c75f61a671f9c724f038bf/spacetop_prep/datalad/identify_shorterTR.py Some runs are indeed shorter than expected, due to partial data collection (e.g. participant had issue with trackball, scanner failure etc) Q. What's the best way moving forward? Adding info in scans.tsv? @yarikoptic
[ ] 7 SUSPICIOUSLY_LONG_EVENT_DESIGN The onset of the last event is after the total duration of the corresponding scan. Get actual list N = 12 #115 #110
[x] 8
TODO
sub-0009 task-narratives, no events data, just func. How to fix?[x] 9
TODO
task-fractional. Either name the task differently or temporarily remove the files[x] 10
DONE
[ ] 11
TODO
update Intended for. Need to runpopulate_indended_for
[x] NOT this issue
TODO
only the first trial has the task-alignvideo folder declared. Fix[ ]
[ ] 13 Not sure. Is it because it has 219 trials?
[x] 14
IGNORE
[x] 15
IGNORE
[x] 16
delete
If you have any questions, please post on https://neurostars.org/tags/bids.