Skip to content
Snippets Groups Projects
Commit e7bb7b20 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

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
...@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment