Add wet run testing to github#43
Conversation
|
Superb job @mackenziesnyder! I was wondering if it's possible to cache the CNN models so that we don't have to download them everytime a wet-run test is executed? |
|
We can reproduce the MSE to the exact decimal, i.e., 1.0965 on every run, so I was wondering if we need a threshold to begin with. What do you guys think? @mackenziesnyder @ataha24. Wet-run testing is basically to run the pipeline and make sure the rules are running properly and we can get a .fscv file out in the end. |
i will look into this! that would make the run a lot faster |
I can set it to this exact value! |
|
Sounds good to me! |
|
@Dhananjhay @ataha24 I've made the wet runs to be triggered on pull request, added --fidqc and --stereotaxy STN to the wet run, and removed the code that had attempted to cache the model dir. This one should be good to go! |
|
This looks awesome, @mackenziesnyder! One small thing - I just merged PR #46 where I removed the logic of running dry run tests using |
Will do!! I will refactor it to match ! |
|
@Dhananjhay I have tested this out and it ran successfully, I had to add an additional flag |
|
Amazing work @mackenziesnyder! I'll review this PR later today and merge it in, thank you! |
thanks! |
|
|
I think this is good to merge. Let me know once you've reviewed the changes @mackenziesnyder! |
| run: | | ||
| conda activate snakebids-env | ||
| ./autoafids/run.py test_data/bids_wetrun_testing test_out participant \ | ||
| --cores all --force-output --stereotaxy STN --fidqc --use-conda --conda-frontend mamba | tee autoafids_output.log |
There was a problem hiding this comment.
do we still need the --conda-frontend mamba here? I added this because it was needed when originally using poetry but when I activated a conda env and ran autoafids during a test on cbs I no longer needed this flag @Dhananjhay
There was a problem hiding this comment.
Yeah, it's a little tricky to run with poetry but mainly we use it here to speed up the pipeline. When using conda, Snakemake by default injects --conda-frontend conda to resolve the dependencies; we instead use --conda-frontend mamba which is much faster at that!
There was a problem hiding this comment.
Ok I see, that makes sense! thanks, the code look good!
MSE results:
To do:
Note:
for issue: #41