Skip to content

Commit

Permalink
Merge pull request #51 from jodyphelan/dev
Browse files Browse the repository at this point in the history
bugfix
  • Loading branch information
jodyphelan authored Aug 30, 2024
2 parents 67cd363 + 96779c4 commit 3b4c6e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/combine_vcf_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,13 @@ def has_md_tag(bam):
hap = ''.join(alts)
if 'DP4' in v.info:
haplotypes_by_strand[hap] = int(v.info['DP4'][2])+int(v.info['DP4'][3])
elif 'SAF' in v.info:
haplotypes_by_strand[hap] = int(v.info['SAF'][0])
haplotypes_by_strand[hap.lower()] = int(v.info['SAR'][0])
elif 'AD' in v.samples[0]:
haplotypes_by_strand[hap] = int(v.samples[0]['AD'][1])



haplotypes = Counter()
for h,count in haplotypes_by_strand.items():
haplotypes[h.upper()] += count
Expand Down

0 comments on commit 3b4c6e2

Please sign in to comment.