This may be documented somewhere but is there a wa...
# sarek
j
This may be documented somewhere but is there a way to make custom calls with some of the tools? I know you can pass parameters to steps already performed but wasn't sure about integrating entirely new steps. I would love to run samtools depth and samtools bedcov in the sarek pipeline (as opposed to afterwards). Yes, I know mosdepth exists but I've been reading through some of the open issues on the git and it makes me a bit nervous about trusting the results from that tool.
t
Well, you can use available modules (or even write new ones) to extend the pipeline, but that involves a good amount of coding, and you'll end up with your own custom pipeline that you will be responsible for. If you can make a good case that there is something the pipeline should always do (but isn't now), you can discuss that with the developers, but given that sarek is already very complex and there is hesitancy to make it more so, your case would have to be really compelling. Alternatively, you could whip up a simple postprocessing pipeline that runs your favorite tools on the sarek output. Since this would just be for your use case(s), it could be fairly simple. Then you can run sarek, and if it completes successfully (exit code
0
), automatically (or manually) start your postprocessing workflow.
👍 1
j
Ah bummer. I am working on an HPC where I am not the admin so I unfortunately cannot install software or it is cumbersome to do so (look at you VEP). I have implemented several postprocessing methods but don't have all of the software available to perform all of the desired QC. Thank you for your answer.
👍 1
t
The only piece of software where being an admin is really beneficial for installation is a container engine (e.g. Singularity/Apptainer; Docker is rarely used on "public" HPCs). You can easily put Nextflow in your
$HOME
, and even Java, if you don't have a suitable one. The pipeline and all containers can be downloaded in your
$HOME
or some other directory accessible to you, and you can find containers for any other software, if they are not already in the containers use by the pipeline (e.g.
samtools
is in there). You can even install the vast majority of tools as a user, but as you state, sometimes that is cumbersome, so I like to use containers, which also helps with reproducibility (they are portable). In a pinch, Conda can also be used without any particular privileges.
👍 1