view shell-script-template.sh @ 2:5f00aef42904 draft

planemo upload commit 58ac10c63c4cc51b4122de0fa07b887ace6df657-dirty
author mingchen0919
date Wed, 25 Apr 2018 15:55:23 -0400
parents
children
line wrap: on
line source

# SHELL_SCRIPT file name
SHELL_SCRIPT='fastqc.sh'

# run SHELL_SCRIPT within tool outputs directory
cd ${REPORT_FILES_PATH}

# build job-script.sh
cat >temp.sh <<EOF

cp ${X_r} read_1.fq
cp ${X_R} read_2.fq

fastqc \\
  -q \\
  -c ${X_c} \\
  -l ${X_l} \\
  ${X_d}/read_1.fq > /dev/null 2>&1
  
fastqc \\
  -q \\
  -c ${X_c} \\
  -l ${X_l} \\
  ${X_d}/read_2.fq > /dev/null 2>&1

EOF

grep -v None temp.sh > ${SHELL_SCRIPT}
rm temp.sh

# run SHELL_SCRIPT
sh ${SHELL_SCRIPT}


# unzip outputs
unzip -q read_1_fastqc.zip
unzip -q read_2_fastqc.zip