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
9cd31ca1
Unverified
Commit
9cd31ca1
authored
Jun 07, 2021
by
Bertrand NÉRON
Browse files
rename variable id in name
parent
f732f95e
Pipeline
#58008
passed with stages
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
source/Data_Types.rst
View file @
9cd31ca1
...
...
@@ -159,7 +159,7 @@ create a representation in fasta format of following sequence :
::
id
= "sp|P60568|IL2_HUMAN"
name
= "sp|P60568|IL2_HUMAN"
comment = "Interleukin-2 OS=Homo sapiens GN=IL2 PE=1 SV=1"
...
...
@@ -167,9 +167,11 @@ create a representation in fasta format of following sequence :
TFKFYMPKKATELKHLQCLEEELKPLEEVLNLAQSKNFHLRPRDLISNINVIVLELKGSE
TTFMCEYADETATIVEFLNRWITFCQSIISTLT"""
>>> s =
id
+ comment + '\n' + sequence
>>> s =
name
+ comment + '\n' + sequence
or
>>> s = "{id} {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}"
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