Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd7eba5

Browse files
authored
hasta specific changes
* Remove seqtk directory * Added sourcing of production conda env
1 parent 0b16af4 commit cd7eba5

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

scripts/downsample.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ set -e
66
# import logging/versioning
77
source /mnt/hds/proj/bioinfo/SCRIPTS/log.bash
88

9-
VERSION=1.4.1
9+
#activate production conda env
10+
shopt -s expand_aliases
11+
source ${HOME}/.bashrc
12+
useprod
13+
14+
VERSION=1.4.2
1015
log VERSION $VERSION
1116

1217
##################
@@ -62,8 +67,6 @@ TOTALREADS=$4
6267

6368
[[ ! -e $OUTDIR ]] && mkdir $OUTDIR
6469

65-
SEQTK_DIR=/mnt/hds/proj/bioinfo/SCRIPTS/git/downsampling/seqtk/
66-
6770
########
6871
# RUN! #
6972
########
@@ -106,7 +109,7 @@ log 'Running:'
106109
PIDFILE=`mktemp`
107110

108111
# create forward downsample file -- and put it in the background
109-
COMMAND1="${SEQTK_DIR}/seqtk sample -s $SEED $DOUBLEPASS"
112+
COMMAND1="seqtk sample -s $SEED $DOUBLEPASS"
110113
COMMAND2="gzip --to-stdout"
111114
log "$COMMAND1 <(zcat ${INDIR}/${FORWARD_PATTERN}) $SAMPLESIZE | $COMMAND2 > ${OUTDIR}/${FORWARD_OUTFILE} &"
112115
( echo $BASHPID > $PIDFILE; exec $COMMAND1 <(zcat ${INDIR}/${FORWARD_PATTERN}) $SAMPLESIZE ) | $COMMAND2 > ${OUTDIR}/${FORWARD_OUTFILE} &

0 commit comments

Comments
 (0)