Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Matina
    replied
    Thank you very much Andreas, my code had two errors:

    a) The mysql path was wrong.
    b) I should have used "sudo" as u suggested Thnx a lot!!

    This is the correct call for anyone interested:

    dm3 = pybedtools.get_chromsizes_from_ucsc(genome = 'dm3',saveas = 'dm3.genome', mysql = '/usr/local/mysql-5.1.63-osx10.6-x86_64/bin/mysql')

    Leave a comment:


  • AWeller
    replied
    Hi Matina,

    i don't have personal experience with this function of pybedtools, but let me make a first guess until better answers will (hopefully) come:

    the error message looks to me like python is trying to write to a part of the disc it has no permission to, which is maybe not directly related to your aim of getting the genome sizes.

    you could try to either

    a) use a different location other than '/usr/local/mysql' such as your home directory
    b) dont use mysql to safe your results or
    c) execute your python script with "sudo python myscript.py"

    good luck!

    best
    Andreas

    Leave a comment:


  • Matina
    started a topic pybedtools genomeCoverage function

    pybedtools genomeCoverage function

    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..

Latest Articles

Collapse

  • seqadmin
    Latest Developments in Precision Medicine
    by seqadmin



    Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

    Somatic Genomics
    “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
    05-24-2024, 01:16 PM
  • seqadmin
    Recent Advances in Sequencing Analysis Tools
    by seqadmin


    The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
    05-06-2024, 07:48 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, 05-24-2024, 07:15 AM
0 responses
195 views
0 likes
Last Post seqadmin  
Started by seqadmin, 05-23-2024, 10:28 AM
0 responses
218 views
0 likes
Last Post seqadmin  
Started by seqadmin, 05-23-2024, 07:35 AM
0 responses
223 views
0 likes
Last Post seqadmin  
Started by seqadmin, 05-22-2024, 02:06 PM
0 responses
12 views
0 likes
Last Post seqadmin  
Working...
X