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

Integrate into bids tree #30

Merged
merged 24 commits into from
Apr 26, 2023
Merged

Integrate into bids tree #30

merged 24 commits into from
Apr 26, 2023

Conversation

Arshitha
Copy link
Collaborator

Merging changes from eric-testing branch to main with this PR

ericearl and others added 23 commits April 11, 2023 03:35
Made the code work for my data.
Adds stable parallel/serial processing and BIDS-App style inputs.
Updated the CLI display block
- Changed and moved print statements in deface.py
- Removed chunksize arument from parallel processing
- Pulled keys in generate_mappings.py function when acqtime is present
- Update shutil.move() to use absolute paths
- Update the afni refacer cmd to use only one core, OMP_NUM_THREADS=1
Trying the pathlib Path.rename() function
Finally fixed the little shutil.move command
Broke a variable name during the last merge, fixed here
Hefty bunch of mini-edits to the README for this branch.
Wonderful additions!

Co-authored-by: Arshitha Basavaraj <[email protected]>
Accepting per suggestion.

Co-authored-by: Arshitha Basavaraj <[email protected]>
Accepting more per previous suggestion.

Co-authored-by: Arshitha Basavaraj <[email protected]>
- change participant_label and session_id to default to None
- add accompanying flow control logic for using None as the default
BIDS App preparation and serial/parallel behavior
@Arshitha Arshitha requested a review from ericearl April 25, 2023 21:12
@Arshitha
Copy link
Collaborator Author

@ericearl The branch protections I've configured for the repo requires at least one reviewer's approval. This PR is only merging eric-testing branch to main.

README.md Outdated
- **Other/Secondary Scans:** All scans *except* the primary scan are grouped together and referred to as "other" or
"secondary" scans for a given session.
- **Mapping File:** A JSON file that assigns/maps a primary scan (or `primary_t1`) to all other scans within a session.
Please find an example file [here](FILLINTHEBLANK).
Copy link
Member

Choose a reason for hiding this comment

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

@Arshitha Remember to FILLINTHEBLANK here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done!

2. Deface primary scans
with [@afni_refacer_run](https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/tutorials/refacer/refacer_run.html) program
developed by the AFNI Team.
3. To deface remaining scans in the session, register them to the primary scan (using FSL `flirt` command) and then use
the primary scan's defacemask to generate a defaced image (using `fslmaths` command).
4. Visually inspect defaced scans with [VisualQC](https://raamana.github.io/visualqc) deface tool or any other preferred
tool.
5. Correct/fix defaced scans that failed visual inspection. See [here]() for more info on types of failures.
5. Correct/fix defaced scans that failed visual inspection. See [here](FILLINTHEBLANK) for more info on types of failures.
Copy link
Member

Choose a reason for hiding this comment

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

FILLINTHEBLANK here too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ericearl This blank will be filled out in the upcoming PR. I'm putting together a google doc to put down types of failures and their fixes before updating the README.

Copy link
Member

@ericearl ericearl left a comment

Choose a reason for hiding this comment

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

The README needs two FILLINTHEBLANKs filled in. Beyond that, it looks ready!

@Arshitha Arshitha requested a review from ericearl April 26, 2023 13:54
Copy link
Member

@ericearl ericearl left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@Arshitha Arshitha merged commit b674e3c into main Apr 26, 2023
@Arshitha Arshitha deleted the integrate-into-bids-tree branch December 14, 2023 21:34
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.

2 participants