Im trying to write a script where an optional input of -X flag can be used, or if that info is not available download all reads.
my script as follow:
# usage : bash dump_qc.sh <run id> <number of reads>
#run id variable.
SRR=$1
#maximum reads variable
X=$2
fastq-dump --split-3 -X ${X} ${SRR}
So, if I run the script
bash dump_qc.sh SRR1234 100
Will download 100 reads from the specified SRR file.
What I would like to do is to make the second argument optional, if not specified download the whole data set!