Skip to content

Commit

Permalink
Merge pull request #215 from RoanKanninga/master
Browse files Browse the repository at this point in the history
removing creating old symlinks for concordance check
  • Loading branch information
pneerincx authored Jul 5, 2021
2 parents 6090373 + 07634b5 commit b23c38f
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions bin/copyProjectDataToPrm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,34 +196,6 @@ function rsyncProjectRun() {
cd "${PRM_ROOT_DIR}/projects/${_project}/"
if md5sum -c "${_run}.md5" > "${_run}.md5.log" 2>&1
then
cd "${PRM_ROOT_DIR}/concordance/${PRMRAWDATA}/"
mapfile -t files < <(find "${PRM_ROOT_DIR}/projects/${_project}/${_run}/results/${CONCORDANCEFILESPATH}" -mindepth 1 -maxdepth 1 \( -type l -o -type f \) -name "*.${CONCORDANCEFILESEXTENSION}")
for i in "${files[@]}"
do
if [[ "${_sampleType}" == 'GAP' ]]
then
local _belowSDThreshold="False"
_belowSDThreshold="$(awk '{if ($1 <0.2){print "True"}else {print "False"}}' "${i}.sd")"
if [[ "${_belowSDThreshold}" == 'True' ]]
then
ln -sf "${i}" .
else
log4Bash 'DEBUG' "${LINENO}" "${FUNCNAME:-main}" '0' "SD for ${i} is higher than 0.2; skipped"
fi
else
log4Bash 'DEBUG' "${LINENO}" "${FUNCNAME:-main}" '0' "Making symlinks for concordance check."
ln -sf "${i}" .
# shellcheck disable=SC2153
log4Bash 'DEBUG' "${LINENO}" "${FUNCNAME:-main}" '0' "Navigating to /groups/${GROUP}/${COMP_PRM_LFS}/concordance/${PRMRAWDATA}/ to create symlink for concordance check on the complementary prm"
cd "/groups/${GROUP}/${COMP_PRM_LFS}/concordance/${PRMRAWDATA}/"
ln -sf "${i}" .
log4Bash 'DEBUG' "${LINENO}" "${FUNCNAME:-main}" '0' "navigating back to ${PRM_ROOT_DIR}/concordance/${PRMRAWDATA}/ to create symlink for original prm"
cd -
fi
done
log4Bash 'DEBUG' "${LINENO}" "${FUNCNAME:-main}" '0' "Removing symlink for project VCF."
rm -f "${PRM_ROOT_DIR}/concordance/${PRMRAWDATA}/${_project}.final.vcf.gz"
cd "${PRM_ROOT_DIR}/projects/${_project}/"
if [[ "${_sampleType}" == 'GAP' ]]
then
log4Bash 'DEBUG' "${LINENO}" "${FUNCNAME:-main}" '0' "_sampleType is GAF. Making symlinks for DiagnosticOutput folder."
Expand Down

0 comments on commit b23c38f

Please sign in to comment.