Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • File compression tips

    Hi all,

    I have a large collection of FASTA files and tabular BLAST files ~30-60 TB that I would like to archive. Does anyone have any experience with saving storage space by sorting these files before compression? Or should I skip this and look into different compression formats other than GZIP?

    edit
    Will not be saved to an actual archive system.

    Thanks!
    Last edited by bio_boris; 08-25-2014, 09:48 AM.

  • #2
    hi bio_boris,
    I have some experience with compressing fastq (not fasta though) using double compression of tar.gz
    Though it would take lot of time (>1hr on a Linux wrkstn; fastq's of avg. 20Gb), about 3 fold compression is achieved.

    Comment


    • #3
      Sorting mapped files can save a lot of space, though sorting fasta, probably not so much, though it depends on the contents.

      I recommend that you use pigz, which can create gzip files using all available CPU cores and thus is way faster than gzip for the same compression level. That means you can increase to a higher compression level at the same or better speed. Syntax is just like gzip and the files are still compatible with gzip. There are higher-compression formats, but gzip is more ubiquitous and better supported.

      Comment


      • #4
        BZIP2 is better than GZIP, at the cost of compression and decompression speed.

        Many folks have bench marked the size and speed tradeoffs ...



        Note: (via stackoverlow http://stackoverflow.com/questions/4...with-all-cores ) ...
        find /source -type f -print0 | xargs -0 -n 1 -P $CORES gzip -9
        to saturate your CPUs if you don't have pigz (which is a great name for a program ... "pigz" ... cool).
        Last edited by Richard Finney; 08-25-2014, 09:24 AM.

        Comment


        • #5
          @bio_boris: If you are going to archive to tape then you should let the backup software take care of the compression.

          Comment


          • #6
            Originally posted by Richard Finney View Post
            BZIP2 is better than GZIP, at the cost of compression and decompression speed.
            I personally prefer bzip2 for that reason (the compression part), at least for archiving data. There is a program called pbzip2 that can be installed through your package manager and this speeds things up significantly by using all your CPUs, or any number you specify.

            Comment


            • #7
              pbzip2 is an efficient way to compress data.
              the command here will do the task

              tar cf outputfile_name --use-compress-prog=pbzip2 inputfile_or_directory

              Comment

              Latest Articles

              Collapse

              • seqadmin
                Advancing Precision Medicine for Rare Diseases in Children
                by seqadmin




                Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
                12-16-2024, 07:57 AM
              • seqadmin
                Recent Advances in Sequencing Technologies
                by seqadmin



                Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

                Long-Read Sequencing
                Long-read sequencing has seen remarkable advancements,...
                12-02-2024, 01:49 PM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, 12-17-2024, 10:28 AM
              0 responses
              34 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 12-13-2024, 08:24 AM
              0 responses
              49 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 12-12-2024, 07:41 AM
              0 responses
              34 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 12-11-2024, 07:45 AM
              0 responses
              46 views
              0 likes
              Last Post seqadmin  
              Working...
              X