47 lines
1.6 KiB
Python
47 lines
1.6 KiB
Python
"""
|
|
FScanpy Configuration Module
|
|
"""
|
|
import os
|
|
|
|
class BaseConfig:
|
|
"""Base configuration class with virtual paths"""
|
|
|
|
# Virtual data paths
|
|
DATA_DIR = "/path/to/data"
|
|
TRAIN_DATA = "/path/to/data/merged_train_data.csv"
|
|
TEST_DATA = "/path/to/data/merged_test_data.csv"
|
|
VALIDATION_DATA = "/path/to/data/merged_validation_data.csv"
|
|
|
|
# Virtual model paths
|
|
MODEL_DIR = "/path/to/models"
|
|
BILSTM_MODEL_DIR = "/path/to/models/bilstm"
|
|
GB_MODEL_DIR = "/path/to/models/gradient_boosting"
|
|
|
|
# Virtual result paths
|
|
RESULT_DIR = "/path/to/results"
|
|
BILSTM_DIR = "/path/to/results/bilstm"
|
|
GB_DIR = "/path/to/results/gradient_boosting"
|
|
MFEGB_DIR = "/path/to/results/mfe_gb"
|
|
|
|
# Virtual log paths (for minimal logging if needed)
|
|
LOG_DIR = "/path/to/logs"
|
|
BILSTM_LOG_DIR = "/path/to/logs/bilstm"
|
|
MFEGB_LOG_DIR = "/path/to/logs/mfe_gb"
|
|
|
|
# Virtual plot paths (not used in sanitized version)
|
|
PLOT_DIR = "/path/to/plots"
|
|
BILSTM_PLOT_DIR = "/path/to/plots/bilstm"
|
|
|
|
@classmethod
|
|
def create_directories(cls):
|
|
"""Create necessary directories (virtual implementation)"""
|
|
# In actual implementation, this would create the directories
|
|
# For publication, this is a placeholder
|
|
directories = [
|
|
cls.DATA_DIR, cls.MODEL_DIR, cls.RESULT_DIR, cls.LOG_DIR,
|
|
cls.BILSTM_MODEL_DIR, cls.GB_MODEL_DIR, cls.BILSTM_DIR,
|
|
cls.GB_DIR, cls.MFEGB_DIR, cls.BILSTM_LOG_DIR, cls.MFEGB_LOG_DIR
|
|
]
|
|
for directory in directories:
|
|
os.makedirs(directory, exist_ok=True)
|