problem in install UMI_tools
2
0
Entering edit mode
4.3 years ago
yueli7 ▴ 250

Hello, Everyone,

I was in problem of install UMI-tools.

Thanks in advancef or any help!

Best,

Yue

~/UMI-tools$ python3 setup.py  install
Downloading https://pypi.io/packages/source/s/setuptools/setuptools-10.0.zip
Extracting in /tmp/tmppcs34pkj
Now working in /tmp/tmppcs34pkj/setuptools-10.0
Building a Setuptools egg in /home/li/UMI-tools
Traceback (most recent call last):
File "setup.py", line 19, in <module>
exec(init_file.read(), command_ns)
File "<string>", line 11, in <module>
File "/tmp/tmppcs34pkj/setuptools-10.0/setuptools/__init__.py", line 11, in <module>
from setuptools.extension import Extension
File "/tmp/tmppcs34pkj/setuptools-10.0/setuptools/extension.py", line 8, in <module>
from .dist import _get_unpatched
File "/tmp/tmppcs34pkj/setuptools-10.0/setuptools/dist.py", line 19, in <module>
import pkg_resources
File "/tmp/tmppcs34pkj/setuptools-10.0/pkg_resources/__init__.py", line 1655, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
/home/li/UMI-tools/setuptools-10.0-py3.6.egg
Traceback (most recent call last):
File "setup.py", line 8, in <module>
use_setuptools("10.0")
File "/home/li/UMI-tools/ez_setup.py", line 178, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/home/li/UMI-tools/ez_setup.py", line 129, in _do_download
_build_egg(egg, archive, to_dir)
File "/home/li/UMI-tools/ez_setup.py", line 75, in _build_egg
raise IOError('Could not build the egg.')
OSError: Could not build the egg.
RNA-Seq • 3.0k views
ADD COMMENT
2
Entering edit mode

What about the other options in the installation section?

ADD REPLY
1
Entering edit mode

The problem here is that the installer first tries to install setuptools, which it needs to do the installation. It is the installation of setuptools that is failing.

As @Wouter said, you are definitely best installing one of the pre-built options. If you don't want to go the conda route, pip/pip3 should be fine.

If you want to install from source for some reason, you'll probably need to install setuptools manually first. To do this download setuptools from: https://pypi.org/project/setuptools/

then unzip the package, and run: $ python setup.py install --user

ADD REPLY
0
Entering edit mode

Hello, WouterDeCoster and i.sudbery,

Thank you so much for both of yours suggestions.

It seems successfully installed.

How I can use this software?

Thank you again for your great help!

Best,

Yue

Desktop-590-p0xxx:~$ umi_tools --help
umi_tools: command not found

Desktop-590-p0xxx:~$ pip install umi_tools

Successfully built umi-tools future pysam regex subprocess32
Installing collected packages: future, six, cycler, numpy, backports.functools-lru-cache, subprocess32, setuptools,         kiwisolver, pytz, python-dateutil, pyparsing, matplotlib, pandas, pysam, regex, scipy, umi-tools
Successfully installed backports.functools-lru-cache-1.6.1 cycler-0.10.0 future-0.18.2 kiwisolver-1.1.0 matplotlib-2.2.4 numpy-1.16.5 pandas-0.24.2 pyparsing-2.4.5 pysam-0.15.3 python-dateutil-2.8.1 pytz-2019.3 regex-2019.12.9 scipy-1.2.2     setuptools-42.0.2 six-1.13.0 subprocess32-3.5.4 umi-tools-1.0.0
ADD REPLY
0
Entering edit mode

Hello,

It seems successfully installed. I have no idea how to use it. Thank you!

Yue

ADD REPLY
1
Entering edit mode

umi-tools has complete documentation available here. That is where you will find information on how to use the tools.

ADD REPLY
0
Entering edit mode

Hello, genomax,

Thank you so much for your quick response!

Is that possible I can confirm I successfully installed?

Thanks in advance for your great help!

Best,

Yue

Desktop-590-p0xxx:~$ umi_tools --help

umi_tools: command not found

Desktop-590-p0xxx:~$ pip install umi_tools

Successfully built umi-tools future pysam regex subprocess32
Installing collected packages: future, six, cycler, numpy, backports.functools-lru-cache, subprocess32, setuptools,         kiwisolver, pytz, python-dateutil, pyparsing, matplotlib, pandas, pysam, regex, scipy, umi-tools
Successfully installed backports.functools-lru-cache-1.6.1 cycler-0.10.0 future-0.18.2 kiwisolver-1.1.0 matplotlib-2.2.4 numpy-1.16.5 pandas-0.24.2 pyparsing-2.4.5 pysam-0.15.3 python-dateutil-2.8.1 pytz-2019.3 regex-2019.12.9 scipy-1.2.2     setuptools-42.0.2 six-1.13.0 subprocess32-3.5.4 umi-tools-1.0.0
ADD REPLY
0
Entering edit mode

What output do you get from which umi_tools?

ADD REPLY
0
Entering edit mode

Hello, genomax,

Thank you so much for your great help!

li@Desktop-590-p0xxx:~$ which umi_tools
li@Desktop-590-p0xxx:~$
ADD REPLY
0
Entering edit mode

So basically if umi-tools did get installed it is not in your $PATH so it can't be found. Is the executable in ls ~/.local/bin this directory?

