How harsha-chirumamilla/pscl works
Project Type and Purpose
• This is a research-oriented machine-learning pipeline for multi-label classification of protein subcellular localization using Gene Ontology (GO) term annotations.
• There is no classic “frontend/backend” service; instead, it consists of data sources, preprocessing/feature-engineering modules, model-training & evaluation notebooks, and model artifacts.
Main Components
a. Data Layer
• Datasets/ (raw training & test tables in CSV, parquet, gz)
• Relations/ (GO term relationship CSVs)
b. Adjacency Matrix Generation
• Utils/adj_matrix.py → produces parquet files in Adj_Matrices/
c. Feature Engineering
• Utils/Feat_generator.py → reads raw Datasets + Adj_Matrices + Relations to compute embeddings/feature vectors (Features/Actual and Features/Independent subfolders, HMM & PSSM)
• External graph embedding library: node2vec & NetworkX
d. Model Training & Evaluation
• Notebooks/ – Jupyter notebooks that load Features, train multiple classifiers (DT, KNN, RF, SVC, Keras deep nets) and compute metrics (strict/relaxed accuracy)
• Protein_Bert/ – specialized notebooks for ProtBert embedding experiments
e. Model Artifact Storage
• Models/ – saved Keras models (e.g. Ind_GO_1.keras)
f. Utilities & Metrics
• Notebooks/multiLabelMetrics.py – evaluation helper
• Notebooks/ClassLabels.py – label encoding
Component Interactions and Data Flow
1. Raw GO relationships (Relations/) + Datasets/ feed into adj_matrix.py → Adj_Matrices/
2. Adj_Matrices/ + Datasets/ + Relations/ → Feat_generator.py → Features/Actual & Features/Independent
3. Features → training notebooks → model artifacts saved to Models/
4. Trained models + held-out test sets → evaluation notebooks → metrics & visualizations
Architectural Patterns & Design Principles
• Layered pipeline: data ingestion → transformation → modeling → evaluation
• Clear separation of concerns:
• Raw data vs precomputed adjacency vs computed features
• Feature-generation code (Utils) vs experimental notebooks
• Modular, extensible: new feature types or model types can be slotted into the same pipeline
Key Technologies & Frameworks
• Data handling: Pandas, PyArrow
• Graph processing: NetworkX, node2vec
• ML: scikit-learn (RF, DT, KNN, SVC), TensorFlow/Keras (deep nets)
• Notebook environment: Jupyter
• File formats: CSV, Parquet, gz