Skip to content

Commit

Permalink
Merge pull request #222 from waveygang/split_approx_robust
Browse files Browse the repository at this point in the history
make the script more robust
  • Loading branch information
AndreaGuarracino authored Feb 1, 2024
2 parents e7850f9 + 08527ea commit 7205bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/split_approx_mappings_in_chunks.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def split_chunks(l, n):
# We could avoid keeping everything in memory by reading the file again later
rank_to_mapping_dict[rank] = line

_, _, query_start, query_end, _, _, _, target_start, target_end, _, _, _, estimated_identity = line.strip().split('\t')
_, _, query_start, query_end, _, _, _, target_start, target_end, _, _, _, estimated_identity = line.strip().split('\t')[:13]

num_mapped_bases = max(int(query_end) - int(query_start), int(target_end) - int(target_start))
estimated_identity = float(estimated_identity.split('id:f:')[1]) / 100.0
Expand Down

0 comments on commit 7205bf7

Please sign in to comment.