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

Manualseg #34

Merged
merged 9 commits into from
Mar 7, 2021
Merged

Manualseg #34

merged 9 commits into from
Mar 7, 2021

Conversation

akhanf
Copy link
Member

@akhanf akhanf commented Feb 11, 2021

fixes to get manual seg import working again

Was combining nnunet tissue seg with subfields, instead of
post-processed tissue seg with subfields. Probably had a
minor effect on the final dseg, but fixed now anyways
autotop rule for man segs needed updating, and the
nnunet rules file is now only included if manual segs
are not used.
@jordandekraker
Copy link
Collaborator

does this require a fresh install?

@akhanf
Copy link
Member Author

akhanf commented Feb 11, 2021 via email

jordandekraker and others added 4 commits February 19, 2021 09:09
even when running on a manual segmentation
This reverts commit 9ef446b.
@akhanf
Copy link
Member Author

akhanf commented Feb 25, 2021

@jordandekraker I reverted your two recent commits since they're not related to manual seg input..
It is def get_autotop_inputseg_cmd and rule run_autotop_inputseg that are invoked when manual segs are used, which does pass an image too..

Can you check to make sure your data is named as in the test dataset and you can do a dry run like below but on your data?

hippunfold test_data/bids_segT2w/ /tmp/test_out participant -np --modality segT2w

@jordandekraker
Copy link
Collaborator

I think this problem is solved now with 3668df2

@akhanf
Copy link
Member Author

akhanf commented Mar 7, 2021

Sounds good I'll merge this in

@akhanf akhanf merged commit 5f5b76f into master Mar 7, 2021
@akhanf akhanf deleted the manualseg branch March 7, 2021 16:37
@jordandekraker
Copy link
Collaborator

Unfortunately this seems to have broken again :/

Building DAG of jobs...
MissingInputException in line 38 of /scratch/jdekrake/HippUnfold/hippunfold/hippunfold/workflow/rules/autotop.smk:
Missing input files for rule run_autotop:

work/sub-001/seg_segT2w/sub-001_hemi-Lflip_space-corobl_desc-nnunet_dseg.nii.gz

Traceback (most recent call last):
  File "/scratch/jdekrake/HippUnfold/venv/bin/hippunfold", line 33, in <module>
    sys.exit(load_entry_point('hippunfold', 'console_scripts', 'hippunfold')())
  File "/scratch/jdekrake/HippUnfold/hippunfold/hippunfold/run.py", line 14, in main
    app.run_snakemake()
  File "/scratch/jdekrake/HippUnfold/venv/lib/python3.7/site-packages/snakebids/app.py", line 209, in run_snakemake
    run(snakemake_cmd)
  File "/scratch/jdekrake/HippUnfold/venv/lib/python3.7/site-packages/snakebids/app.py", line 41, in run
    raise Exception("Non zero return code: %d"%process.returncode)
Exception: Non zero return code: 1

When I use this with actual data, a /results directory is created but no /work directory.

If i remember correctly, manual segs would be put into the /work directory with the name sub-001_hemi-Lflip_space-corobl_desc-nnunet_dseg.nii.gz. Could perhaps be that because nnunet.smk is no longer being called, this file is not being recognized as a dependency for autotop.smk and therefore the preprocessing is also not recognized as a dependency?

@akhanf
Copy link
Member Author

akhanf commented Apr 20, 2021

hmm let me take a look -- I set aside some time now for hippunfold stuff, so good timing!
Are you using manual segs naming like the bids_segT2w test dataset?

@akhanf
Copy link
Member Author

akhanf commented Apr 20, 2021

just tried it is failing for that bids test dataset too -- looks like I never added that test case which is why it slipped it -- anyways will have a look to fix it now!

@jordandekraker
Copy link
Collaborator

sorry just realize that I didn't copy the command for the error above - it was the test case code. But this seems to be working now, thanks for taking a look and the quick fix!

@akhanf
Copy link
Member Author

akhanf commented Apr 21, 2021 via email

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