Skip to content
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

Can not use singularity #4

Closed
wangziyuan66 opened this issue Dec 15, 2023 · 9 comments
Closed

Can not use singularity #4

wangziyuan66 opened this issue Dec 15, 2023 · 9 comments

Comments

@wangziyuan66
Copy link

Hi,

My singularity version is apptainer version 1.2.4-1.el7.

I want to use singularity to run all the code but failed.

I used the second method.

FATAL: stat my/path/modPhred/run: no such file or directory

@enovoa
Copy link
Contributor

enovoa commented Dec 18, 2023

Hi @wangziyuan66 Could you try changing /my/path/modPhred/run to whatever PATH you have installed ModPhred at? Thanks!

@enovoa
Copy link
Contributor

enovoa commented Jan 6, 2024

Hi @wangziyuan66 , Was your problem solved? Thanks

@wangziyuan66
Copy link
Author

wangziyuan66 commented Jan 6, 2024 via email

@enovoa enovoa closed this as completed Jan 6, 2024
@haotianteng
Copy link

Hi, I have encountered the same error. Could you elaborate more on how do you solve that?
I make sure the path is right but still encounter this error.

@enovoa
Copy link
Contributor

enovoa commented Jul 1, 2024

Hi @haotianteng - Can you please show your error message and what command you are running? Thanks!

@haotianteng
Copy link

Hi @enovoa
The error message is the same: FATAL: stat my/path/modPhred/run: no such file or directory

I managed to solve it by using the --bind command, however, I encountered another error (raised an issue here: #9 (comment)), here is the full log:

singularity exec --nv --bind /data:/data --bind /home/haotiant:/home/haotiant modphred-3.6.1.simg modPhred/run -c ont-guppy/data/rna_r9.4.1_70bps_m6A_hac.cfg --host soft/ont-guppy/bin/guppy_basecall_server -f /data/HEK293T_RNA004/Homo_sapiens.GRCh38.cdna.ncrna.fa -o /data/HEK293T/test/ -i /home/haotiant/bridge_scratch/HEK293T/HEK293T-WT-rep1/fast5s/
WARNING: Not mounting requested bind point (already mounted in container): /home/haotiant
[2024-07-01 07:37:37] ===== Welcome, welcome to modPhred pipeline! =====
[2024-07-01 07:37:37] Connecting to: soft/ont-guppy/bin/guppy_basecall_server:5555 ... [mem:   150 MB]
[2024-07-01 07:37:37] Encoding modification info from 1 directories... [mem:   150 MB]
[2024-07-01 07:37:37]  /home/haotiant/bridge_scratch/HEK293T/HEK293T-WT-rep1/fast5s/ with 261 Fast5 file(s)... [mem:   150 MB]
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/opt/miniforge3/envs/python3.7/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/home/haotiant/Tools/modPhred/modPhred/src/guppy_encode_live.py", line 105, in basecalling_worker
    client = GuppyClientBase(config_name=config, host=host, port=port, **kwargs)
  File "/opt/miniforge3/envs/python3.7/lib/python3.7/site-packages/pyguppyclient/client.py", line 35, in __init__
    self.socket.connect("tcp://%s:%s" % (host, port))
  File "zmq/backend/cython/socket.pyx", line 580, in zmq.backend.cython.socket.Socket.connect
  File "zmq/backend/cython/checkrc.pxd", line 25, in zmq.backend.cython.checkrc._check_rc
zmq.error.ZMQError: Invalid argument
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "modPhred/run", line 507, in <module>
    main()
  File "modPhred/run", line 436, in main
    o.MaxModsPerBase, o.recursive)
  File "/home/haotiant/Tools/modPhred/modPhred/src/guppy_encode_live.py", line 228, in mod_encode
    for ii, (fn, ofn, reads) in enumerate(p.imap(basecalling_worker, args), 1):
  File "/opt/miniforge3/envs/python3.7/lib/python3.7/multiprocessing/pool.py", line 748, in next
    raise value
zmq.error.ZMQError: Invalid argument

@enovoa
Copy link
Contributor

enovoa commented Jul 1, 2024

HI @haotianteng you seem to use " my/path/modPhred/run" can you actually change "my/path" for whatever is your path? thanks

@haotianteng
Copy link

haotianteng commented Jul 1, 2024

The path problem has solved, the error I encounter now is invalid argument mentioned above.

I suspect it's because the version of Guppy in the singularity image, e.g. docker://lpryszcz/modphred-3.6.1 is too high and didn't accept --fast5_out argument. Can you have a check of the Guppy version installed in that docker image?

@enovoa
Copy link
Contributor

enovoa commented Jul 2, 2024

hi @haotianteng i dont think its the guppy version because that's how we have used it in the past as well for many projects (for example, the bioRxiv preprint of the m6ABasecaller, see methods section). So I suspect it is something else. I am tagging @lpryszcz here in case he has any suggestions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants