Skip to content

Commit

Permalink
PanSN requres a number for the haplotype_id
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Aug 22, 2024
1 parent c09b848 commit 396f5bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion partition-before-pggb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ fi
# Check Pangenome Sequence Naming (PanSN)
pansn_not_respected=false
while IFS= read -r line; do
if [[ ! $line =~ ^([^#]+#)+[^#]+$ ]] && [[ "$pansn_not_respected" == "false" ]]; then
if [[ ! $line =~ ^([^#]+#)[0-9]+#[^#]+$ ]] && [[ "$pansn_not_respected" == "false" ]]; then
pansn_not_respected=$line
break
fi
Expand Down
4 changes: 2 additions & 2 deletions pggb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ check_tool_availability "gfaffix" "gfaffix"
if [ "$vcf_spec" != "false" ]; then
check_tool_availability "vg" "vg"
check_tool_availability "vcfbub" "vcfbub"
check_tool_availability "vcfwave" "vcfwave"
#check_tool_availability "vcfwave" "vcfwave"
check_tool_availability "bcftools" "bcftools"
fi
if [[ $multiqc == true ]]; then
Expand Down Expand Up @@ -308,7 +308,7 @@ fi
# Check Pangenome Sequence Naming (PanSN)
pansn_not_respected=false
while IFS= read -r line; do
if [[ ! $line =~ ^([^#]+#)+[^#]+$ ]] && [[ "$pansn_not_respected" == "false" ]]; then
if [[ ! $line =~ ^([^#]+#)[0-9]+#[^#]+$ ]] && [[ "$pansn_not_respected" == "false" ]]; then
pansn_not_respected=$line
break
fi
Expand Down

0 comments on commit 396f5bb

Please sign in to comment.