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
e7bb7b20
Commit
e7bb7b20
authored
6 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
completely remove useless CompoundAction code in the import script
fix #59
parent
0d174a6e
No related branches found
No related tags found
No related merge requests found
Pipeline
#10235
passed
6 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/management/commands/import_v1_data.py
+0
-24
0 additions, 24 deletions
ippisite/ippidb/management/commands/import_v1_data.py
with
0 additions
and
24 deletions
ippisite/ippidb/management/commands/import_v1_data.py
+
0
−
24
View file @
e7bb7b20
...
@@ -293,30 +293,6 @@ class PpiImportTask(IppiDBMySQLImportTask):
...
@@ -293,30 +293,6 @@ class PpiImportTask(IppiDBMySQLImportTask):
ppi_complex
.
complex
=
c
ppi_complex
.
complex
=
c
ppi_complex
.
cc_nb
=
1
ppi_complex
.
cc_nb
=
1
ppi_complex
.
save
()
ppi_complex
.
save
()
if
row
[
3
]
is
not
None
:
sql_ca_string
=
'''
select distinct c.CanonicalSmile from cmpdAction as ca
inner join compound as c on ca.IDCompound=c.IDCompound where ca.IDComplexeBound=
'''
\
+
str
(
row
[
3
])
cursor_aux
.
execute
(
sql_ca_string
)
self
.
rows_aux
=
cursor_aux
.
fetchall
()
for
row_aux
in
self
.
rows_aux
:
canonical_smile
=
row_aux
[
0
]
#TODO!!!!!!
sql_bse_string
=
'''
select CodePDB from bindingSiteEvidence where IDPPI=
'''
+
str
(
ppi
.
id
)
cursor_aux2
.
execute
(
sql_bse_string
)
row_aux2
=
cursor_aux2
.
fetchone
()
if
row_aux2
is
None
:
pdb_id_ca
=
None
else
:
pdb_id_ca
=
row_aux2
[
0
]
# c = Compound.objects.get(canonical_smile=canonical_smile)
# ca = CompoundAction()
# ca.compound = c
# ca.ppi = ppi
# ca.activation_mode = 'U'
# ca.nb_copy_compounds = 1
# ca.pdb_id = pdb_id_ca
# ca.save()
return
ppi
return
ppi
def
post_process
(
self
):
def
post_process
(
self
):
...
...
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