

set -ex



if ! grep "/LIBS/GUID" ~/.ncbi/user-settings.mkfg &> /dev/null; then mkdir -p ~/.ncbi && printf '/LIBS/GUID = "%s"\n' `uuid` > ~/.ncbi/user-settings.mkfg; fi
fastq-dump --help > /dev/null
fasterq-dump --help > /dev/null
prefetch --help > /dev/null
sam-dump --help > /dev/null
sra-pileup --help > /dev/null
vdb-config --help > /dev/null
vdb-decrypt --help > /dev/null
fastq-dump SRR002702 && grep '@SRR002702.1 EX35NVW14INCVK' SRR002702.fastq && rm SRR002702.fastq
prefetch SRR002702 -O ./ && test -d SRR002702 && rm -r SRR002702
sam-dump SRR002702 | grep 'EX35NVW14ISYAK'
exit 0
