Closed marcDabad closed 3 years ago
TL;DR replace the ~
in the path with the full path to your home directory.
The issue is the ~
character in your command. The standalone guppy call on the command line performs the expansion of this character to your home directory, while within megalodon the expansion is not completed as the command is sent via a non-interactive shell within python. And the guppy basecall server does not accept paths with a tilde in them. This should resolve your issue. Best of luck in your research!
Oh!
It was exactly my error.
I hope this question will help future users and save their time.
Thanks for your help and job.
Hi all,
I wrote about the same error. even ı provide the full path, I am still getting the same error. While providing the full path, am I missing something? I am wondering where is the problematic part of my code. Thanks.
megalodon /cluster/lrcfs/2397405/projects/nanopore_testing/analysis/exercise/meteore/fast5/ --outputs mods --reference wholegenome --mod-motif m CG 0 --write-mods-text --processes 10 --guppy-server-path /cluster/lrcfs/2397405/bin/ont-guppy-cpu-5.0.16/bin/guppy_basecall_server --guppy-params "-d ~/cluster/lrcfs/2397405/bin/rerio/basecall_models/ --num_callers 10" --guppy-timeout 400 --guppy-config res_dna_r941_min_modbases_5mC_CpG_v001.cfg --overwrite [11:48:22] Running Megalodon version 2.3.4 [11:48:22] Loading guppy basecalling backend
ERROR: Guppy server initialization failed. See guppy logs in [--output-directory] for more details.
Try running the guppy server initialization command found in log.txt in order to pinpoint the source of this issue.
[11:48:22] Running Megalodon version 2.3.4 DBG 11:48:22 : Command: """/cluster/lrcfs/ftiras/ftiras_env/envs/nanoplot/bin/megalodon /cluster/lrcfs/2397405/projects/nanopore_testing/analysis/exercise/meteore/fast5/ --outputs mods --reference wholegenome --mod-motif m CG 0 --write-mods-text --processes 10 --guppy-server-path /cluster/lrcfs/2397405/bin/ont-guppy-cpu-5.0.16/bin/guppy_basecall_server --guppy-params -d ~/cluster/lrcfs/2397405/bin/rerio/basecall_models/ --num_callers 10 --guppy-timeout 400 --guppy-config res_dna_r941_min_modbases_5mC_CpG_v001.cfg --overwrite""" --- MainProcess-MainThread megalodon.py:1750 [11:48:22] Loading guppy basecalling backend DBG 11:48:22 : Guppy version: "5.0.16" --- MainProcess-MainThread backends.py:869 DBG 11:48:22 : Pyguppy version: "5.0.16" --- MainProcess-MainThread backends.py:870 DBG 11:48:22 : guppy server init command: "/cluster/lrcfs/2397405/bin/ont-guppy-cpu-5.0.16/bin/guppy_basecall_server -p auto -l megalodon_results/guppy_log -c res_dna_r941_min_modbases_5mC_CpG_v001.cfg --post_out --quiet -d ~/cluster/lrcfs/2397405/bin/rerio/basecall_models/ --num_callers 10" --- MainProcess-MainThread backends.py:944
ERROR: Guppy server initialization failed. See guppy logs in [--output-directory] for more details.
Try running the guppy server initialization command found in log.txt in order to pinpoint the source of this issue.
Hi all,
I solved this problem by opening the Rerio data configuration (which is not a real configuration file just an address for downloading) and downloading the compressed configuration. then unzip this configuration in the data folder. I hope it fixes your problem Also. thanks
See the rerio README for the recommended model download procedure using the rerio/download_model.py
script. I also noticed that in your command posted indicating that you used the "full path" you included a leading ~
. This is not a full path, but one that bash needs to expand. A full path should start with a leading /
. I hope this helps resolve this issue.
I am trying to run megaldon and I have an error:
At log.txt file, I have this:
When I try to run guppy_basecall_server I have no error. Actually, it looks is working.
guppy_basecaller_server.....log
And I see it running at
nvidia-smi
I tried it with guppy 5.0.14, 5.0.15 and 5.0.16 with the same error.
Thanks for this tool.