Skip to content

Commit

Permalink
Merge pull request #14 from MDE/init_imports
Browse files Browse the repository at this point in the history
MDE/init_imports
  • Loading branch information
Strexas authored Apr 16, 2024
2 parents 31a5d5c + 4929698 commit e1c4c26
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions data_collection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit e1c4c26

Please sign in to comment.