Hello all,
Does anyone know how to download the chromosome sizes of a genome from UCSC using pybedtools? I found that this function exists get_chromsizes_from_ucsc (genome, saveas = None , mysql = 'mysql' , timeout = None) but i cant make it work. This is my code
pybedtools.get_chromsizes_from_ucsc('SacSer3', saveas = 'sc.genome', mysql = '/usr/local/mysql')
and this is what i get:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Library/Python/2.7/site-packages/pybedtools-0.6.1-py2.7-macosx-10.7-intel.egg/pybedtools/__in
it__.py", line 306, in get_chromsizes_from_ucsc
bufsize=1)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 67
2, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 12
02, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
Sorry for my ignorance but i'm new on this..
Does anyone know how to download the chromosome sizes of a genome from UCSC using pybedtools? I found that this function exists get_chromsizes_from_ucsc (genome, saveas = None , mysql = 'mysql' , timeout = None) but i cant make it work. This is my code
pybedtools.get_chromsizes_from_ucsc('SacSer3', saveas = 'sc.genome', mysql = '/usr/local/mysql')
and this is what i get:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Library/Python/2.7/site-packages/pybedtools-0.6.1-py2.7-macosx-10.7-intel.egg/pybedtools/__in
it__.py", line 306, in get_chromsizes_from_ucsc
bufsize=1)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 67
2, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 12
02, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
Sorry for my ignorance but i'm new on this..
Comment