Skip to content
Snippets Groups Projects
Commit b9b61256 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Optimize no_match function

parent 8170a9ea
No related branches found
No related tags found
No related merge requests found
...@@ -542,6 +542,7 @@ class Paf: ...@@ -542,6 +542,7 @@ class Paf:
""" """
index = self.idx_q if to == "query" else self.idx_t index = self.idx_q if to == "query" else self.idx_t
name, contigs_list, contigs, reversed, abs_start, c_len = Index.load(index) name, contigs_list, contigs, reversed, abs_start, c_len = Index.load(index)
contigs_list = set(contigs_list)
with open(self.paf, "r") as paf: with open(self.paf, "r") as paf:
for line in paf: for line in paf:
c_name = line.strip("\n").split("\t")[0 if to == "query" else 5] c_name = line.strip("\n").split("\t")[0 if to == "query" else 5]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment