Skip to content

Commit bee0614

Browse files
committed
always report ambiguous bases in align2allele output
1 parent 5bd6fb8 commit bee0614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workflow/scripts/align2alleles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def write_variant_list(variant_positions, sequences, reference_sample):
7777
variant_positions = list()
7878
for i in range(0, alen):
7979
supported_bases = list()
80-
for b in ("A", "C", "G", "T"):
80+
for b in counters[i]:
8181
c = counters[i][b]
82-
if c >= args.min_allele_count:
82+
if b != "N" and c >= args.min_allele_count:
8383
supported_bases.append(b)
8484

8585
if len(supported_bases) > 1:

0 commit comments

Comments
 (0)