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
          Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
          by SEQadmin2



          CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

          Despite this, “CRISPR helped turn genome editing from a specialized technique into
          ...
          07-31-2026, 11:01 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Today, 07:41 AM
        0 responses
        9 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 08-03-2026, 10:13 AM
        0 responses
        25 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-31-2026, 02:55 AM
        0 responses
        38 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-24-2026, 12:17 PM
        0 responses
        25 views
        0 reactions
        Last Post SEQadmin2  
        Working...