srabhishek/Genomesightpro
GENTIS: Graph-Enhanced Neural Transformer for Integrative Sequence Analysisral Transformer for Integrative Sequence Analysis
 MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) 
Overview
GENTIS is a novel computational framework that combines positional sequence analysis, conservation features, and transformer-based machine learning to identify biomarkers across diverse biological datasets. By integrating statistical approaches with deep learning, GENTIS enables more robust biomarker detection in complex genomic data.l framework that combines positional sequence analysis, conservation features, and transformer-based machine learning to identify biomarkers across diverse biological datasets. By integrating statistical approaches with deep learning, GENTIS enables more robust biomarker detection in complex genomic data.
The framework incorporates negative binomial generalized linear models with transformer-based feature extraction to enhance sensitivity while maintaining specificity. Our architecture allows for the automated processing of sequence data, feature engineering, model training, and visualization within a unified computational pipeline, significantly reducing the computational burden of iterative biomarker analysis. binomial generalized linear models with transformer-based feature extraction to enhance sensitivity while maintaining specificity. Our architecture allows for the automated processing of sequence data, feature engineering, model training, and visualization within a unified computational pipeline, significantly reducing the computational burden of iterative biomarker analysis.
Key Features
Framework Architecture
- Sequence preprocessing module that handles data cleaning, normalization, and quality control that handles data cleaning, normalization, and quality control
- Feature engineering pipeline with both traditional biological feature extraction and deep learning-based approachespeline with both traditional biological feature extraction and deep learning-based approaches
- Statistical analysis module incorporating negative binomial generalized linear models for count dataalysis module incorporating negative binomial generalized linear models for count data
- Transformer-based sequence analysis using domain-specific pre-trained modelsuence analysis using domain-specific pre-trained models
- Integrated biomarker discovery pipeline that combines statistical and AI-based approachesker discovery pipeline that combines statistical and AI-based approaches
- Interactive visualization components for result interpretationion components for result interpretation
Data Processing & Analysisysis
- Support for DNA/RNA/Protein sequences- Support for DNA/RNA/Protein sequences
- Automatic sequence type detectiontype detection
- Advanced k-mer analysis
- Population and Individual-level analysis-level analysis
- Integrated genomics datasetsasets
- Real-time sequence validationvalidation
Machine Learning Capabilitieses
- Multiple training modes:ing modes:
- Basic Training
- Hyperparameter Tuning
- Ensemble Learning
- Custom CNN architecturesom CNN architectures
- Transfer learning with transformersrning with transformers
- Cross-validation supportrt
- Model serialization
Biomarker Discovery### Biomarker Discovery
- Automated biomarker detection
- Feature importance analysisce analysis
- Motif enrichment analysissis
- Conservation analysisalysis
- Mutation hotspot detection
- Functional element predictionlement prediction
Visualizations
- Interactive sequence length distributionve sequence length distribution
- Nucleotide composition plotside composition plots
- K-mer frequency analysisequency analysis
- ROC curves
- Confusion matriceson matrices
- Feature importance plotsure importance plots
- Training history visualizationning history visualization
- Biomarker network graphsmarker network graphs
Model Evaluation### Model Evaluation
- Comprehensive metrics (Accuracy, Precision, Recall, F1)- Comprehensive metrics (Accuracy, Precision, Recall, F1)
- ROC curve analysislysis
- Cross-validation resultsesults
- Model calibration
- Prediction distribution analysis- Prediction distribution analysis
- Error analysissis
Technologies Used
- Python 3.8+hon 3.8+
- Streamlit
- TensorFlow TensorFlow
- Scikit-learn- Scikit-learn
- Biopython
- Plotly- Plotly
- Pandas
- NumPy- NumPy
- PyTorch & Transformers (for advanced analysis)rs (for advanced analysis)
Installation
Prerequisiteserequisites
- Python 3.8 or higher
- pip package managerckage manager
Quick Setup Quick Setup
The easiest way to install all dependencies is to use our automated installer script:ll all dependencies is to use our automated installer script:
python install_dependencies.py.pyThis script will detect your system configuration and install the appropriate versions of all required packages.your system configuration and install the appropriate versions of all required packages.
Manual Installation
- Clone the repository:1. Clone the repository:
git clone https://github.com/your-username/GENTIS.git
cd GENTIScd GENTIS- Create and activate a virtual environment (recommended):ual environment (recommended):
python -m venv venv# On Windowsn Windows
venv\Scripts\activatevenv\Scripts\activate# On macOS/Linux# On macOS/Linux
source venv/bin/activatevenv/bin/activate- Install dependencies:3. Install dependencies:
pip install -r requirements.txts.txtTroubleshooting Dependencies### Troubleshooting Dependencies
If you encounter warnings about missing libraries when running the application:nings about missing libraries when running the application:
# For TensorFlow
pip install tensorflow==2.14.0pip install tensorflow==2.14.0# For PyTorch and Transformerss
pip install torch==2.0.1 transformers==4.31.0pip install torch==2.0.1 transformers==4.31.0# For UMAP (dimensionality reduction) reduction)
pip install umap-learn==0.5.3Running the Applicationication
After installation, launch the interactive interface:on, launch the interactive interface:
python start_app.pyAlternatively, you can run the Streamlit app directly:
streamlit run app.pyExample Usage
- Load sample data or upload your own FASTA files1. Load sample data or upload your own FASTA files
- Explore sequence characteristics through visualization toolsuence characteristics through visualization tools
- Configure and train the GENTIS model to identify potential biomarkers3. Configure and train the GENTIS model to identify potential biomarkers
- Evaluate model performance and analyze discovered biomarkersformance and analyze discovered biomarkers
- Export results and visualizations for further analysis or publicationtion
Project Structure
viral-biomarker-discovery/arker-discovery/
├── data/ # Folder for raw and processed data├── data/ # Folder for raw and processed data
├── models/ # Folder for saving trained models
├── src/ # Source code├── src/ # Source code
│ ├── __init__.pyinit__.py
│ ├── data_processing.py│ ├── data_processing.py
│ ├── model.pyl.py
│ ├── evaluate.py│ ├── evaluate.py
│ ├── visualizations.pyalizations.py
│ └── ai_analysis.py│ └── ai_analysis.py
├── app.py # Main application filecation file
├── requirements.txt # Dependencies├── requirements.txt # Dependencies
└── README.md # Project documentation # Project documentationContributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature)2. Create a feature branch (git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature')ges (git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature)4. Push to the branch (git push origin feature/AmazingFeature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.licensed under the MIT License - see the LICENSE file for details.
Creator
ABHISHEK S R
Copyrightyright
© 2025 GeneAI. All rights reserved.
Acknowledgments
- Built with Streamlitreamlit
- Uses TensorFlow for deep learningep learning
- Employs Scikit-learn for machine learningmploys Scikit-learn for machine learning
- Utilizes Biopython for sequence analysisn for sequence analysis
BiomarkerAnalyzer
Overview
BiomarkerAnalyzer is an advanced genomic biomarker discovery platform built with Gradio. It provides a user-friendly interface for analyzing genomic data to identify potential biomarkers associated with various conditions.
Features
- Comprehensive Analysis: Perform differential abundance analysis on genomic sequences to identify potential biomarkers.
- Interactive Visualizations: Explore your data through volcano plots, heatmaps, fold change distributions, and MA plots.
- Pathway Analysis: Understand the biological context of your findings with integrated pathway analysis.
- Machine Learning Integration: Leverage machine learning algorithms to evaluate the predictive power of identified biomarkers.
- Result Verification: Validate your findings with cross-validation and permutation testing.
- Export Options: Export your results in multiple formats (PDF, Excel, CSV, TSV) for further analysis or reporting.
Installation
- Clone the repository:
git clone https://github.com/yourusername/BiomarkerAnalyzer.git
cd BiomarkerAnalyzer- Install the required dependencies:
pip install -r requirements.txtUsage
- Run the application:
python gradio_app.py- Open your web browser and navigate to:
http://127.0.0.1:7860- Use the interface to:
- Load sample datasets or upload your own data
- Set analysis parameters
- Run the analysis
- Explore the results through visualizations
- Export your findings
Sample Datasets
The application includes several sample datasets for demonstration and testing:
Synthetic Datasets
- Lung Cancer (Synthetic): 12 patient samples and 12 control samples
- Breast Cancer (Synthetic): 10 patient samples and 10 control samples
- Colorectal Cancer (Synthetic): 8 patient samples and 8 control samples
- Prostate Cancer (Synthetic): 15 patient samples and 15 control samples
- Melanoma (Synthetic): 9 patient samples and 9 control samples
Public Datasets (Simulated)
- TCGA Lung Cancer: Simulated data representing lung cancer samples from The Cancer Genome Atlas
- TCGA Breast Cancer: Simulated data representing breast cancer samples from The Cancer Genome Atlas
- GEO Colorectal Cancer: Simulated data representing colorectal cancer samples from Gene Expression Omnibus
- SRA Prostate Cancer: Simulated data representing prostate cancer samples from Sequence Read Archive
- NCBI Melanoma: Simulated data representing melanoma samples from National Center for Biotechnology Information
For more details about the sample datasets, see the sample_data/README.md file.
Data Input Options
- Sample Datasets: Choose from pre-loaded sample datasets for quick testing and exploration.
- File Upload: Upload your own genomic data files in CSV, TSV, or FASTA format.
- Paste Sequences: Directly paste sequence data in FASTA format for analysis.
Analysis Parameters
- Statistical Parameters: Set p-value threshold, fold change threshold, and multiple testing correction method.
- AI/ML Methods: Choose from various machine learning algorithms and feature selection methods.
- Pathway Analysis: Select pathway databases and enrichment methods for biological context.
Output and Visualizations
- Results Table: View detailed results of the differential abundance analysis.
- Volcano Plot: Visualize the relationship between statistical significance and fold change.
- Heatmap: Explore expression patterns of top significant biomarkers.
- Fold Change Distribution: Understand the distribution of expression changes.
- MA Plot: Examine the relationship between mean abundance and fold change.
- Pathway Enrichment: Discover enriched biological pathways associated with identified biomarkers.
- ML Feature Importance: Identify which biomarkers are most predictive for classification.
- Biomarker Report: Generate a comprehensive report of potential biomarkers with biological context.
- Result Verification: Validate findings with cross-validation and permutation testing.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Developed by ABHISHEK S R
- Built with Gradio, Pandas, NumPy, Matplotlib, and Seaborn
GenomeSight Pro: Biomarker Analyzer
A comprehensive platform for biomarker discovery and analysis from genomic data.
Overview
GenomeSight Pro is an advanced genomic biomarker discovery and visualization platform designed for bioinformaticians, researchers, and clinicians. It identifies gene expression, mutation, and sequence biomarkers for cancer diagnosis, prognosis, and treatment selection.
Features
- Data Loading: Import data from sample datasets, upload files, or paste sequences directly
- Statistical Analysis: Perform differential expression analysis with customizable parameters
- Machine Learning Integration: Apply advanced ML techniques for biomarker identification
- Pathway Analysis: Explore biological pathways enriched in your dataset
- Interactive Visualizations: View your results through multiple interactive plots
- Verification: Cross-validate findings for statistical robustness
- Report Generation: Create and export biomarker reports in multiple formats
Getting Started
Installation
No installation is required. Simply:
- Make sure you have Python 3.8 or higher installed
- Double-click the
run_biomarker_analyzer.batfile to start the application - A web browser window will open with the application interface
If you encounter any issues with the launcher, you can also start the application by:
python gradio_app.pyUsing the Application
- Load Data:
- Choose a sample dataset, or
- Upload patient/control files, or
- Paste sequence data directly
- Configure Analysis Parameters:
- Set statistical thresholds (p-value, fold change)
- Choose multiple testing correction method
- Configure machine learning and pathway analysis options
- Run Analysis:
- Click the "Run Analysis" button
- Wait for the analysis to complete
- Explore Results:
- Review interactive visualizations
- Examine the biomarker report
- Verify statistical robustness
- Export Results:
- Choose the export format (CSV, Excel, PDF)
- Click "Export Results"
Troubleshooting
If you encounter issues running the application:
- Python Not Found:
- Make sure Python 3.8 or higher is installed
- Ensure Python is added to your system PATH
- Dependencies Missing:
- The application may prompt you to install missing packages
- Follow any on-screen instructions to install them
- Browser Issues:
- If the browser doesn't open automatically, navigate to http://127.0.0.1:7860
License
© 2025 Abhishek S R - All Rights Reserved
Deployment to Hugging Face Spaces
This application can be deployed to Hugging Face Spaces, a platform for hosting machine learning applications. To deploy:
- Create a new Space on Hugging Face Spaces.
- Clone this repository and push it to the Hugging Face Space repository.
- The application will automatically be deployed using the
app.pyfile.
Alternatively, you can use the GitHub workflow in .github/workflows/sync-to-hub.yml to automatically sync your repository with Hugging Face Spaces when you push to the main branch.
Required Files for Deployment
The following files are essential for deployment:
app.py: The main application file optimized for Hugging Face Spacespipeline.py: The backend pipeline for analysisrequirements.txt: Dependencies needed for the applicationdownload_data.py: Script to download or generate sample datasetsassets/icon.svg: Application icon for branding
Setting Up on Hugging Face
When setting up your Space, make sure to:
- Select "Gradio" as the SDK
- Add any necessary secrets
- Allocate sufficient resources for the application
Running the Application Locally
To run the application locally, use:
python app.pyFor first-time setup, it's recommended to run the data downloader first:
python download_data.py