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

Change protein name extraction method

parent a3dd47b5
No related branches found
No related tags found
No related merge requests found
Pipeline #106500 failed
......@@ -265,10 +265,11 @@ 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()
# 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