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
        Addressing Off-Target Effects in CRISPR Technologies
        by seqadmin






        The first FDA-approved CRISPR-based therapy marked the transition of therapeutic gene editing from a dream to reality1. CRISPR technologies have streamlined gene editing, and CRISPR screens have become an important approach for identifying genes involved in disease processes2. This technique introduces targeted mutations across numerous genes, enabling large-scale identification of gene functions, interactions, and pathways3. Identifying the full range...
        08-27-2024, 04:44 AM
      • seqadmin
        Selecting and Optimizing mRNA Library Preparations
        by seqadmin



        Sequencing mRNA provides a snapshot of cellular activity, allowing researchers to study the dynamics of cellular processes, compare gene expression across different tissue types, and gain insights into the mechanisms of complex diseases. “mRNA’s central role in the dogma of molecular biology makes it a logical and relevant focus for transcriptomic studies,” stated Sebastian Aguilar Pierlé, Ph.D., Application Development Lead at Inorevia. “One of the major hurdles for...
        08-07-2024, 12:11 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 08-27-2024, 04:40 AM
      0 responses
      16 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 08-22-2024, 05:00 AM
      0 responses
      293 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 08-21-2024, 10:49 AM
      0 responses
      135 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 08-19-2024, 05:12 AM
      0 responses
      124 views
      0 likes
      Last Post seqadmin  
      Working...
      X