-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
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
@ericearl The branch protections I've configured for the repo requires at least one reviewer's approval. This PR is only merging |
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). |
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.
@Arshitha Remember to FILLINTHEBLANK here.
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.
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. |
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.
FILLINTHEBLANK here too.
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.
@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.
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.
The README needs two FILLINTHEBLANKs filled in. Beyond that, it looks ready!
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.
Looks great, thanks!
Merging changes from
eric-testing
branch to main with this PR