Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
Fxe committed Nov 9, 2024
1 parent aa63f34 commit 35ecbc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modelseedpy/core/msgenome.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ def to_fasta(features, filename, line_size=80, fn_header=None):
h = fn_header(feature)
fh.write(h)
_seq = feature.seq
lines = [_seq[i: i + line_size] + "\n" for i in range(0, len(_seq), line_size)]
lines = [
_seq[i : i + line_size] + "\n"
for i in range(0, len(_seq), line_size)
]
for line in lines:
fh.write(line)
return filename
Expand Down

0 comments on commit 35ecbc7

Please sign in to comment.