Skip to content

Commit

Permalink
remove id from description in contig import
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Dec 1, 2021
1 parent 406a76a commit bfdf67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bakta/io/fasta.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bfdf67f

Please sign in to comment.