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 data and commands for lesion-analysis tutorial #21

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

valosekj
Copy link
Member

@valosekj valosekj commented Sep 7, 2024

This PR corresponds to the SCT PR spinalcordtoolbox/spinalcordtoolbox#4586.

  • New sct_deepseg -task seg_sc_lesion_t2w_sci and sct_analyze_lesion commands added to the batch_single_subject.sh script
  • Resulting files added to the tutorial-datasets.csv file (which will add them to .zip archives)

The following files have been added:

  • t2_lesion/t2.nii.gz - T2w image with fake lesion
  • t2_sc_seg.nii.gz - SC segmentation generated using SCIsegV2
  • t2_lesion_seg.nii.gz - lesion segmentation generated using SCIsegV2

 - t2_lesion/t2.nii.gz - T2w image with fake lesion
 - t2_sc_seg.nii.gz - SC segmentation generated using SCIsegV2
 - t2_lesion_seg.nii.gz - lesion segmentation generated using SCIsegV2
Copy link
Member

@joshuacwnewton joshuacwnewton left a comment

Choose a reason for hiding this comment

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

LGTM!

(In the future, I think it would be okay to commit directly to master for sct_tutorial_data PRs, and then update the specific data link for the tutorial in the PR to https://github.com/spinalcordtoolbox/sct_tutorial_data/archive/refs/heads/master.zip. This link will contain all of the data, but it will function the same as the individual link for the purposes of testing the PR, since we plan to cd into the t2_lesion folder anyway.)

The reason I suggest this is that I think we can use the SCT PR as the main "review/approval" site? We can link to the sct_tutorial_data commit for reference. Plus, the sct_tutorial_data changes tend to be pretty simple/straightforward, and if any changes are needed, we can always git rebase the master branch to amend the commit.

I think we can be strict about committing to master for SCT, but be lax on the "side" repos, that way we don't hold up any of the bigger reviews.

@valosekj
Copy link
Member Author

valosekj commented Sep 9, 2024

Thanks, Joshua! Agree.

However, it seems I'm not authorized to merge this PR:

image

@joshuacwnewton joshuacwnewton merged commit 4bf0018 into master Sep 9, 2024
2 checks passed
@joshuacwnewton joshuacwnewton deleted the jv/add_data_for_sct_analyze_lesion_tutorial branch September 9, 2024 17:55
valosekj added a commit to spinalcordtoolbox/spinalcordtoolbox that referenced this pull request Sep 10, 2024
joshuacwnewton pushed a commit that referenced this pull request Sep 19, 2024
* Add new files:
 - t2_lesion/t2.nii.gz - T2w image with fake lesion
 - t2_sc_seg.nii.gz - SC segmentation generated using SCIsegV2
 - t2_lesion_seg.nii.gz - lesion segmentation generated using SCIsegV2

* batch_single_subject.sh: Update with lesion-analysis

* tutorial-datasets.csv: Update with lesion data
joshuacwnewton pushed a commit that referenced this pull request Sep 19, 2024
* Add new files:
 - t2_lesion/t2.nii.gz - T2w image with fake lesion
 - t2_sc_seg.nii.gz - SC segmentation generated using SCIsegV2
 - t2_lesion_seg.nii.gz - lesion segmentation generated using SCIsegV2

* batch_single_subject.sh: Update with lesion-analysis

* tutorial-datasets.csv: Update with lesion data
joshuacwnewton added a commit to spinalcordtoolbox/spinalcordtoolbox that referenced this pull request Sep 19, 2024
## Description

This PR adds a new [lesion-analysis
tutorial](https://spinalcordtoolbox--4586.org.readthedocs.build/user_section/tutorials/lesion-analysis.html).

Figures were pushed in a [parallel
PR](spinalcordtoolbox/doc-figures#6) to
[spinalcordtoolbox/doc-figures](https://github.com/spinalcordtoolbox/doc-figures).
Data were pushed in
spinalcordtoolbox/sct_tutorial_data#21 and
spinalcordtoolbox/sct_tutorial_data@d1e7c20.

## Linked issues

Resolves:
#4575

---------

Co-authored-by: Mathieu Guay-Paquet <mathieu.guay-paquet@polymtl.ca>
Co-authored-by: Sandrine Bédard <71230552+sandrinebedard@users.noreply.github.com>
Co-authored-by: Julien Cohen-Adad <jcohen@polymtl.ca>
Co-authored-by: Joshua Newton <joshuacwnewton@gmail.com>
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