Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jodyphelan committed Oct 17, 2024
1 parent 104116c commit 7d8bc7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/combine_vcf_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,10 @@ def has_md_tag(bam):
variant.info['SAF'] = hap_fwd
variant.info['SAR'] = hap_rev
if 'ADF' in var.samples[0]:
var.samples[0]['ADF'] = hap_fwd
var.samples[0]['ADR'] = hap_rev
print(var)
print(hap_fwd,hap_rev)
var.samples[0]['ADF'] = (ref_fwd,hap_fwd)
var.samples[0]['ADR'] = (ref_rev,hap_rev)
if 'AD' in variant.samples[0]:
variant.samples[0]['AD'] = [dp - count, hap_fwd + hap_rev]

Expand Down

0 comments on commit 7d8bc7e

Please sign in to comment.