Small print change in preguidance.py

This commit is contained in:
Auden Cote-L'Heureux 2023-10-15 17:25:58 -04:00 committed by GitHub
parent 7b3860a449
commit 7a438d250a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ def run(params):
recs_to_remove = [] recs_to_remove = []
for line in diamond_out: for line in diamond_out:
line = line.strip().split('\t') line = line.strip().split('\t')
alignment_length = int(line[3]); gaps = int(line[5]); seq = str(line[0]); identity = float(line[2]) alignment_length = int(line[3]); gaps = int(line[5]); seq = str(line[0]); identity = float(line[2])/100
if ((alignment_length - gaps) < params.overlap_cutoff * len(recs[0].seq) and cycle == 0) or identity > params.sim_cutoff: if ((alignment_length - gaps) < params.overlap_cutoff * len(recs[0].seq) and cycle == 0) or identity > params.sim_cutoff:
recs_to_remove.append(seq); removed =+ 1 recs_to_remove.append(seq); removed =+ 1