zengxiaofei / HapHiC

HapHiC: a fast, reference-independent, allele-aware scaffolding tool based on Hi-C data
https://www.nature.com/articles/s41477-024-01755-3
BSD 3-Clause "New" or "Revised" License
142 stars 10 forks source link

zsh: permissionned denied #75

Closed ghost closed 1 month ago

ghost commented 1 month ago

Hello,

Trying to install but getting this error

/home/alessandro/mambaforge/envs/haphic check
zsh: permission denied: /home/alessandro/mambaforge/envs/haphic

I am usually use mamba hence the mambaforge, but the error first appeared with a mamba installed so I removed it and tried to install with conda, but no difference. Any idea? I realize that might be a conda bug and not a haphic bug I hope I am not bothering you for nothing guys.

Thanks

Edit: note that

HapHiC/haphic

doesn't exist in my installation

zengxiaofei commented 1 month ago

Hi @Axze-rgb,

Conda or mamba is only used to solve the dependencies for HapHiC. You need to execute the haphic script you downloaded by using git clone:

$ git clone https://github.com/zengxiaofei/HapHiC.git
# after that, navigate to the HapHiC directory to find the haphic script
$ cd HapHiC
$ ./haphic check

The script should be executable with a permission mode of 755. If you still encounter the error message 'permission denied,' please try changing the script's mode by using:

$ chmod 755 haphic

Best regards, Xiaofei

ghost commented 1 month ago

Ohhhh, ok, I hadn't understood properly, sorry. Thanks for the answer it works.