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

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
...@@ -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'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment