Skip to content

Commit

Permalink
Always calculate allele frequencies before tri
Browse files Browse the repository at this point in the history
  • Loading branch information
HippocampusGirl committed Jan 30, 2025
1 parent 0b26700 commit 20b05ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gwas/src/gwas/score/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,11 @@ def update_allele_frequencies(
if self.vcf_by_chromosome is None:
raise RuntimeError
# Update the VCF file allele frequencies based on variable collections
for chromosome in tqdm(
self.selected_chromosomes,
for vcf_file in tqdm(
self.vcf_by_chromosome.values(),
desc="calculating allele frequencies",
unit="chromosomes",
):
vcf_file = self.vcf_by_chromosome[chromosome]
if calc_mean(
vcf_file,
variable_collections,
Expand Down

0 comments on commit 20b05ce

Please sign in to comment.