Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thh32
    Member
    • Feb 2014
    • 60

    #1

    Bowtie output zipped but not zipped

    I have recently used Bowtie2 to separate out reads mapping to a set of genomes which which works fine however due to the size of my current dataset I had to input as zipped and output as zipped using the command below:

    bowtie2 -f --threads 8THREADS -N 1 --un-gz NZ_bowtie_nonaligned_hungate_thread.done --al-gz NZ_bowtie_aligned_hungate_thread.done -x /ibers/ernie/home/thh32/thh32/mcCabe_qualtrimmed
    _trimmed5P_files_.fastq/Hungate1000_index_bowtie -U /ibers/ernie/scratch/thh32/alldata.fa.gz -S /dev/null

    The process itself worked fine except for the output zipping. The files themselves were not acknowledged as zipped and so could not be unzipped, however the data inside looked like this:

    �95j����q�?�k�6��t��<^L����N� ��m��(N��k9ߟ4�|^��!�\/�߹��M����33���}^�6���۩s�}wsUo/��|.e^6{��\��Sf��sz̋��A���9H�%WLO���u~

    Is there anyway to convert this into fasta format again?

    Any help would be greatly appreciated.

    Many thanks,
    Tom
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    That looks a lot like compressed data to me. Remember that zipping refers to gzip, not another zip variant. If you want to decompress then just use gunzip.

    Comment

    • thh32
      Member
      • Feb 2014
      • 60

      #3
      I thought it looked like compressed data so I tried using gunzip but gunzip wouldn't accept the file as a zipped file and so gave this error:

      gzip: NZ_bowtie_nonaligned_hungate_thread.done: unknown suffix -- ignored

      And with unzip it provided this answer:

      Archive: NZ_bowtie_nonaligned_hungate_thread.done
      End-of-central-directory signature not found. Either this file is not
      a zipfile, or it constitutes one disk of a multi-part archive. In the
      latter case the central directory and zipfile comment will be found on
      the last disk(s) of this archive.

      Comment

      • thh32
        Member
        • Feb 2014
        • 60

        #4
        Managed to sort it out by using mv FILE FILE.gz and then was accepted and can be unzipped

        Comment

        • dpryan
          Devon Ryan
          • Jul 2011
          • 3478

          #5
          You just have to change the file name, since that's what gunzip is complaining about (the suffix in this case is "done", rather than "gz"). Try calling it "NZ_bowtie_nonaligned_hungate_thread.done.gz".

          Edit: Ah, you just figured that out, good

          Comment

          • westerman
            Rick Westerman
            • Jun 2008
            • 1104

            #6
            One other methods aside from renaming the file is to use 'zcat'. As the manual says:

            zcat will uncompress files that have the correct magic number whether they have a .gz suffix or not.

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
              by SEQadmin2




              NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
              Today, 06:46 AM
            • 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

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 10-28-2026, 09:57 AM
            0 responses
            22 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-28-2026, 09:51 AM
            0 responses
            14 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-22-2026, 11:13 AM
            0 responses
            67 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-22-2026, 10:48 AM
            0 responses
            47 views
            0 reactions
            Last Post SEQadmin2  
            Working...