ROSE Algorithm: Error when importing upper and join from string
2
0
Entering edit mode
4.5 years ago
mropri ▴ 160

Hello,

I am trying to run the ROSE algorithm created by the young lab, url here:

http://younglab.wi.mit.edu/super_enhancer_code.html

Specifically, I am running the ROSE_main.py script: http://younglab.wi.mit.edu/super_enhancer_code.html

When I run the script in ubuntu, my python version 3.7.6, I get an error stating the following:

Traceback (most recent call last):

File "ROSE_main.py", line 19, in <module>

from string import uppercase, join ImportError: cannot import name 'uppercase' from 'string' (/network/rit/lab/herschkolab/Ali/miniconda3/lib/python3.7/string.py)**

So as you can see, when importing upper, join from string, the script gets an error. I was hoping someone could help me understand why I get that error and how to fix it. Any help is appreciated. Thank you!

ChIP-Seq • 2.1k views
ADD COMMENT
0
Entering edit mode
4.5 years ago
ATpoint 86k

From the website:

Developed using Python 2.7.3, R 2.15.3, and SAMtools 0.1.18

You have python3, it needs python2. I suggest you create a separate environment with conda and install python2 on it.

ADD COMMENT
0
Entering edit mode

Thank you, will try that

ADD REPLY
0
Entering edit mode
4.5 years ago

There is also a python3 updated version here (and likely a few other repos as well).

ADD COMMENT
0
Entering edit mode

Thanks for the reply, will try this version as well.

ADD REPLY

Login before adding your answer.

Traffic: 1901 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