Closed niemasd closed 3 years ago
I think I found the issue with installing the most recent release using pip
. In setup.py
, python
is listed in the requirements
list (line 7), but the requirements
list is only supposed to contain Python packages. I ended up just downloading the latest release tarball, deleting this single line from setup.py
$ wget -qO- "https://github.com/ksamuk/pixy/archive/refs/tags/1.1.1.beta1.tar.gz" | tar -zx
$ vi pixy-1.1.1.beta/setup.py # I deleted line 7: 'python',
$ sudo -H pip3 install ~/pixy-1.1.1.beta/
This worked fine, and the pixy
executable is now in my PATH
:
$ pixy -h
usage: pixy [-h] --stats {pi,dxy,fst} [{pi,dxy,fst} ...] --vcf [VCF]
--populations [POPULATIONS] [--window_size [WINDOW_SIZE]]
[--bed_file [BED_FILE]] [--n_cores [N_CORES]]
[--output_folder [OUTPUT_FOLDER]]
[--output_prefix [OUTPUT_PREFIX]] [--chromosomes [CHROMOSOMES]]
[--interval_start [INTERVAL_START]]
[--interval_end [INTERVAL_END]] [--sites_file [SITES_FILE]]
[--chunk_size [CHUNK_SIZE]] [--fst_type {wc,hudson}]
[--bypass_invariant_check {yes,no}] [--version] [--citation]
[--silent]
█▀▀█ ░▀░ █░█ █░░█
█░░█ ▀█▀ ▄▀▄ █▄▄█
█▀▀▀ ▀▀▀ ▀░▀ ▄▄▄█
pixy: unbiased estimates of pi, dxy, and fst from VCFs with invariant sites
1.1.1.beta1
...
I've created a pull request with this edit: https://github.com/ksamuk/pixy/pull/35
Awesome! Thanks for flagging this and for the PR. That file is auto-generated and so was under my radar.
Describe the bug Installing
pixy
usingpip install pixy
didn't yield apixy
executable in myPATH
The pixy command and error message I tried installing
pixy
as follows:It installed fine, which I can confirm because I can import the
pixy
Python package just fine:However, when I try to run
pixy
frombash
, there's no such executable in myPATH
:It seems like the
pixy
version that is installed usingpip
is version 1.0.2, so perhaps that's why? I tried uninstallingpixy
:And then installing using
pip
but from the commit of the most recent GitHub release:That didn't work either:
OS information
Sample files N/A