Skip to content

Commit

Permalink
Merge pull request #405 from pangenome/strict_pansn_check
Browse files Browse the repository at this point in the history
PanSN requires a number as haplotype_id
  • Loading branch information
AndreaGuarracino authored Aug 22, 2024
2 parents c09b848 + f6908eb commit 9c2a8b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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
2 changes: 1 addition & 1 deletion 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

0 comments on commit 9c2a8b8

Please sign in to comment.