Skip to content

Commit

Permalink
more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Oct 17, 2024
1 parent b63f534 commit d9028cd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions genomicVariations_vcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,13 @@ def generate(dict_properties):
print(vcf_filename)
vcf = VCF(vcf_filename)
vcf.set_samples([])
vcf.set_index(index_path="files/vcf/files_to_read/pop11_sub2_chr1.vcf.bgz.tbi")

#my_target_list = vcf.samples
count=0


pbar = tqdm(total = num_rows)

r=0

for v in vcf:
#print(v)

Expand Down Expand Up @@ -813,8 +811,8 @@ def generate(dict_properties):
try:
definitivedict["frequencyInPopulations"][0]["frequencies"][0]["alleleCount"]=allele_count
definitivedict["frequencyInPopulations"][0]["frequencies"][0]["alleleNumber"]=allele_number
#definitivedict["frequencyInPopulations"][0]["frequencies"][0]["alleleCountHomozygous"]=ac_hom
#definitivedict["frequencyInPopulations"][0]["frequencies"][0]["alleleCountHeterozygous"]=ac_het
definitivedict["frequencyInPopulations"][0]["frequencies"][0]["alleleCountHomozygous"]=ac_hom
definitivedict["frequencyInPopulations"][0]["frequencies"][0]["alleleCountHeterozygous"]=ac_het
except Exception:
pass
total_dict.append(definitivedict)
Expand Down

0 comments on commit d9028cd

Please sign in to comment.