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
e2893f6b
Commit
e2893f6b
authored
Mar 04, 2020
by
Lukas Jelonek
Browse files
Fix warnings in kegg retriever
parent
cad662b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
dbxref/retrieve/kegg.py
View file @
e2893f6b
...
...
@@ -79,52 +79,52 @@ def retrieve(dbxrefs, basics = True, pathway = True, brite = True, dbxrefs_links
if
"ORGANISM"
in
kegg_information
:
output
.
update
({
"organism"
:
read_information
(
kegg_information
[
"ORGANISM"
])[
0
]})
else
:
logger
.
warn
(
"No Entry"
)
logger
.
warn
ing
(
"No Entry"
)
if
pathway
:
if
"PATHWAY"
in
kegg_information
:
output
.
update
({
"pathways"
:
read_information
(
kegg_information
[
"PATHWAY"
])})
else
:
logger
.
warn
(
"No Pathway"
)
logger
.
warn
ing
(
"No Pathway"
)
if
genes
:
if
"GENES"
in
kegg_information
:
output
.
update
({
"genes"
:
read_information
(
kegg_information
[
"GENES"
])})
else
:
logger
.
warn
(
"No Genes"
)
logger
.
warn
ing
(
"No Genes"
)
if
orthology
:
if
"ORTHOLOGY"
in
kegg_information
:
output
.
update
({
"ortholog genes"
:
read_information
(
kegg_information
[
"ORTHOLOGY"
])})
else
:
logger
.
warn
(
"No orthology"
)
logger
.
warn
ing
(
"No orthology"
)
if
motif
:
if
"MOTIF"
in
kegg_information
:
output
.
update
({
"motif"
:
read_information
(
kegg_information
[
"MOTIF"
])})
else
:
logger
.
warn
(
"No motif"
)
logger
.
warn
ing
(
"No motif"
)
if
formula
:
if
"FORMULA"
in
kegg_information
:
output
.
update
({
"chemical formula"
:
read_information
(
kegg_information
[
"FORMULA"
][
0
])})
else
:
logger
.
warn
(
"No formula"
)
logger
.
warn
ing
(
"No formula"
)
if
reaction
:
if
"REACTION"
in
kegg_information
:
output
.
update
({
"reaction partners"
:
read_information
(
kegg_information
[
"REACTION"
])})
else
:
logger
.
warn
(
"No reaction"
)
logger
.
warn
ing
(
"No reaction"
)
if
brite
:
if
"BRITE"
in
kegg_information
:
output
.
update
({
"brite"
:
read_brite
(
kegg_information
[
"BRITE"
])})
else
:
logger
.
warn
(
"No brite"
)
logger
.
warn
ing
(
"No brite"
)
if
reference
:
if
"REFERENCE"
in
kegg_information
:
output
.
update
({
"reference"
:
read_reference
(
kegg_information
[
"REFERENCE"
])})
else
:
logger
.
warn
(
"No reference"
)
logger
.
warn
ing
(
"No reference"
)
if
dbxrefs_links
:
if
"DBLINKS"
in
kegg_information
:
output
.
update
({
"dbxref_links"
:
read_dbxrefs
(
kegg_information
[
"DBLINKS"
])})
else
:
logger
.
warn
(
"No dbxref_links"
)
logger
.
warn
ing
(
"No dbxref_links"
)
documents
.
append
(
output
)
return
documents
...
...
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