ADD REPLY
0
Entering edit mode

Hello, genmax,

Thank you so much for your patient!

I cannot find umi_tools in usr/local/bin.

Thank you again!

Yue

li@lDesktop-590-p0xxx:/usr/local/bin$ ls
deploytool  matlab  mbuild  mcc  mex  pcre-config  pcregrep  pcretest
ADD REPLY
0
Entering edit mode
li@Desktop-590-p0xxx:~$ python3 -m pip install --user "umi_tools"Requirement already satisfied: umi_tools in ./.local/lib/python3.6/site-packages (1.0.0)
Requirement already satisfied: pysam in ./.local/lib/python3.6/site-packages (from umi_tools) (0.15.3)
Requirement already satisfied: setuptools>=1.1 in ./.local/lib/python3.6/site-packages (from umi_tools) (42.0.2)
Requirement already satisfied: regex in ./.local/lib/python3.6/site-packages (from umi_tools) (2019.12.17)
Requirement already satisfied: scipy in ./.local/lib/python3.6/site-packages (from umi_tools) (1.4.0)
Requirement already satisfied: numpy>=1.7 in ./.local/lib/python3.6/site-packages (from umi_tools) (1.17.4)
Requirement already satisfied: matplotlib in ./.local/lib/python3.6/site-packages (from umi_tools) (3.1.2)
Requirement already satisfied: pandas>=0.12.0 in ./.local/lib/python3.6/site-packages (from umi_tools) (0.25.3)
Requirement already satisfied: future in ./.local/lib/python3.6/site-packages (from umi_tools) (0.18.2)
Requirement already satisfied: python-dateutil>=2.1 in ./.local/lib/python3.6/site-packages (from matplotlib->umi_tools) (2.8.1)
Requirement already satisfied: kiwisolver>=1.0.1 in ./.local/lib/python3.6/site-packages (from matplotlib->umi_tools) (1.1.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in ./.local/lib/python3.6/site-packages (from matplotlib->umi_tools) (2.4.5)
Requirement already satisfied: cycler>=0.10 in ./.local/lib/python3.6/site-packages (from matplotlib->umi_tools) (0.10.0)
Requirement already satisfied: pytz>=2017.2 in ./.local/lib/python3.6/site-packages (from pandas>=0.12.0->umi_tools) (2019.3)
Requirement already satisfied: six>=1.5 in ./.local/lib/python3.6/site-packages (from python-dateutil>=2.1->matplotlib->umi_tools) (1.13.0)
ADD REPLY
0
Entering edit mode
Desktop-590-p0xxx:~$ pip3 install umi_tools
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip import main
ImportError: cannot import name 'main'
ADD REPLY
0
Entering edit mode

That was not /usr/local/bin. It is ~/.local/bin (check carefully) in your own home directory.

ADD REPLY
0
Entering edit mode

Hello, genomax,

Thank you for your reply!

I still can not find it.

There is not usr/local/bin.

Thank you again!

Best,

Yue

li@li-HP-Pavilion-Desktop-590-p0xxx:/home$ ls
li  lost+found
li@li-HP-Pavilion-Desktop-590-p0xxx:/home$ cd li
li@li-HP-Pavilion-Desktop-590-p0xxx:~$ ls
ADD REPLY
0
Entering edit mode

For third and final time please copy and paste following command exactly as typed below

ls ~/.local/bin

and tell us what it says.

ADD REPLY
0
Entering edit mode

Hello, genomax,

Thank you so much for your great help!

I finally found it!

Thank you again!

A quick question is how I can use umi_tools this software?

li@li-HP-Pavilion-Desktop-590-p0xxx:~$ ls ~/.local/bin
cygdb         easy_install-2.7  f2py2    futurize    pip2.7
cython        easy_install-3.6  f2py2.7  pasteurize  pip3
cythonize     easy_install-3.8  f2py3    pip         pip3.6
easy_install  f2py              f2py3.6  pip2        umi_tools
ADD REPLY
0
Entering edit mode

directories that start with . , like .local are hidden. To see them you need to do ls -a.

ADD REPLY
0
Entering edit mode
4.3 years ago
GenoMax 141k

So do export PATH=$PATH:~/.local/bin. That will put the executable for umi_tools in your $PATH and will allow you to run it with just umi_tools. This will last only for current terminal session. Look into putting this in your .bashrc so it becomes available permanently every time you start a new terminal.

ADD COMMENT
0
Entering edit mode
4.3 years ago
yueli7 ▴ 250
li@li-HP-Pavilion-Desktop-590-p0xxx:~$ PATH=~/.local/bin:$PATH
li@li-HP-Pavilion-Desktop-590-p0xxx:~$ umi_tools --help
For full UMI-tools documentation, see: https://umi-tools.readthedocs.io/en/latest/


umi_tools.py - Tools for UMI analyses
===============================================

:Author: Tom Smith & Ian Sudbury, CGAT
:Release: $Id$
:Date: |today|
:Tags: Genomics UMI

There are 6 tools:

- whitelist
- extract
- group
- dedup
- count
- count_tab

To get help on a specific tool, type:

umi_tools <tool> --help

To use a specific tool, type::

umi_tools <tool> [tool options] [tool arguments]
ADD COMMENT

Login before adding your answer.

Traffic: 3182 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6