Ok this is going to be a stupid question. I need t...
# nostupidquestions
b
Ok this is going to be a stupid question. I need to hard call regions in the raredisease pipeline and within the scope of the pipeline there are no params the can make this happen. Can I hard-code inject code to merge a secondary VCF with the main VCF prior to processing? e.g.
bcftools mpileup -q 0 -f {ref.fasta} --max-depth 1000 -a FORMAT/AD -Ou -R target.bed | bcftools call -mA |  bcftools-1.18/bcftools +fill-tags - -- -t FORMAT/VAF | bcftools norm -m -any | bcftools filter --exclude 'DP < 50 | VAF < 0.1 | ALT=\".\"' | bcftools sort -Oz -o output.target.vcf - ; tabix -p vcf output.target.vcf
I could create some additional local modules but I'm not really sure that that makes any sense given I can't daisy-chain or inject directly into the pipeline.... Obviously this isn't ideal but this step is non-negotiable Any thoughts? Or is there like a smarter way to do this maybe I overwrite a whole module?
n
You can probably use ext.args to kind of do whatever if you are "brave" enough
Depends a bit where it is placed in the module
b
can I hit the .config params from any down-stream module or do they not transfer the that deep?
n
I would also consider patching the module if that would work for you, using nf-core modules patch
b
hi @Niklas Schandry, thanks for the help. I did this and it works but it's kind of ugly. I tried doing the patch but because the nf-core toolset is independent of the next-flow install I didn't create a diff. What would be more appealing to me would be to leave the main.nf of DeepVariant un-editted and overwrite it with a custom one in the current dir with a call in the .config. is this an option at all?
n
Yeah, I imagined it would be kinda ugly. I am not really sure what you would like to do instead tbh, basically creating a patched module without using the patched module, II dont think that it is possible to replace a module with a different one through a config though? I am also not 100% sure why you dont get a diff, you would have to do the patching in your pipeline cache, but I think also the patch is more aimed at pipeline developers rather than users
b
yeah I mean I will make a patch eventually.. jus need to make a docker to run/install nf-core etc... my goal is to a create a pipeline with essentially a makefile that installs everything in one go the manually editing of the module is not ideal but I don't have any solutions . anyway this seems to work for now thanks for the help