dms-vep / dms-vep-pipeline-3

Pipeline for analyzing deep mutational scanning (DMS) of viral entry proteins (VEPs)
Other
2 stars 0 forks source link

move model instantiation inside loop #93

Closed jgallowa07 closed 10 months ago

jgallowa07 commented 10 months ago

This addresses #92

jgallowa07 commented 10 months ago

Seems that the tests are failing due to

Run nbqa ruff .
/usr/share/miniconda/envs/dms-vep-pipeline-3/bin/python3.11: No module named ruff
Error: Process completed with exit code 1.

Not exactly sure why this is happening. Looking into it now

Update I see you're working with the same issue now and decided to remove the notebook linting. I'll wait till you merge #94 - then rebase this branch.

jbloom commented 10 months ago

I am going to look at your pulls soon (was behind)---but yes, the failures were because ruff is now supposed to run directly on notebooks rather than via nbqa as was done prior to the pull request I just made.

jgallowa07 commented 10 months ago

Great, seems to be working now. Thanks to @Caleb-Carr for getting me to do this - and apologies for not making this patch a priority over the rest of #86. I realize this is non-trivial so it's worth mentioning to others who are looking at these results. The main problem this bug introduces is that the chosen lasso_shift average model would essentially represent the training of all lasso_shifts preceding it.

I am going to look at your pulls soon (was behind) --

No rush on my end, I'm in a similar boat - #91 is still a WIP so nothing to look at currently - later this week hopefully.