#!/bin/bash #SBATCH --export=NONE # do not export current env to the job #SBATCH --job-name=seqtk # job name #SBATCH --time=01:00:00 # max job run time #SBATCH --ntasks-per-node=2 # tasks (commands) per compute node #SBATCH --cpus-per-task=2 # CPUs (threads) per command #SBATCH --mem=32G # total memory #SBATCH --output=stdout.%x.%j # save stdout to file #SBATCH --error=stderr.%x.%j # save stderr to file module load GCC/8.3.0 seqtk/1.3 < $pe_1_out & seqtk sample -s$random_seed $pe_2 $subsample_fraction > $pe_2_out & wait ################################################################################ <