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

[Mac] Running merge_wrapper.py in conda : No such file or directory: 'nucmer': 'nucmer' #63

Open
RxLoutre opened this issue May 31, 2021 · 3 comments

Comments

@RxLoutre
Copy link

Hi Mahul !

I have encountered some issues trying to run quickmerge within my conda environement.

I have installed quickmerge using the following :

conda install -c conda-forge -c bioconda quickmerge

No issues were raised, and quickmerge and mummer appear in my "conda list"

When trying to run the wrapper within my environment I get :

merge_wrapper.py D_hybrid_unicycler_assembly.fasta C_flye_assembly.fasta
Traceback (most recent call last):
  File "/Users/roxaneboyer/miniconda3/envs/assembly/bin/merge_wrapper.py", line 150, in <module>
    subprocess.call(['nucmer','-l','100','-prefix',str(prefix),str(selfpath),str(hypath)])
  File "/Users/roxaneboyer/miniconda3/envs/assembly/lib/python3.7/subprocess.py", line 339, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/Users/roxaneboyer/miniconda3/envs/assembly/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/Users/roxaneboyer/miniconda3/envs/assembly/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'nucmer': 'nucmer'

And trying to run directly nucmer I get this :

nucmer -l 100 -prefix preMerge D_hybrid_unicycler_assembly.fasta C_flye_assembly.fasta
zsh: /Users/roxaneboyer/miniconda3/envs/assembly/bin/nucmer: bad interpreter: /usr/local/bin/perl: no such file or directory

Perl is installed both outside the conda env and within the conda env.

Within the conda env, when I start typing "nuc" and tabing for autocompletion, it offers me to complete it with nucmer. But then when I try nucmer -h :

zsh: /Users/roxaneboyer/miniconda3/envs/assembly/bin/nucmer: bad interpreter: /usr/local/bin/perl: no such file or directory

As I am running this on MAC, could it be an issue similar like this : https://stackoverflow.com/questions/17131249/how-to-solve-bad-interpreter-no-such-file-or-directory/17131267

But then would it means I have to modify the nucmer script and/or the merge_wrapper ? 🤔 I am a bit noobish on mac still. Do you have an idea about how to solve this issue ?

Thank you for you help !

Best regards,

Roxane

@mahulchak
Copy link
Owner

mahulchak commented Jun 1, 2021 via email

@khush876
Copy link

Hi Roxane,

you need to set the conda environment

You can follow this if it helps

conda create -n quickmerge
conda activate quickmerge
conda install quickmerge

nucmer ...

delta ....

quickmerge ..

hope it helps

@rpbap
Copy link

rpbap commented Oct 14, 2022

The problem is with the mummer version that has a bug with Perl.

Do a mummer downgrade inside your environment:

mamba install mummer=3.23=h6de7cb9_11

This version will work

I hope it helps =)

Best,

Rodrigo

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

4 participants