Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tkzeng authored Dec 9, 2021
1 parent 16db9e2 commit 9bc74c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pangolin/pangolin.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ def process_variant(lnum, chr, pos, ref, alt, gtf, models, args):
if len(genes_neg) > 0:
loss_neg, gain_neg = compute_score(ref_seq, alt_seq, '-', d, models)

print(ref,alt)

scores = ""
for (genes, loss, gain) in \
((genes_pos,loss_pos,gain_pos),(genes_neg,loss_neg,gain_neg)):
Expand Down Expand Up @@ -170,7 +168,7 @@ def process_variant(lnum, chr, pos, ref, alt, gtf, models, args):
# scores2 += "%s:%s|" % (p2-d, s2)
# scores = scores+scores1+scores2

elif cutoff != None:
if cutoff != None:
scores = scores+gene+'|'
l, g = np.where(loss<=-cutoff)[0], np.where(gain>=cutoff)[0]
for p, s in zip(np.concatenate([g-d,l-d]), np.concatenate([gain[g],loss[l]])):
Expand Down

0 comments on commit 9bc74c9

Please sign in to comment.