fmalmeida / MpGAP

Multi-platform genome assembly pipeline for Illumina, Nanopore and PacBio reads
https://mpgap.readthedocs.io/en/latest/
GNU General Public License v3.0
56 stars 10 forks source link

mkdir: cannot create directory #39

Closed josruirod closed 2 years ago

josruirod commented 2 years ago

Hi, so thanks again for the help. I'm slowly going through the pipeline in my hpc. It seems to be only a matter of specificying enviromental variables to make sure the root directoyry and /tmp/are not filled, and then allocating enough resources (cpus and memory). So at last, it's doing the pilon processes, but I've encountered an error I wanted to ask you about. Maybe related to the pipeline not resuming properly even if -resume provided to the nextflow command? image

This may be related with the pipeline and not my system? Checking out the logs I see the same error, similar with other folders, such as "wtdbg2" instead of "flye". I guess for the different Pilon runs on the different assemblies? There maybe some mkdir or mv commands that should be forced to allow for replace existing files and resuming runs? Thanks!

fmalmeida commented 2 years ago

Hi @josruirod,

yes. It’s possible to adjust that to avoid this error, but, anyways, it should not have been happening because nextflow is supposed to create new workdirs when running again.

I will add in the params-issue branch the -p param to mkdir to avoid this error when dir exists and see if it helps or I can ensure new names based on the current attempt. I will check 😁

I tell you when added so you can try.

fmalmeida commented 2 years ago

Can you show the tree structure of this workir me? You can run

tree -L 2 path-to-dir

josruirod commented 2 years ago

Thanks for the quick support! I guessed nextflow -resume should deal with all of that, but the error is clearly pointing to the need of mkdir -p... weird bug. Anyhow, I assume you mean the workdir in my snapshot above. This is the structure: image

Maybe it's been modified because I relaunched the pipeline just in case and it's currently running. If it fails again I'll send you the directory structure untouched. Let me know if you spot something and I should kill and relaunch the params-issue.

fmalmeida commented 2 years ago

All seems to be ok. The error is very weird to me. But maybe making it does not fail when already existent can help on avoiding that ...

For the tree command, I actually need to see the untouched structure just when it fails πŸ˜„ so I can try to guess something.

Anyways, I am making this opting to always use fresh dirs available now in params-issue if you can restart with it to check if it helps πŸ‘πŸΌ