From 80f5a874f87fc3832404a2e8c8bf028b4dbf3c55 Mon Sep 17 00:00:00 2001
From: AndiMajore <andi.majore@googlemail.com>
Date: Thu, 23 Jun 2022 00:17:36 +0200
Subject: [PATCH] fixing PDI and PDi import

---
 .../{PDI => PDi}/disgenet-protein_disorder_association.tsv      | 0
 drugstone/management/includes/DataPopulator.py                  | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename data_drugstone/{PDI => PDi}/disgenet-protein_disorder_association.tsv (100%)

diff --git a/data_drugstone/PDI/disgenet-protein_disorder_association.tsv b/data_drugstone/PDi/disgenet-protein_disorder_association.tsv
similarity index 100%
rename from data_drugstone/PDI/disgenet-protein_disorder_association.tsv
rename to data_drugstone/PDi/disgenet-protein_disorder_association.tsv
diff --git a/drugstone/management/includes/DataPopulator.py b/drugstone/management/includes/DataPopulator.py
index c7dac55..f66b19d 100755
--- a/drugstone/management/includes/DataPopulator.py
+++ b/drugstone/management/includes/DataPopulator.py
@@ -192,7 +192,7 @@ class DataPopulator:
                 protein=protein,
                 drug=drug
             ))
-        models.ProteinProteinInteraction.objects.bulk_create(bulk)
+        models.ProteinDrugInteraction.objects.bulk_create(bulk)
         return len(bulk)
 
     def populate_pdis_disgenet() -> int:
-- 
GitLab