Skip to content

Commit

Permalink
small changes to copyRawDataToPrm.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
RoanKanninga committed Jul 7, 2016
1 parent 1593505 commit b85ca29
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions compute5/NGS_Automated/copyRawDataToPrm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ do

if [ -d ${LOGDIR}/${filePrefix}/ ]
then
echo "(copyPrm) everything is finished of ${filePrefix}"
continue
fi

Expand Down Expand Up @@ -132,15 +131,15 @@ do
mv $LOGDIR/${filePrefix}.copyToPrm.logger $LOGDIR/${filePrefix}/
mv ${LOGDIR}/TMP/${filePrefix}.unique.projects $LOGDIR/${filePrefix}/projects.txt
echo "finished with rawdata" >> ${LOGDIR}/${filePrefix}/${filePrefix}.copyToPrm.logger

logFileStatistics=$(cat ${RAWDATADIR}/${filePrefix}/${filePrefix}*.log)
if [ ${groupname} == "umcg-gaf" ]
if ls ${RAWDATADIR}/${filePrefix}/${filePrefix}*.log 1> /dev/null 2>&1
then

echo -e "Demultiplex statistics ${filePrefix}: \n\n ${logFileStatistics}" | mail -s "Demultiplex statistics ${filePrefix}" ${GAFmail}
logFileStatistics=$(cat ${RAWDATADIR}/${filePrefix}/${filePrefix}*.log)
if [ ${groupname} == "umcg-gaf" ]
then
echo -e "Demultiplex statistics ${filePrefix}: \n\n ${logFileStatistics}" | mail -s "Demultiplex statistics ${filePrefix}" ${GAFmail}
fi
echo -e "De data voor project ${filePrefix} is gekopieerd naar ${RAWDATADIRPRM}" | mail -s "${filePrefix} copied to permanent storage" ${ONTVANGER}
fi
echo -e "De data voor project ${filePrefix} is gekopieerd naar ${RAWDATADIRPRM}" | mail -s "${filePrefix} copied to permanent storage" ${ONTVANGER}

if [ -f $LOGDIR/${filePrefix}.failed ]
then
rm $LOGDIR/${filePrefix}.failed
Expand Down

0 comments on commit b85ca29

Please sign in to comment.