Skip to content

Commit

Permalink
Update script/prepare-VAFs.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sorel Fitz-Gibbon <3223552+sorelfitzgibbon@users.noreply.github.com>
  • Loading branch information
yashpatel6 and sorelfitzgibbon authored Sep 18, 2024
1 parent 67f798f commit 1f2c718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/prepare-VAFs.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_vaf_strelka2(variant: dict, sample: str) -> Tuple[int, int]:
ref_base = variant.REF.strip(' ') + 'U'
ref_reads = int(variant.samples[sample_index][ref_base][0])
# pylint: disable=R1728
# Take allele with most number of reads as the ALT
# Take alternate allele with most number of reads as the ALT
alt_reads = max([int(variant.samples[sample_index][allele.sequence + 'U'][0]) \
for allele in variant.ALT])
total_reads = ref_reads + alt_reads
Expand Down

0 comments on commit 1f2c718

Please sign in to comment.