Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SOaAS
dbxref
Commits
e55f7b34
Commit
e55f7b34
authored
Jan 22, 2018
by
Lukas Jelonek
Browse files
Fix bug: Taxonomy retrieves lineage as a string with a list instead of a list of strings
parent
8e3b1456
Changes
1
Hide whitespace changes
Inline
Side-by-side
dbxref/retrieve/taxonomy.py
View file @
e55f7b34
...
...
@@ -56,7 +56,12 @@ def read_basic(d):
if
'commonName'
in
d
:
out
[
'commonName'
]
=
d
[
'commonName'
]
if
'lineage'
in
d
:
out
[
'lineage'
]
=
d
[
'lineage'
]
# the lineage string contains a ';' separated list, that is converted here
# into a true list
lineage_list
=
d
[
'lineage'
].
split
(
"; "
)
if
not
lineage_list
[
-
1
].
strip
():
lineage_list
=
lineage_list
[:
-
1
]
out
[
'lineage'
]
=
lineage_list
if
'rank'
in
d
:
out
[
'rank'
]
=
d
[
'rank'
]
return
(
out
)
...
...
Lukas Jelonek
@lukas.jelonek
mentioned in issue
#13 (closed)
·
Jan 22, 2018
mentioned in issue
#13 (closed)
mentioned in issue #13
Toggle commit list
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