From bf6d977d9c9d59e4d866386367775de7f0de307a Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Wed, 19 Nov 2025 13:26:21 -0600 Subject: [PATCH] Fix haplotype assignment bug: use -z instead of -eq for string check * Fix haplotype assignment bug: use -z instead of -eq for string check --- ResultToVcf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ResultToVcf.sh b/ResultToVcf.sh index 68b2911..7148abf 100755 --- a/ResultToVcf.sh +++ b/ResultToVcf.sh @@ -7,7 +7,7 @@ sa=`echo $aRes | tr "_" "\t" | awk '{ print $2;}'` sb=`echo $bRes | tr "_" "\t" | awk '{ print $2;}'` ha=`echo $aRes | tr "_" "\t" | awk '{ print $3;}' | tr -d "h"` hb=`echo $bRes | tr "_" "\t" | awk '{ print $3;}' | tr -d "h"` -if [[ $sb -eq "" ]]; then +if [[ -z "$sb" ]]; then sb=$sa hb=$ha fi