Skip to content
Snippets Groups Projects
Commit db410e80 authored by AndiMajore's avatar AndiMajore
Browse files

udpated licensed nedrex api url

parent 083990c4
No related branches found
No related tags found
No related merge requests found
Pipeline #63210 failed
...@@ -86,8 +86,8 @@ class Command(BaseCommand): ...@@ -86,8 +86,8 @@ class Command(BaseCommand):
def populate(kwargs): def populate(kwargs):
nedrex_api_url_open= "https://api.nedrex.net/open" nedrex_api_url_open = "https://api.nedrex.net/open"
nedrex_api_url_licenced = "https://nedrex-api-licenced.zbh.uni-hamburg.de/licensed" nedrex_api_url_licensed = "https://api.nedrex.net/licensed"
data_dir = kwargs['data_dir'] data_dir = kwargs['data_dir']
...@@ -102,7 +102,7 @@ def populate(kwargs): ...@@ -102,7 +102,7 @@ def populate(kwargs):
cache = NodeCache() cache = NodeCache()
update = True if kwargs['update'] else False update = True if kwargs['update'] else False
importer = NedrexImporter(nedrex_api_url_licenced, nedrex_api_url_open, cache) importer = NedrexImporter(nedrex_api_url_licensed, nedrex_api_url_open, cache)
populator = DataPopulator(cache) populator = DataPopulator(cache)
total_n = 0 total_n = 0
...@@ -159,7 +159,7 @@ def populate(kwargs): ...@@ -159,7 +159,7 @@ def populate(kwargs):
print('Importing PDIs from licenced NeDRexDB...') print('Importing PDIs from licenced NeDRexDB...')
n = NedrexImporter.import_drug_target_interactions(importer, n = NedrexImporter.import_drug_target_interactions(importer,
DatasetLoader.get_drug_target_nedrex(nedrex_api_url_licenced, True), DatasetLoader.get_drug_target_nedrex(nedrex_api_url_licensed, True),
update) update)
total_n += n total_n += n
nedrex_update = True nedrex_update = True
...@@ -187,7 +187,7 @@ def populate(kwargs): ...@@ -187,7 +187,7 @@ def populate(kwargs):
print('Importing PDis from licenced NeDRexDB...') print('Importing PDis from licenced NeDRexDB...')
n = NedrexImporter.import_protein_disorder_associations(importer, n = NedrexImporter.import_protein_disorder_associations(importer,
DatasetLoader.get_protein_disorder_nedrex( DatasetLoader.get_protein_disorder_nedrex(
nedrex_api_url_licenced, True), nedrex_api_url_licensed, True),
update) update)
total_n += n total_n += n
nedrex_update = True nedrex_update = True
...@@ -204,7 +204,7 @@ def populate(kwargs): ...@@ -204,7 +204,7 @@ def populate(kwargs):
print('Importing DrDis from licenced NeDRexDB...') print('Importing DrDis from licenced NeDRexDB...')
n = NedrexImporter.import_drug_disorder_indications(importer, n = NedrexImporter.import_drug_disorder_indications(importer,
DatasetLoader.get_drug_disorder_nedrex( DatasetLoader.get_drug_disorder_nedrex(
nedrex_api_url_licenced, True), nedrex_api_url_licensed, True),
update) update)
total_n += n total_n += n
nedrex_update = True nedrex_update = True
...@@ -223,7 +223,7 @@ def populate(kwargs): ...@@ -223,7 +223,7 @@ def populate(kwargs):
print(f'Imported {n} PPIs from unlicended NeDRexDB') print(f'Imported {n} PPIs from unlicended NeDRexDB')
print('Importing PPIs from licenced NeDRexDB...') print('Importing PPIs from licenced NeDRexDB...')
n = NedrexImporter.import_protein_protein_interactions(importer, n = NedrexImporter.import_protein_protein_interactions(importer,
DatasetLoader.get_ppi_nedrex(nedrex_api_url_licenced, DatasetLoader.get_ppi_nedrex(nedrex_api_url_licensed,
True), True),
update) update)
total_n += n total_n += n
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment