Mercurial > repos > davidvanzessen > shm_csr
diff baseline/wrapper.sh @ 98:d714f5ea83d7 draft default tip
planemo upload commit 1a01065a084a817382872154f779b94090a35ebf
author | rhpvorderman |
---|---|
date | Wed, 10 Jan 2024 12:32:47 +0000 |
parents | b6f9a640e098 |
children |
line wrap: on
line diff
--- a/baseline/wrapper.sh Mon Jan 08 08:50:07 2024 +0000 +++ b/baseline/wrapper.sh Wed Jan 10 12:32:47 2024 +0000 @@ -1,4 +1,5 @@ #!/bin/bash + dir="$(cd "$(dirname "$0")" && pwd)" testID=$1 @@ -79,14 +80,16 @@ echo "$workdir/${outID}.txt" -rows=`tail -n +2 $workdir/${outID}.txt | grep -v "All sequences combined" | grep -n 'Group' | grep -Eoh '^[0-9]+' | tr '\n' ' '` -rows=($rows) -#unset rows[${#rows[@]}-1] +if [[ -f "$workdir/${outID}.txt" ]] +then + rows=`tail -n +2 $workdir/${outID}.txt | grep -v "All sequences combined" | grep -n 'Group' | grep -Eoh '^[0-9]+' | tr '\n' ' '` + rows=($rows) + #unset rows[${#rows[@]}-1] -cd $dir -Rscript --verbose $dir/comparePDFs.r $workdir/${outID}.RData $output ${rows[@]} 2>&1 -cp $workdir/result.txt ${output_table} + cd $dir + Rscript --verbose $dir/comparePDFs.r $workdir/${outID}.RData $output ${rows[@]} 2>&1 + cp $workdir/result.txt ${output_table} +fi -