Title: Comprehensive Analysis of Single-Cell RNA Sequencing Data Using Hybrid Machine Learning Models
Domain: Bioinformatics, Computational Biology, Machine Learning
Data: 14.7M cells, 30 features, Brain tissue scRNA-seq data
This dissertation project implements a comprehensive analysis pipeline for single-cell RNA sequencing data using a hybrid approach combining traditional machine learning, deep learning, and ensemble methods.
- File:
data/raw/combined_data.csv - Size: 2.0 GB
- Cells: 14,738,154
- Features: 30
- Tissue: Brain
- Cell Types: Oligodendrocytes, Astrocytes, Neurons, etc.
single-cell-rna-analysis/
├── 📁 data/ # Data storage
│ ├── raw/ # Original data
│ ├── processed/ # Processed data
│ ├── external/ # Reference data
│ └── intermediate/ # Intermediate files
├── 📁 src/ # Source code
│ ├── data_processing/ # Data processing pipeline
│ ├── models/ # Machine learning models
│ ├── analysis/ # Analysis modules
│ ├── visualization/ # Visualization modules
│ └── utils/ # Utility functions
├── 📁 notebooks/ # Jupyter notebooks
├── 📁 results/ # Analysis results
├── 📁 docs/ # Documentation
├── 📁 scripts/ # Standalone scripts
├── 📁 tests/ # Unit tests
└── 📁 config/ # Configuration files
- Cell Type Classification: Accurate prediction of cell types using hybrid models
- Quality Assessment: Identify high-quality cells and remove low-quality ones
- Feature Selection: Identify important genes/features for classification
- Model Comparison: Compare traditional ML, deep learning, and hybrid approaches
- Interpretability: Understand model decisions and feature importance
- Scalability: Handle large-scale data efficiently
- Reproducibility: Ensure reproducible results
- Novel Insights: Discover new biological patterns
- Random Forest: Robust, interpretable, handles high-dimensional data
- Support Vector Machine: Good for binary classification, kernel methods
- Gradient Boosting: High performance, feature importance
- Ensemble Methods: Combine multiple traditional models
- Feed-forward Neural Network: Baseline deep learning approach
- Autoencoder: Dimensionality reduction, feature learning
- Variational Autoencoder: Probabilistic modeling, latent space
- Attention Mechanisms: Focus on important features
- Stacked Generalization: Combine traditional and deep learning
- Voting Classifiers: Majority voting across models
- Weighted Ensembles: Optimize weights for best performance
- Pipeline Integration: Sequential model combination
- Python 3.8+
- 16GB+ RAM (for large dataset processing)
- Git
# Clone the repository
git clone <repository-url>
cd single-cell-rna-analysis
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Setup the project
python scripts/setup_environment.pyKey packages include:
pandas,numpy- Data manipulationscikit-learn- Traditional ML modelstensorflow,pytorch- Deep learningmatplotlib,seaborn- Visualizationscanpy,anndata- Single-cell analysisjupyter- Interactive notebooks
python scripts/run_complete_analysis.py --mode explorationpython scripts/run_model_training.py --models allpython scripts/run_hybrid_analysis.pypython scripts/generate_report.py- Comprehensive model comparison
- Best-performing hybrid approach
- Feature importance analysis
- Model interpretability insights
- Improved cell type classification
- Quality control metrics
- Novel cell type markers
- Biological pathway insights
- Novel hybrid model approach
- Comprehensive scRNA-seq analysis pipeline
- Benchmarking of different methods
- Practical implementation guidelines
- Figures: Quality control plots, cell type distributions, model performance
- Tables: Summary statistics, model metrics, feature importance
- Models: Trained model files for each approach
- Reports: Comprehensive analysis reports
- Quality metrics plots
- Cell type comparison charts
- Clustering analysis
- Model performance comparisons
- Feature importance rankings
- Data loading and validation
- Quality control implementation
- Feature engineering
- Data preprocessing
- Traditional ML models
- Deep learning models
- Hybrid model development
- Model training and validation
- Model comparison
- Performance evaluation
- Statistical analysis
- Results interpretation
- Report generation
- Documentation
- Code cleanup
- Final presentation
docs/methodology.md- Detailed methodologydocs/model_architecture.md- Model architecture detailsdocs/results_summary.md- Results summarydocs/technical_notes.md- Technical implementation notes
Run the test suite:
python -m pytest tests/This is a dissertation project. For academic collaboration:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is for academic research purposes.
Student Name
Institution
Supervisor: [Supervisor Name]
Year: 2024
For questions about this dissertation project, please contact:
- Email: [your.email@institution.edu]
- Institution: [Your Institution]
Last Updated: December 2024
Version: 1.0.0
Status: In Progress
-
Edit the config file
- Open
config/config.yamland setdata_pathto the full path of your input data file (especially important for cluster use). - Adjust output directories as needed.
- Open
-
Run the pipeline
python scripts/run_complete_analysis.py --config config/config.yaml
This will execute all steps in order, passing the config to each script.
-
Cluster Usage
- Submit the above command as a job on your cluster (e.g., using SLURM, PBS, etc.).
- Make sure all paths in
config.yamlare accessible from the cluster compute nodes.
-
Customizing Steps
- You can run individual scripts with the same
--configargument, e.g.:python scripts/05_train_deep_learning_models.py --config config/config.yaml
- You can run individual scripts with the same
-
Outputs
- All results, logs, and reports will be saved in the directories specified in
config.yaml.
- All results, logs, and reports will be saved in the directories specified in
This project analyzes single-cell RNA sequencing (scRNA-seq) and spatial transcriptomics data to predict cellular mechanisms involved in Alzheimer’s Disease. It includes data inspection, preprocessing, feature extraction, visualization, and machine learning modeling.
data/raw/: Original data files (CSV format)processed/: Cleaned and processed data
results/: All output files, plots, logs, and model artifactsscripts/: Python scripts for each analysis stepconfig/: Configuration files (YAML, Python)notebooks/: Jupyter notebooks for exploration
- Clone the repository
- Install dependencies
& .venv\Scripts\Activate.ps1 pip install -r requirements.txt
- Configure paths
- Edit
config/config.yamlto set your data and results directories.
- Edit
- Download scRNA-seq and spatial datasets from: BMBLx Data Portal
- After downloading, convert the data to CSV format using your preferred tool (e.g., Excel, Python pandas):
import pandas as pd df = pd.read_excel('your_downloaded_file.xlsx') df.to_csv('data/raw/your_data.csv', index=False)
- Inspect and fix raw CSV:
python scripts/01_run_csv_inspection.py --config config/config.yaml
- Feature extraction:
python scripts/02_feature_extraction.py --config config/config.yaml
- Preprocessing:
python scripts/02_preprocess_data.py --config config/config.yaml
- Analysis and visualization:
python scripts/03_analysis_and_visualization.py --type general --config config/config.yaml
- Model training and evaluation:
- Run subsequent scripts in
scripts/as needed for modeling and analysis.
- Run subsequent scripts in
- All results, plots, and logs are saved in the
results/folder, organized by analysis step.
- If plots are empty, check your data for missing or constant values.
- Ensure all dependencies are installed in your virtual environment.
- Review logs in
results/logs/for error details.
For questions or issues, please contact the repository owner.