Skip to content

Commit

Permalink
Merge pull request #92 from szhan/handle_none_in_allele_list
Browse files Browse the repository at this point in the history
Remove None when making alternate alleles string if in allele list
  • Loading branch information
szhan authored Jun 8, 2023
2 parents 6db01a9 + adadf4b commit c88d5ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def print_tsdata_to_vcf(
# If the ts was produced by simulation,
# there's no ref. sequence other than the ancestral sequence.
REF = v.site.ancestral_state
alt_alleles = list(set(v.alleles) - {REF})
alt_alleles = list(set(v.alleles) - {REF} - {None})
AA = v.site.ancestral_state
ALT = ",".join(alt_alleles) if len(alt_alleles) > 0 else "."
INFO = "AA" + "=" + AA
Expand Down

0 comments on commit c88d5ec

Please sign in to comment.