Closed astewart-twist closed 6 years ago
Hmm, I'm unable to replicate this:
git clone
https://github.com/zstephens/neat-genreads.git
cd neat-genreads/
python genReads.py -r hg19.fa -R 101 -o simulated_data
Using default sequencing error model.
Using default gc-bias model.
found index hg19.fa.fai
reading chr1...`
etc..
Can you confirm what version of python you're running on, any maybe what system? That might help debug further.
Sure.
Python:
Python 2.7.14
System:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
Is is possible you have this package installed? https://pypi.org/project/cigar/
If you do, I could imagine the line in neat-genreads/py/SequenceContainer.py:
from cigar import CigarString
might be trying to import from that package instead of genreads' own cigar.py.
Either way, I believe I can prevent this by prepending sys.path with neat-genreads/py/, or worst case scenario just renaming cigar.py to something less generic.
Bingo. Good catch!
I think you have a circular dependency in your imports.
Using a fresh clone of the repo:
Also, any plan to make this an actual package with a
setup.py
, etc ?