Open isnmn opened 9 months ago
Hi,
When you have installed pcangsd, it should be run in the following way:
pcangsd --beagle GL.beagle.gz --threads 20
Best, Jonas
Hi,
I installed pcangsd following the instructions here and it said the installation finished successfully. But I can't run it with pcangsd --beagle GL.beagle.gz --threads 20
, I get a "command not found" error. When I try to run it like this python3 pcangsd.py
, I get the same error as isnmn.
Any ideas why the installation doesn't seem to create the executable? I also tried with pip3 install --user .
Best, Vanessa
Hi,
I have experienced this issue myself.
Just write pip3 install -e .
in the directory where the program is located. (/home/emr/pcangsd/),
It gives a warning WARNING: The script pcangsd is installed in '/home/emr/.local/bin
which is not on PATH."
Then you write an alias to ~/.bashrc for this location.
I am having the same issue. I used the instruction in http://www.popgen.dk/software/index.php/PCAngsd and used: python pcangsd.py -beagle input.beagle.gz -out output -threads 64 but I am getting this error: ImportError: cannot import name 'admixture' from 'pcangsd' (/home/kgbeaty/Data_kgbeaty/Herons/PCAngsd/pcangsd/pcangsd/pcangsd.py)
When I try pcangsd as a code, it says this code does not exist
Unfortunately the instructions in http://www.popgen.dk/software/index.php/PCAngsd are very outdated! The info here on GitHub is up to date.
When installed, you should be able to run PCAngsd using a simple pcangsd
command (notice no python
). I guess an issue can arise when you install without an environment (conda or venv) on a cluster, where the install location is not part of your PATH (as mentioned by @emrullahub). Please check "~/.local/bin" and update your PATH if needed.
Best, Jonas
Thank you! It works now for me :)
Best, Vanessa
Hi, I'm getting the same error trying to run it on a cluster. python pcangsd.py -beagle input.beagle.gz -out output -threads 64 but I am getting this error: ImportError: cannot import name 'admixture' from 'pcangsd'
I've already added these two paths to my ~/.bash_profile PATH=$PATH:$HOME/.local/bin PATH=$PATH:$HOME/data/mfariasv/install/pcangsd/pcangsd
but the error persists.
What could be wrong? Thank you
Hi all - We were having this issue here, various solutions above helped for different users. We are working on a cluster, so installing it into an environment anyone could use was tricky.
For personal use, when in a conda environment a user has write access to, we found this command set from the github front page worked well: git clone https://github.com/Rosemeis/pcangsd.git cd pcangsd pip3 install .
We were then able to run the program without trouble. For us, we had to be in the directory that contained the various install components for it to work correctly as referenced above.
Hi, I installed by cloning from git successfully. But when I try to run :
python ~/MAIN/tools/pcangsd/pcangsd/pcangsd.py --beagle GL.beagle.gz --threads 20
Returns:
Could you help please?