Skip to content

Commit

Permalink
Merge pull request #241 from RoanKanninga/master
Browse files Browse the repository at this point in the history
updated what to write to .zip file
  • Loading branch information
Gerbenvandervries authored Jan 29, 2019
2 parents cbaf846 + 2d302dc commit 6d2baea
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions protocols/CopyToResultsDir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,12 @@ echo "Creating zip file"
CURRENT_DIR=$(pwd)
cd "${projectResultsDir}"

zip -gr "${projectResultsDir}/${project}.zip" variants
zip -gr "${projectResultsDir}/${project}.zip" variants/*.vcf*
zip -gr "${projectResultsDir}/${project}.zip" variants/cnv
zip -gr "${projectResultsDir}/${project}.zip" variants/GAVIN
zip -gr "${projectResultsDir}/${project}.zip" qc
zip -g "${projectResultsDir}/${project}.zip" "${project}.csv"
zip -g "${projectResultsDir}/${project}.zip" "${project}_multiqc_report.html"
zip -gr "${projectResultsDir}/${project}.zip" coverage

echo "Zip file created: ${projectResultsDir}/${project}.zip "

Expand All @@ -244,17 +245,6 @@ echo "Made md5 file for ${projectResultsDir}/${project}.zip "

cd "${CURRENT_DIR}"

echo "pipeline is finished"
#touch ${logsDir}/${project}/${project}.pipeline.finished
runNumber=$(basename $( dirname "${projectResultsDir}"))
if [ -f "${logsDir}/${project}/${runNumber}.pipeline.started" ]
then
mv "${logsDir}/${project}/${runNumber}.pipeline".{started,finished}
else
touch "${logsDir}/${project}/${runNumber}.pipeline.finished"
fi
rm -f "${logsDir}/${project}/${runNumber}.pipeline.failed"
echo "${logsDir}/${project}/${runNumber}.pipeline.finished is created"

if [ ! -d "${logsDir}/${project}/" ]
then
Expand Down Expand Up @@ -310,4 +300,17 @@ fi
## removing phiX.recoded files
rm -f "${projectResultsDir}/rawdata/ngs/"*".phiX.recoded.fq.gz"

echo "pipeline is finished"
#touch ${logsDir}/${project}/${project}.pipeline.finished
runNumber=$(basename $( dirname "${projectResultsDir}"))
if [ -f "${logsDir}/${project}/${runNumber}.pipeline.started" ]
then
mv "${logsDir}/${project}/${runNumber}.pipeline".{started,finished}
else
touch "${logsDir}/${project}/${runNumber}.pipeline.finished"
fi
rm -f "${logsDir}/${project}/${runNumber}.pipeline.failed"
echo "${logsDir}/${project}/${runNumber}.pipeline.finished is created"


touch pipeline.finished

0 comments on commit 6d2baea

Please sign in to comment.