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
1eafe0be
Commit
1eafe0be
authored
Jun 07, 2021
by
Blaise Li
Browse files
Fasta format issues.
parent
9cd31ca1
Pipeline
#58017
passed with stages
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
source/Data_Types.rst
View file @
1eafe0be
...
...
@@ -167,13 +167,13 @@ create a representation in fasta format of following sequence :
TFKFYMPKKATELKHLQCLEEELKPLEEVLNLAQSKNFHLRPRDLISNINVIVLELKGSE
TTFMCEYADETATIVEFLNRWITFCQSIISTLT"""
>>> s =
name
+ comment + '\n' + sequence
>>> s =
">" + name + " "
+ comment + '\n' + sequence
or
>>> s = "{name} {comment}
\n{sequence}".format(id=
id, comment
=
comment, sequence
=
sequence)
>>> s = "
>
{name} {comment}\n{sequence}".format(id=id, comment
=
comment, sequence
=
sequence)
or
>>> s = f"
"
{name} {comment}
\n{sequence}"
>>> s = f"
>
{name} {comment}\n{sequence}"
Exercise
--------
...
...
Write
Preview
Markdown
is supported
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