Skip to content

Commit

Permalink
checking for ref allelese
Browse files Browse the repository at this point in the history
  • Loading branch information
aineniamh committed Jan 28, 2021
1 parent c5c7bba commit 05a4469
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pangolin/scripts/pangolearn.smk
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ rule overwrite:
with open(input.b117_variants, "r") as f:
reader = csv.DictReader(f)
for row in reader:
if int(row["alt_count"]) > 4:
if int(row["alt_count"]) > 4 and int(row["ref_count"])<2:
b117[row["query"]] = row["alt_count"]
b1351 = {}
with open(input.b1351_variants, "r") as f:
reader = csv.DictReader(f)
for row in reader:
if int(row["alt_count"]) > 4:
if int(row["alt_count"]) > 4 and int(row["ref_count"])<2:
b1351[row["query"]] = row["alt_count"]
p1 = {}
with open(input.p1_variants, "r") as f:
Expand All @@ -252,7 +252,7 @@ rule overwrite:
with open(input.p2_variants, "r") as f:
reader = csv.DictReader(f)
for row in reader:
if int(row["alt_count"]) > 4:
if int(row["alt_count"]) > 4 and int(row["ref_count"])<2:
p2[row["query"]] = row["alt_count"]

with open(output.csv, "w") as fw:
Expand Down

0 comments on commit 05a4469

Please sign in to comment.