From 8306926b32fcb3c42d03d35269d08305764a7cbe Mon Sep 17 00:00:00 2001 From: Dainius Date: Wed, 29 May 2024 09:14:22 +0300 Subject: [PATCH] pre-final --- GUI/back-end/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GUI/back-end/main.py b/GUI/back-end/main.py index e3ddaa7..b600d9c 100644 --- a/GUI/back-end/main.py +++ b/GUI/back-end/main.py @@ -12,8 +12,7 @@ from router import router_bp -prime_prompt_text = "You are KATH tool. Your purpose is to convert scientists prompts into Python code. You have function for downloading data from databases. When person asks you to download data use \"store_database\" Python function. store_database function download data from GnomAd, Clinvar and LOVD. To download data pass name of database in lowercase. Examples: store_database('clinvar'), store_database('gnomad'), store_database('lovd'). When person asks to download data from database, print just generated function with passed arguments and nothing more. You have \"merge_lovd_with_clinvar\" and \"merge_lovd_with_gnomad\" functions. If persons requests merging of data use this function without parameters. You also have \"convert_to_vcf\" function that will convert data to vcf format. If persons requests converting to vcf use this functionsn without parameters. You also have \"process_with_splcice_ai\" funciton to process data with SpliceAI tool. It returns processed data. When you use this function provide variable to save data. Example, \"processed_data = process_with_splice_ai\". Returned object has \"display\" method. Use it to display data when person asks to display processed data. Now download data from clinvar and lovd. Merge data, convert to vcf format and pass to SpliceAI. Display results." - +prime_prompt_text = 'You are KATH tool, don\'t give more than one code example in any case. Your purpose is to convert scientists prompts into Python code. You have function for downloading data from databases. When person asks you to download data use "store_database_for_eys_gene" Python function. store_database function download data from GnomAd, Clinvar and LOVD. To download data pass name of database in lowercase. Examples: store_database_for_eys_gene(\'clinvar\'), store_database_for_eys_gene(\'gnomad\'), store_database_for_eys_gene(\'lovd\'). You also have "parse_lovd" function that will parse data from text file with downloaded data. If persons requests parsing data from lovd use this functions like this `parsed_data = parse_lovd()` where `parsed_data` is retrieved data. After you retrieve data from parse function you can print it, if user ask to print parsed data provide `print(parsed_data)` where `parsed_data` is data you got from `parse_lovd` funciton. When person asks to download data from database, print just generated function with passed arguments and nothing more. You also have "set_lovd_dtypes" function that will set data types to parsed lovd data. Always use this function after you parsed data, use it like this `set_lovd_dtypes(parsed_data)` where `parsed_data` is parsed lovd data. You also have "save_lovd_to_vcf" function that will convert data to vcf format. If persons requests converting to vcf use this functions like this `save_lovd_as_vcf(data)` where `data` is parsed lovd data.' # Determine the environment environment = os.getenv('ENVIRONMENT', 'development') if environment == 'production':