https://github.com/coke6162/B2_SINE_enhancers
Tip revision: 709eaa23c1c245c9485cdeeacaf73aa18811e9e7 authored by coke6162 on 24 February 2023, 19:54:18 UTC
updated to clarify Qiao vs McCann
updated to clarify Qiao vs McCann
Tip revision: 709eaa2
fastqc.sbatch
#!/bin/bash
# Script for generating fastq quality control reports
# Example usage:
# sbatch --array 0-17 fastqc.sbatch
# General settings
#SBATCH -p short
#SBATCH -N 1
#SBATCH -n 2
#SBATCH --time=1:00:00
#SBATCH --mem=4GB
# Job name and output
#SBATCH -J fastqc
#SBATCH -o /Users/%u/slurmOut/slurm-%A_%a.out
#SBATCH -e /Users/%u/slurmErr/slurm-%A_%a.err
# Load FastQC
module load fastqc/0.11.8
# Define constant variables
numThreads=2
# Define query files
queries=($(ls *_trimmed.fastq.gz))
# Run FastQC
pwd; hostname; date
echo "Processing file: "${queries[$SLURM_ARRAY_TASK_ID]}
echo $(date +"[%b %d %H:%M:%S] Running fastqc on fastq files...")
fastqc -o fastqc_out -f fastq -t ${numThreads} ${queries[$SLURM_ARRAY_TASK_ID]}
echo $(date +"[%b %d %H:%M:%S] Done")