Seqanswers Leaderboard Ad

Collapse

Announcement

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

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

  • #2
    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

    Comment


    • #3
      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')

      Comment

      Latest Articles

      Collapse

      • 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
      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 05-14-2024, 07:03 AM
      0 responses
      20 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-10-2024, 06:35 AM
      0 responses
      44 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-09-2024, 02:46 PM
      0 responses
      54 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-07-2024, 06:57 AM
      0 responses
      42 views
      0 likes
      Last Post seqadmin  
      Working...
      X