Skip to content

Commit

Permalink
change serotype call to be always on untrimmed coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ViralVerity committed Sep 5, 2023
1 parent 2197979 commit d3c870d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions denv_pipeline/scripts/serotype_caller.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def populate_line(args):

seq_trim = sequence[trim_pos[0]-1:trim_pos[1]]
perc_cov_trim = calculate_coverage(seq_trim, amb_list)[0]
perc_cov_relevant = perc_cov_trim

with open(args.alignment.replace(".out.aln",".out.trim.aln"), 'w') as new_file:
SeqIO.write(seq_trim, new_file, 'fasta')
Expand All @@ -77,9 +76,8 @@ def populate_line(args):

else:
perc_cov_trim = "NA"
perc_cov_relevant = perc_cov

if perc_cov_relevant>=min_coverage:
if perc_cov>=min_coverage:
write_dict["serotype_called"] = serotype
else:
write_dict["serotype_called"] = "NA"
Expand Down

0 comments on commit d3c870d

Please sign in to comment.