Skip to content

Commit

Permalink
Merge pull request #341 from pangenome/fix_vcf_decomp
Browse files Browse the repository at this point in the history
fix parameter parsing
  • Loading branch information
AndreaGuarracino committed Oct 23, 2023
2 parents b2843d0 + 0b6fbbd commit bccc2ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pggb
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,11 @@ if [[ $vcf_spec != false ]]; then
for s in $( echo "$vcf_spec" | tr ',' ' ' );
do
ref=$(echo "$s" | cut -f 1 -d: )
pop_length=$(echo "$s" | cut -f 2 -d: )
if [[ "$s" == *":"* ]]; then
pop_length=$(echo "$s" | cut -f 2 -d: )
else
pop_length=""
fi
if [[ -z $pop_length ]]; then
pop_length=0
fi
Expand Down

0 comments on commit bccc2ba

Please sign in to comment.