diff --git a/PanACoTA/align_module/get_seqs.py b/PanACoTA/align_module/get_seqs.py index d6d347daba06b74d1484408c7caf10bcf1c9e8e2..a8b61df01e533b9684b9a508b6602216d3a1273e 100755 --- a/PanACoTA/align_module/get_seqs.py +++ b/PanACoTA/align_module/get_seqs.py @@ -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: