Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub-courses
python_one_week_4_biologists_solutions
Commits
dba0c7b4
Unverified
Commit
dba0c7b4
authored
Jun 15, 2021
by
Bertrand NÉRON
Browse files
fix multiple_fasta_reader
parent
193f605d
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/_static/code/multiple_fasta_reader.py
View file @
dba0c7b4
...
@@ -26,7 +26,7 @@ def fasta_reader(fasta_path):
...
@@ -26,7 +26,7 @@ def fasta_reader(fasta_path):
comment
=
' '
.
join
(
header
[
1
:])
comment
=
' '
.
join
(
header
[
1
:])
else
:
else
:
sequence
+=
line
.
strip
()
sequence
+=
line
.
strip
()
sequences
.
append
(
Sequence
(
id_
,
comment
,
sequence
))
sequences
.
append
(
Sequence
(
id_
,
comment
,
sequence
))
return
sequences
return
sequences
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment