Skip to content

Commit

Permalink
adding in no check when not needed for different stages
Browse files Browse the repository at this point in the history
  • Loading branch information
nchernia committed Nov 15, 2017
1 parent 2582632 commit 7ff22d9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions CPU/juicer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,14 @@ if [[ -z "$final" && -z "$dedup" && -z "$postproc" && -z "$deduponly" && -z "$me
if stat -t ${fastqdir} >/dev/null 2>&1
then
echo "(-: Looking for fastq files...fastq files exist"
testname=$(ls -l ${fastqdir} | awk 'NR==1{print $9}')
if [ "${testname: -3}" == ".gz" ]
then
read1=${splitdir}"/*${read1str}*.fastq.gz"
gzipped=1
else
read1=${splitdir}"/*${read1str}*.fastq"
fi
else
if [ ! -d "$splitdir" ]; then
echo "***! Failed to find any files matching ${fastqdir}"
Expand Down Expand Up @@ -287,15 +295,6 @@ fi
## Arguments have been checked and directories created. Now begins
## the real work of the pipeline

testname=$(ls -l ${fastqdir} | awk 'NR==1{print $9}')
if [ "${testname: -3}" == ".gz" ]
then
read1=${splitdir}"/*${read1str}*.fastq.gz"
gzipped=1
else
read1=${splitdir}"/*${read1str}*.fastq"
fi

headfile=${outputdir}/header
date > $headfile
# Experiment description
Expand Down

0 comments on commit 7ff22d9

Please sign in to comment.