aboutsummaryrefslogtreecommitdiff
path: root/workflows/pangenome-generate/relabel-seqs.py
diff options
context:
space:
mode:
Diffstat (limited to 'workflows/pangenome-generate/relabel-seqs.py')
-rw-r--r--workflows/pangenome-generate/relabel-seqs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/workflows/pangenome-generate/relabel-seqs.py b/workflows/pangenome-generate/relabel-seqs.py
index b558fe2..1188ceb 100644
--- a/workflows/pangenome-generate/relabel-seqs.py
+++ b/workflows/pangenome-generate/relabel-seqs.py
@@ -12,4 +12,7 @@ for i, r in enumerate(reads):
data = fa.read(8096)
while data:
relabeled_fasta.write(data)
+ endswithnewline = data.endswith("\\n")
data = fa.read(8096)
+ if not endswithnewline:
+ relabeled_fasta.write("\\n")