Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • JonB
    Member
    • Jan 2010
    • 85

    TopHat error: could not open writer pipe gzip

    Hi,

    I am running TopHat on my MacBook Air. Everything seemed to be running fine, but after maybe 30min of "Mapping left_kept_reads to genome" it stopped with this error message:

    Error: could not open writer pipe gzip -cf - < ./tophat_out/tmp/left_kept_reads_seg123.fq.z

    Anyone know what this means?

    Thanks!

    Jon
  • EGrassi
    Member
    • Oct 2010
    • 66

    #2
    Is your disk full or almost there? (just guessing, I've never seen that error myself)

    Comment

    • JonB
      Member
      • Jan 2010
      • 85

      #3
      I have about 23 GB of disk space left. I tried to monitor the disk space as the analysis was running and couldn't see if I ran out of space.

      Comment

      • SDiehl
        Junior Member
        • Apr 2013
        • 3

        #4
        I have the same issue:
        [2013-04-25 18:00:32] Beginning TopHat run (v2.0.7)
        -----------------------------------------------
        [2013-04-25 18:00:32] Checking for Bowtie
        Bowtie version: 2.0.5.0
        [2013-04-25 18:00:32] Checking for Samtools
        Samtools version: 0.1.18.0
        [2013-04-25 18:00:32] Checking for Bowtie index files
        [2013-04-25 18:00:32] Checking for reference FASTA file
        [2013-04-25 18:00:32] Generating SAM header for ../../reference/petMar2
        format: fasta
        [2013-04-25 18:00:34] Preparing reads
        left reads: min. length=201, max. length=16867, 266767 kept reads (0 discarded)
        [2013-04-25 18:01:04] Mapping left_kept_reads to genome petMar2 with Bowtie2
        Error: could not open writer pipe gzip -cf - < Sample1_petMar2/tmp/left_kept_reads_seg508.fq.z
        I have enough disk space and everything. I tried with several versions of tophat2 and bowtie2 and several samples and always the same error. The file tmp/left_kept_reads_seg508.fq.z is empty, but the rest of the temp files are ok. The only thing that was the same all the time was the reference, which I build myself from the UCSC fasta from petMar2. Everything worked fine previously with a different version of the reference. I also didn't see any other error in the logs. So the reference should be fine since bowtie2 works.

        Comment

        • JonB
          Member
          • Jan 2010
          • 85

          #5
          I don't remember exactly, but I think this problem was because I ran out of memory. I haven't been running tophat locally since, but on a cluster with ~8 GB of memory I never have this problem.

          Comment

          • SDiehl
            Junior Member
            • Apr 2013
            • 3

            #6
            Thanks for the reply JonB. I tried running tophat2 on two different powerful servers which both have much more than 8GB memory.

            Comment

            • Lizex
              Member
              • Feb 2011
              • 22

              #7
              Tophat gzip program not found

              Originally posted by SDiehl View Post
              Thanks for the reply JonB. I tried running tophat2 on two different powerful servers which both have much more than 8GB memory.
              Hi SDiehl
              Did you get a solution for your problem you had regarding Tophat not opening gzip. I think I have a similar problem. I have compiled and installed Tophat2. When running tophat on the test_data, I got this error:
              test_data $ tophat2 -r 20 test_ref reads_1.fq reads_2.fq
              Error: cannot find compression program gzip

              It says it cannot find the compression program gzip. Any idea or suggestion what I should do?

              Thanks in advance

              Lizex

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #8
                Originally posted by Lizex View Post

                It says it cannot find the compression program gzip. Any idea or suggestion what I should do?

                Thanks in advance

                Lizex
                Depending on the unix distro you are using there will be different ways of getting "gzip" installed. At a minimum you can find the official download here: http://ftp.gnu.org/gnu/gzip/

                It may be simple to look up (and install) gzip using your software repository (e.g. software center in Ubuntu).

                Comment

                • SDiehl
                  Junior Member
                  • Apr 2013
                  • 3

                  #9
                  Originally posted by Lizex View Post
                  Hi SDiehl
                  Did you get a solution for your problem you had regarding Tophat not opening gzip. I think I have a similar problem. I have compiled and installed Tophat2. When running tophat on the test_data, I got this error:
                  test_data $ tophat2 -r 20 test_ref reads_1.fq reads_2.fq
                  Error: cannot find compression program gzip

                  It says it cannot find the compression program gzip. Any idea or suggestion what I should do?

                  Thanks in advance

                  Lizex
                  In my case gzip was not the problem. For some strange reason it turned out the be the reference. After I redid the reference everything worked fine again.

                  As GenoMax already said, most likely you need to install gzip or add it to your path, such that tophat can find it.

                  Comment

                  • Lizex
                    Member
                    • Feb 2011
                    • 22

                    #10
                    Tophat gzip program not found

                    Thanks guys.

                    I downloaded the gzip and put it in my PATH. It seems to have done the trick.

                    Cheers

                    Lizex

                    Comment

                    • edm1
                      Member
                      • May 2013
                      • 10

                      #11
                      In case this is useful to anyone in the future; My problem was that I was running on a Beowolf cluster and the network drive I had my reads on was only available from the login nodes, not the worker node.
                      Last edited by edm1; 06-18-2014, 02:42 AM.

                      Comment

                      • seqprone
                        Junior Member
                        • Oct 2015
                        • 9

                        #12
                        Originally posted by SDiehl View Post
                        In my case gzip was not the problem. For some strange reason it turned out the be the reference. After I redid the reference everything worked fine again.

                        As GenoMax already said, most likely you need to install gzip or add it to your path, such that tophat can find it.
                        Could you please explain how you 'redid the reference'? Thanks!

                        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, 07-24-2026, 12:17 PM
                        0 responses
                        31 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-23-2026, 11:41 AM
                        0 responses
                        23 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-20-2026, 11:10 AM
                        0 responses
                        214 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-13-2026, 10:26 AM
                        0 responses
                        79 views
                        0 reactions
                        Last Post SEQadmin2  
                        Working...