Skip to content
Snippets Groups Projects
Commit fe28cbd6 authored by Amandine  PERRIN's avatar Amandine PERRIN
Browse files

Small speed improvment while extracting proteins

parent c67201e4
No related branches found
No related tags found
No related merge requests found
Pipeline #111490 passed
......@@ -265,11 +265,13 @@ def extract_sequences(to_extract, fasf, files_todo=None, outf=None):
previous_fp = None
# Extract sequence name
# last_char = line.find(' ')
# if last_char == -1:
# last_char = len(line)
# seq = line[1:last_char].strip()
seq = line.strip().split()[0][1:]
last_char = line.find('\t')
if last_char == -1:
last_char = line.find(' ')
if last_char == -1:
last_char = len(line)
seq = line[1:last_char].strip()
# seq = line.strip().split()[0][1:]
# Seq is part of sequences to extract
if seq in to_extract:
......
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