Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jk1124
    Member
    • Oct 2012
    • 17

    #1

    Decompressing a file - very basic question

    Hi everyone,

    I have been running my sequencing analysis on a remote server. The sequencing data that I receive is compressed (.gz), so what I upload onto the server is a compressed file. I have been using gunzip to decompress these.

    My concern is that often the process seems to take so long that I get a "Write failed" "broken pipe" error. The file no longer has the .gz extension, so it seems to have decompressed, but I have no decompressed file with which to compare size. So, a few questions:

    1. Is there a way to make sure a file decompressed completely, without having a size to compare beforehand?

    2. If a file does fail to decompress, does it remain in some kind of partially-decompressed state or does it revert?

    3. Is there a faster way to decompress large files?

    Thanks in advance.
  • dsenalik
    Carrot Scientist
    • Nov 2009
    • 42

    #2
    What may be happening is your connection times out due to "inactivity" while waiting for the file to uncompress.

    One general purpose solution may be to (depending on what operating system and client program you are using) is to set "keepalive" to something, like once every 60 seconds, so the connection does not die. Google "keepalive" and the program you are using. e.g. in Ubuntu here's the first Google hit from 2006 that has the instructions http://embraceubuntu.com/2006/02/03/...essions-alive/

    for #1 and #2, in my experience if the decompress fails, everything reverts to the original condition.

    for #3, probably not, but you can decompress multiple files at the same time (assuming you have more than one processor core) by detaching the jobs, e.g.
    Code:
    gunzip whoppinggreatfastqfile.fq.gz &
    and if you detach from the terminal, then it will run to completion even if you disconnect, i.e.
    Code:
    nohup gunzip whoppinggreatfastqfile.fq.gz &

    Comment

    • rflrob
      Member
      • May 2010
      • 50

      #3
      You might also look into GNU screen, which lets you disconnect from a window, then reconnect later. It's like nohup, but better. People had been telling me for years to use it, and when I finally did, I wanted to slap myself backwards through time for not using it sooner.

      Comment

      • jk1124
        Member
        • Oct 2012
        • 17

        #4
        Great! Thanks for the advice.

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
          by SEQadmin2



          Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

          Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
          ...
          10-14-2026, 09:55 AM
        • SEQadmin2
          New Genomics Technologies Take Aim at Long-Standing Limits
          by SEQadmin2


          Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

          We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
          ...
          09-28-2026, 10:25 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Yesterday, 11:13 AM
        0 responses
        16 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, Yesterday, 10:48 AM
        0 responses
        17 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        35 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        42 views
        0 reactions
        Last Post SEQadmin2  
        Working...