-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix: link reads was not properly account for coassemble flag #139
Conversation
I looked into a bit to see if I could add it for Semibin, but couldn't work out how to make it optional. I guess we could use the retries system to remove the gpu requirement on the second attempt, but its a bit clunky. |
Yeah, that's what I was thinking but then it just gets removed upon failure not related to GPU usage. Maybe if we tried like X times with increasing resource requests + GPU. Then if they all fail, then just reset the attempts but set no GPU |
That could work. Add retries to the rule itself as double the input retries (https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html#defining-retries-for-fallible-rules)? |
Okay, so I couldn't work out a way to access the global retries variable from within a snakemake rule without overwriting it. Didn't spend too much time on that, but figured it would probs just be easier to add a I revamped the reference filtering and QC for both long and short reads. I've tested locally with a bunch of different configurations so I'm fairly confident everything is okay. The test suites seem okay although it did try to rebuild my conda envs because the conda path got changed so I had to skip the integration test and run the same commands from command line. They seemed fine |
LGTM. I think the |
@rhysnewell Looks like we need to fix the long reads test: qc_long_reads
flye_assembly
|
Oh true, I was running with a lower min read length and min quality |
If you add them to the test then I can rerun it. |
coassemble
channel_priority: strict
. This is maybe no longer required?reference-filter
reference-filter
, rules no longer get prioritised thus reference filter is currently non-functional@AroneyS, Have you used the gpu flag in the resources portion of snakemake rules before? I am thinking of adding it in as an option for the polishing rule, but I don't want it to fail if it can't request a GPU properly
Tests