This is a machine learning model trained on Massbank data to predict the genotoxicity of chemical substances. The repository includes the pre-trained model and a web frontend for interaction.
The core of this project is a machine learning/deep learning model trained on mass spectrometry data (from Massbank) to assess the potential genotoxicity of chemical compounds. This repository provides not only the pre-trained model files but also a complete web application, including a Python-based backend (likely Flask or FastAPI) and a user interface.
- Genotoxicity Prediction: Predicts substance genotoxicity based on mass spectrometry data.
- Pre-trained Model: Includes a ready-to-use model trained on the Massbank dataset.
- Web Interface: Provides a simple and user-friendly frontend for making predictions.
- Containerized: Includes a
Dockerfilefor quick and easy deployment using Docker.
- Backend: Python (Inferred from
app.pyandrequirements.txt, likely Flask / FastAPI) - Frontend: HTML, CSS, JavaScript (Located in
staticandtemplates) - Model: (Located in
models, e.g., Scikit-learn, TensorFlow, PyTorch) - Deployment: Docker
.
├── models/ \# Stores pre-trained model files
├── static/ \# Stores static assets (CSS, JS, images)
├── templates/ \# Stores HTML templates
├── .idea/ \# IDE configuration (can be ignored)
├── app.py \# Main application backend script
├── Dockerfile \# Docker configuration file
├── README.md \# This README file
└── requirements.txt \# Python dependency list
a. Clone the repository
git clone [https://github.com/Molyleaf/toxic-prediction.git](https://github.com/Molyleaf/toxic-prediction.git)
cd toxic-predictionb. (Optional) Create and activate a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activatec. Install dependencies
pip install -r requirements.txtd. Run the application
python app.pyAfter launching, open your browser and navigate to http://127.0.0.1:5000 (or the port specified in the console) to use the application.
If you have Docker installed, you can run the project with these commands.
a. Build the Docker image
docker build -t toxic-prediction .b. Run the Docker container
# This maps port 5000 on your host to port 5000 in the container
docker run -p 5000:5000 toxic-predictionThe application will be available at http://localhost:5000.
Contributions are welcome! If you have suggestions or want to contribute code, please follow these steps:
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License.