Skip to content

Commit 8099521

Browse files
committed
use slice syntax for reversed
1 parent cb6ddc4 commit 8099521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

palamedes/align.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def reverse_seq_record(seq_record: SeqRecord) -> SeqRecord:
4343
the best alignment.
4444
"""
4545
return SeqRecord(
46-
Seq("".join(reversed(seq_record.seq))),
46+
Seq(seq_record.seq[::-1]),
4747
id=seq_record.id,
4848
name=seq_record.name,
4949
description=seq_record.description,

0 commit comments

Comments
 (0)