-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFASTQ_dumper.sh
More file actions
28 lines (21 loc) · 828 Bytes
/
FASTQ_dumper.sh
File metadata and controls
28 lines (21 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/env bash
#PBS -l mem=1000mb,nodes=1:ppn=16,walltime=72:00:00
#PBS -m abe
#PBS -M pmorrell@umn.edu
#PBS -q mesabi
set -euo pipefail
# Peter L. Morrell, 26 July 2016, St. Paul, MN
# Updated 27 October 2016
# Dependencies: SRA Toolkit
# Requires bash version 4+ for mapfile
# Current version will work with "declare" sure to create array
module load sratoolkit
module load parallel
# directory for out of fastq.gz files
WORKING=/panfs/roc/scratch/pmorrell/MBE_Barley
# initalize the array that will hold a list of SRA files
#SRA=()
#mapfile -t SRA < <(find ${WORKING} -maxdepth 1 -name '*.sra' -type f)
declare -a SRA=($(find ${WORKING} -maxdepth 1 -name '*.sra' -type f))
echo "${#SRA[@]} samples"
parallel --verbose "fastq-dump --split-files -I -F --gzip {} --outdir ${WORKING}" ::: "${SRA[@]}"