From 492969817b3e981fb95d05582ec9353e7b0d4bb3 Mon Sep 17 00:00:00 2001 From: Mantvydas Deltuva Date: Mon, 15 Apr 2024 20:41:28 +0300 Subject: [PATCH] updated `__init__.py` imports with comments --- data_collection/__init__.py | 42 ++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/data_collection/__init__.py b/data_collection/__init__.py index ef0b10c..0921646 100644 --- a/data_collection/__init__.py +++ b/data_collection/__init__.py @@ -11,12 +11,48 @@ """ # CONSTANTS IMPORT -from .constants import * +from .constants import ( + # URLs for LOVD database + LOVD_URL, LOVD_URL_EYS, LOVD_FILE_URL, LOVD_FILE_URL_EYS, + # URLs for gnomAD database + GNOMAD_URL, GNOMAD_URL_EYS, GNOMAD_FILE_URL_EYS, + + # URLs for ClinVar database + CLINVAR_URL, CLINVAR_URL_EYS, CLINVAR_FILE_URL_EYS, + + # Paths for data storage + DATA_PATH, LOVD_PATH, GNOMAD_PATH, CLINVAR_PATH, + + # Data types for tables + LOVD_TABLES_DATA_TYPES, + + # Paths for database downloads + DATABASES_DOWNLOAD_PATHS +) # DATA COLLECTION IMPORT -from .collection import * +from .collection import ( + # Custom exceptions + BadResponseException, + DownloadError, + + # Custom utility functions + get_file_from_url, + + # Functions for downloading databases + download_lovd_database_for_eys_gene, + download_genes_lovd, + download_database_for_eys_gene, + # Functions for storing databases + store_database_for_eys_gene +) # DATA REFACTORING IMPORT -from .refactoring import * +from .refactoring import ( + # Functions for refactoring data + convert_lovd_to_datatype, + parse_lovd, + from_clinvar_name_to_cdna_position +)