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
        Non-Coding RNA Research and Technologies
        by seqadmin




        Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

        Nobel Prize for MicroRNA Discovery
        This week,...
        10-07-2024, 08:07 AM
      • seqadmin
        Recent Developments in Metagenomics
        by seqadmin





        Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
        09-23-2024, 06:35 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 10-02-2024, 04:51 AM
      0 responses
      103 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 10-01-2024, 07:10 AM
      0 responses
      111 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 09-30-2024, 08:33 AM
      1 response
      114 views
      0 likes
      Last Post EmiTom
      by EmiTom
       
      Started by seqadmin, 09-26-2024, 12:57 PM
      0 responses
      20 views
      0 likes
      Last Post seqadmin  
      Working...
      X