From bfdf67f53ed0e3995a4cdaa8c227e12c9b122848 Mon Sep 17 00:00:00 2001 From: Oliver Schwengers Date: Wed, 1 Dec 2021 11:43:44 +0100 Subject: [PATCH] remove id from description in contig import --- bakta/io/fasta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bakta/io/fasta.py b/bakta/io/fasta.py index 1a198fb9..94d1cdb7 100644 --- a/bakta/io/fasta.py +++ b/bakta/io/fasta.py @@ -26,7 +26,7 @@ def import_contigs(contigs_path): raise ValueError(f'Fasta sequence contains invalid DNA characters! id={record.id}') contig = { 'id': record.id, - 'description': record.description, + 'description': record.description.split(' ', maxsplit=1)[1] if ' ' in record.description else '', 'sequence': seq, 'length': len(seq), 'complete': False,