Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • leontp587
    Junior Member
    • Jul 2014
    • 6

    Galaxy import BAM file error

    I installed my own copy of Galaxy on my local computer. It runs very well, I modified the universe_wsgi.ini file to allow for uploading of bam files from the system path.

    So, when I tried to add a bam file to the shared library as admin, I get the error below. Anybody know what is going on here? It's a 55GB bam file.

    Traceback (most recent call last):
    File "/home/leon/galaxy-dist/tools/data_source/upload.py", line 394, in
    __main__()
    File "/home/leon/galaxy-dist/tools/data_source/upload.py", line 383, in __main__
    add_file( dataset, registry, json_file, output_path )
    File "/home/leon/galaxy-dist/tools/data_source/upload.py", line 292, in add_file
    if datatype.dataset_content_needs_grooming( dataset.path ):
    File "/home/leon/galaxy-dist/lib/galaxy/datatypes/binary.py", line 148, in dataset_content_needs_grooming
    version = self._get_samtools_version()
    File "/home/leon/galaxy-dist/lib/galaxy/datatypes/binary.py", line 130, in _get_samtools_version
    output = subprocess.Popen( [ 'samtools' ], stderr=subprocess.PIPE, stdout=subprocess.PIPE ).communicate()[1]
    File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
    errread, errwrite)
    File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
    raise child_exception
    OSError: [Errno 2] No such file or directory

    error
    Database/Build: ?
    BAM Index File: None
    Disk file: /home/leon/genome_data/hu80855C/PG0001217-BLD.bam
  • wolma
    Member
    • May 2014
    • 23

    #2
    When you import a bam file, Galaxy is trying to call samtools to check the file's content (to "groom" it as it's called in Galaxy)

    This part of the error message:

    File "/home/leon/galaxy-dist/lib/galaxy/datatypes/binary.py", line 130, in _get_samtools_version
    output = subprocess.Popen( [ 'samtools' ], stderr=subprocess.PIPE, stdout=subprocess.PIPE ).communicate()[1]
    File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
    errread, errwrite)
    File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
    raise child_exception
    OSError: [Errno 2] No such file or directory

    means that samtools wasn't found, which could be either because you haven't installed it or because it's in a directory that's not in your system PATH.

    Think of Galaxy as a framework. It provides user-friendly access to command line tools (like samtools), but you still have to install these tools.

    Best,
    Wolfgang

    Comment

    • wolma
      Member
      • May 2014
      • 23

      #3
      By the way,
      there is an excellent Galaxy-specific forum at https://biostar.usegalaxy.org/ .

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
        by SEQadmin2


        Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

        The systematic characterization of the human proteome has
        ...
        07-20-2026, 11:48 AM
      • SEQadmin2
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 12:17 PM
      0 responses
      11 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-23-2026, 11:41 AM
      0 responses
      11 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-20-2026, 11:10 AM
      0 responses
      23 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-13-2026, 10:26 AM
      0 responses
      37 views
      0 reactions
      Last Post SEQadmin2  
      Working...