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

Add options for sub-folder and for func sesssions #88

Merged
merged 3 commits into from
May 18, 2024
Merged

Conversation

sandrinebedard
Copy link
Member

Description

I add the option for the func sub-folder in utils.py

I also add the option for a sub-folder in the path-img, but maybe we do not want that! A better solution for this is to get the image path not by recreating it.

Related issues: #81

@rohanbanerjee rohanbanerjee self-requested a review April 26, 2024 07:24
Copy link
Contributor

@rohanbanerjee rohanbanerjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Copy link
Contributor

@rohanbanerjee rohanbanerjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Tested on functional data and the script works as expected.

@rohanbanerjee rohanbanerjee merged commit 7242702 into main May 18, 2024
1 check passed
@rohanbanerjee rohanbanerjee deleted the sb/fix-func branch May 18, 2024 20:46
Comment on lines +593 to +594
print(os.path.isfile(fname_label))
print('fname_label', fname_label)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rohanbanerjee, these two prints might be removed, right? I guess they were used for debugging.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, missed on removing them. On it.

@@ -897,6 +1022,7 @@ def main():
# a JSON file
update_json(fname_out, name_rater, json_metadata)
# Generate QC report
#generate_qc(fname, fname_out, task, fname_qc, subject, args.config, args.qc_lesion_plane, suffix_dict)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rohanbanerjee, I believe that this line was commented on only for debugging the fmri case. In other cases, we want to generate QC. Thus, I believe a condition checking if contrast = 'func' should be added here.

@@ -215,6 +215,12 @@ def get_parser():
type=str,
default=None
)
parser.add_argument( #TODO
'-add-subfolder',
help="Add a subfolder to find labels or segmentation to correct",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example(s) should be added here

@valosekj
Copy link
Member

Thanks for the review @rohanbanerjee! However, I left a few comments which need to be adrrresed.

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.

3 participants