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
        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
      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 08:47 AM
      0 responses
      9 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      60 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      57 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      53 views
      0 likes
      Last Post seqadmin  
      Working...
      X