Skip to content
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

More robust fetching of participants #420

Merged
merged 8 commits into from
Sep 16, 2021

Conversation

ghisvail
Copy link
Collaborator

@ghisvail ghisvail commented Sep 15, 2021

Check each commit for contextual information about what is solved individually.

Closes #419

@ghisvail ghisvail marked this pull request as ready for review September 15, 2021 17:25
@ghisvail
Copy link
Collaborator Author

All these commits turn the stack trace from #419 to a more appropriate ValueError: Empty dataset detected. Clinical data cannot be extracted.

@ghisvail
Copy link
Collaborator Author

Perhaps there is a more clever way to achieve this (feel free to chime in). Considering the complexity of the ADNI converter code base I believe that's the least invasive and safest way to solve #419.

The previous implementation fetched all directories within the BIDS path
regardless of whether their name matched the sub-* pattern. Directories
like `conversion_info` were wrongly listed as participant IDs later on.
Avoid potentiel KeyError due to missing session_id. This is more of a
stop gap fix. A proper solution would require a deeper rewrite of the
processing flow.
The converter used to interpret the absence of participants as a proxy
for converting all the clinical data implicitly. This is a problem in
case the conversion of the imaging data failed because no suitable data
were found. Instead, let's make this behavior explicit using the option
to request only the clinical data be processed.
@omar-rifai omar-rifai merged commit 7521cd6 into aramis-lab:dev Sep 16, 2021
@ghisvail ghisvail deleted the fix-issue-419 branch September 17, 2021 07:00
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.

Adni-to-bids: Error on empty dataframe (missing ADNIMERGE data)
2 participants