#!/bin/bash ## Gzip is a standard UNIX program used to compress and uncompress files. A compressed file will typically have a ".gz" extension appended to the file name. It is recommended to compress large files to save on file space. ## Gzip compression is the standard method of compressing Fasta and Fastaq files and many HTS analysis programs can directly use .gz compressed Fasta or Fastq files as inputs, without having to uncompress first. However, if a program cannot directly use .gz compressed files, they must first be uncompressed with Gzip. ## Gzip Variables compress_file=/full/path/to/file.fastq ## File to Compress. uncompress_file=/full/path/to/file.fastq.gz ## File to Decompress. ## Comment (##) and uncomment the below based on whether compression or decompression is needed. Decompression just requires adding the "-d" parameter. ## Gzip Compression ##gzip -v $compress_file ## Gzip Decompression (Unzipping) gzip -vd $uncompress_file