Skip to content

Commit

Permalink
v0.1.3: fixed default tmpdir/outdir to current working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
inutano committed Jun 7, 2017
1 parent 86ec3e5 commit 48061ea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bin/pfastq-dump
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
set -e

# pfastq-dump version
VERSION="0.1.2"
VERSION="0.1.3"

# default arguments
TMPDIR="$( cd $( dirname ${BASH_SOURCE[0]} ) && pwd )"
OUTDIR="${TMPDIR}"
TMPDIR="$( pwd -P )"
OUTDIR="$( pwd -P )"
NTHREADS=1

# functions for version and help
Expand Down Expand Up @@ -174,6 +174,9 @@ check_binary_location(){
check_binary_location "sra-stat"
check_binary_location "fastq-dump"

echo "tmpdir: ${TMPDIR}"
echo "outdir: ${OUTDIR}"

if [[ ! -z "${SRAID}" ]]; then
spot_count=`calc_spot_count "${SRAID}"`
parallel_fastq_dump "${SRAID}" "${spot_count}"
Expand Down

0 comments on commit 48061ea

Please sign in to comment.