-
Notifications
You must be signed in to change notification settings - Fork 0
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
Mackenzie/include alternate modalities #13
base: djay/docker
Are you sure you want to change the base?
Mackenzie/include alternate modalities #13
Conversation
@mackenziesnyder Can you please update the DAG in the |
@Dhananjhay I added the DAG in the latest commit |
Perfect, looks great!
Once you are done with this remaining task I think we'd be in a good shape to merge the branch. @ataha24 What do you think? |
autoafids/config/snakebids.yml
Outdated
@@ -89,7 +89,7 @@ parse_args: | |||
default: '100' # Default to 1 | |||
|
|||
--modality: | |||
help: 'Specify the template to use (e.g., T1w or T2w).' | |||
help: 'Specify the modality to use (e.g., T1w or T2w).' |
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.
I would say either t1w or alternative (SynthSR conversion). This is mainly because SynthSR would support any MRI not just t2w. What do you guys think? Open to finding a better name 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.
Ok I think 'alternative' makes the most sense - I think I have to do a few other changes because in rule SynthSR I hard coded the suffix to look for t2w since I previously thought we needed a template for each and we only had t1w and t2w. Is this something you want implemented as well @ataha24? I will just have to add these to the config - what would the suffixes for the other modalities be?
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.
Here are some related qs that arise that we can think about together. Probably best to dicuss more on a quick call!
- What should the behaviour for this rule be when there are multiple files BUT no T1w image (e.g., T2w, Flair, or even CT)?
- What if the dataset is heterogenous (i.e., some subjects have T1w others have T2w). Is that something we want to handle or even possible to handle?
I am taking a look at some of the SynthSR outputs and I think they are indeed in the same "space" but there are some local mophological differences.
I am happy with this so far as it is the best we can do to support other modelities. Ok to merge this, just left a small comment regarding how to invoke SynthSR during a run |
I'm getting an error when I try running autoafids on T2w modality Command:
Error log:
It might be because the pipeline is bypassing running |
Ah this is because I specified to only load the pybids_inputs of the user specified modality - just going to change 'T1w' to config['modality'] in cnn.smk and I believe that should fix this. It works for dry runs so I'm just gonna test and then push! |
|
Hi @ataha24 , I will try and test the workflow on a larger dataset to see if I can reproduce the error. I'll also look into putting the terminal output in a log file. to answer the big picture questions:
|
@ataha24 I have done a lot of testing today - Synthsr uses a TON of memory when it runs (over 59% of my memory at its highest when only running one subject) so I believe it would have significant issues when trying to paralyze it. I can specify in the rule that it needs to be run independently and cannot be paralyzed through resource allocations. I tried memory allocation for the rule so it doesn't overuse memory, but it was still consistently crashing unfortunately. I used cbs basic and it would crash pretty much immediately when trying to run more than 1 subject at a time - I'm not sure if you were running it on cbs heavy previously to have some subjects run ok. |
Completed:
Still To do: