#!/bin/bash #SBATCH --export=NONE # do not export current env to the job #SBATCH --job-name=fastqc # job name #SBATCH --time=01:00:00 # max job run time dd-hh:mm:ss #SBATCH --ntasks-per-node=1 # tasks (commands) per compute node #SBATCH --cpus-per-task=2 # CPUs (threads) per command #SBATCH --mem=14G # total memory per node #SBATCH --output=stdout.%x.%j # save stdout to file #SBATCH --error=stderr.%x.%j # save stderr to file module load FastQC/0.11.9-Java-11 < to save results to instead of directory where reads are located # must already exist before using -o option # --nogroup will calculate average at each base instead of bins after the first 50 bp # fastqc runs one thread per file; using 20 threads for 2 files does not speed up the processing fastqc -t $threads -o $output_dir $pe1_1 $pe1_2 ################################################################################ <