Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- cd /data/reddylab/projects/GGR/data
- FILES=($(find chip_seq rna_seq dnase_seq chip_seq_tag_tf -type f -iname "*fastq"))
- sbatch \
- -pnew,all \
- --array=0-$((${#FILES[*]}-1))%20 \
- <<EOF
- #!/bin/bash
- #SBATCH --output=/data/reddylab/tmp/gzip_processed_read_files_%A_%a.out
- FILES=(${FILES[@]})
- FILE=\${FILES[\${SLURM_ARRAY_TASK_ID}]}
- if [[ ! -e \${FILE}.gz ]];
- then
- gzip \${FILE}
- fi
- printf "\$(uname -n)\t\${FILE}\tDone.\n"
- EOF
Add Comment
Please, Sign In to add comment