You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ClinicalTrialsDataProcessing/data_mgmt_scripts/runall.py

25 lines
703 B
Python

from drugtools import env_setup
from drugtools import historical_trial_selector as hts
from drugtools import historical_nct_downloader as hnd
from drugtools import historical_nct_extractor as hne
from drugtools import download_and_extract_nsde as daen
from drugtools import migrate_mysql2pgsql as mm2p
print("Current Environment")
print(env_setup.ENV)
cont = input("Are you willing to continue with the current environmnet? y/[n]")
if cont == "Y" or cont == "y":
print("SelectingTrials")
#hts.run()
print("downloading trials")
#hnd.run()
print("extracting trials")
hne.run()
exit(0)
daen.run()
mm2p.run()
else:
print("Please fix your .env file and try again")