Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
cd7afec5
Commit
cd7afec5
authored
6 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
uncomment code from the import-drugbank command
see #96 Former-commit-id: d6eb71d8ac8a82292fb0b8fd591772440a7ac1f5
parent
0a597cbb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/management/commands/import_drugbank.py
+0
-2
0 additions, 2 deletions
ippisite/ippidb/management/commands/import_drugbank.py
with
0 additions
and
2 deletions
ippisite/ippidb/management/commands/import_drugbank.py
+
0
−
2
View file @
cd7afec5
...
@@ -20,7 +20,6 @@ class Command(BaseCommand):
...
@@ -20,7 +20,6 @@ class Command(BaseCommand):
)
)
def
handle
(
self
,
*
args
,
**
options
):
def
handle
(
self
,
*
args
,
**
options
):
'''
df
=
pd
.
read_csv
(
options
[
'
path
'
],
sep
=
'
\t
'
)
df
=
pd
.
read_csv
(
options
[
'
path
'
],
sep
=
'
\t
'
)
DrugBankCompound
.
objects
.
all
().
delete
()
DrugBankCompound
.
objects
.
all
().
delete
()
self
.
stdout
.
write
(
self
.
stdout
.
write
(
...
@@ -42,7 +41,6 @@ class Command(BaseCommand):
...
@@ -42,7 +41,6 @@ class Command(BaseCommand):
else
:
else
:
self
.
stdout
.
write
(
self
.
stdout
.
write
(
self
.
style
.
SUCCESS
(
'
Successfully inserted {}
'
.
format
(
row
.
loc
[
'
DRUGBANK_ID
'
])))
self
.
style
.
SUCCESS
(
'
Successfully inserted {}
'
.
format
(
row
.
loc
[
'
DRUGBANK_ID
'
])))
'''
DrugbankCompoundTanimoto
.
objects
.
all
().
delete
()
DrugbankCompoundTanimoto
.
objects
.
all
().
delete
()
self
.
stdout
.
write
(
self
.
stdout
.
write
(
self
.
style
.
SUCCESS
(
'
Successfully flushed DrugBank Compound Tanimoto table
'
))
self
.
style
.
SUCCESS
(
'
Successfully flushed DrugBank Compound Tanimoto table
'
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment