File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66# import logging/versioning
77source /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
1015log 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:'
106109PIDFILE=` 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 "
110113COMMAND2=" gzip --to-stdout"
111114log " $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} &
You can’t perform that action at this time.
0 commit comments