Closed exsquire closed 4 years ago
The installation used to be a one-liner but conda messed it up since at some point. Unfortunately I could not find a good time to sit down and fix it yet. Are you familiar with using docker image? If not, you will have to install all its dependency including emase
by yourself.
$ pip install numpy==1.8.2
$ pip install numexpr==2.3.1
$ pip install scipy==0.13.3
$ pip install pysam
$ pip install cython
$ pip install tables==3.1.0 (If this fails, try ‘conda install pytables==3.1.0’)
$ pip install biopython
$ pip install emase
$ pip install matplotlib
$ pip install bx-python
$ conda install -c kbchoi pysqlite
setup.py
and comment out # requirements.append('g2gtools')
line $ python setup.py install
Sorry about the complication. Hope this help.
No worries, thanks for the input. I have 2 questions:
I am running this from an Ubuntu allocation on a cluster and not quite sure what you mean by 'go to gbrs source folder'. I assumed this was the miniconda env I created for gbrs, but soon realized it probably wasn't.
I am not familiar with docker image, but that may be the next thing I try since installation of individual dependencies snagged at tables. What would be my next move using docker?
(gbrs) $ pip install tables==3.1.0
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting tables==3.1.0
Using cached https://files.pythonhosted.org/packages/b3/31/d0d47c6187d6dd9594ef165f8dd7252670c9d3c00a546bd5e56f38061a71/tables-3.1.0.tar.gz
ERROR: Command errored out with exit status 1:
command: /home/esque/miniconda/envs/gbrs/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6g6tu5/tables/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6g6tu5/tables/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-6g6tu5/tables/pip-egg-info
cwd: /tmp/pip-install-6g6tu5/tables/
Complete output (19 lines):
/tmp/H5closefIm51B.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^~~~
/tmp/H5closefIm51B.c: In function ‘main’:
/tmp/H5closefIm51B.c:2:5: warning: implicit declaration of function ‘H5close’ [-Wimplicit-function-declaration]
H5close();
^~~~~~~
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld returned 1 exit status
* Using Python 2.7.15 |Anaconda, Inc.| (default, May 1 2018, 23:32:55)
* Found numpy 1.8.2 package installed.
* Found numexpr 2.3.1 package installed.
* Found Cython 0.29.14 package installed.
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld returned 1 exit status
.. ERROR:: Could not find a local HDF5 installation.
You may need to explicitly state where your local HDF5 headers and
library can be found by setting the ``HDF5_DIR`` environment
variable or by using the ``--hdf5`` command-line option.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Quick google search showed this to be a popular problem, but many of the fixes requires sudo, which isn't an option on a cluster. I attempted the non-root fixes, like pip installing from the pytables github, but no luck.
You need to git clone https://github.com/churchill-lab/gbrs.git
wherever you want to put gbrs source folder.
Try conda install hdf5
or conda install -c conda-forge hdf5
and then pip install tables==3.1.0
I'll try that.
Will the bowtie command work as usual for paired end fastq? (Also, is there a preferred/more appropriate venue to post questions about this tool?)
I designed gbrs
to run with only R1 reads because not all experiments are paired ended. But we can improve allele-specific expression and isoform quantity after genome reconstruction is all performed. For that matter, let's switch this thread to email as it is off topic. Find me from the Jackson Lab once you are done with R1.
KB,
I've solved the issue on my end.
The following successfully installed hdf5 but threw an error on the tables v3.1.0 install.
$ conda install hdf5
$ conda install -c conda-forge hdf5
$ pip install tables==3.1.0
The problem seemed to be that tables could not find the library path to hdf5.
Once I tried:
$ apt-get build-dep python-tables
$ HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/serial/ && pip install tables==3.1.0
and uncommented g2gtools in the setup.py, it worked like a charm!
Hi KB,
Attempting to run gbrs, followed the installation instructions here: https://churchill-lab.github.io/gbrs/
Getting the following conflicts:
Do you have any suggestions around this other than installing the dependencies manually?