# PythonBIOTools
## PAM Analysis Scripts
### Overview
This repository contains Python scripts for performing PAM (Position-Weight Matrix) analysis. These scripts are designed to analyze biological sequences and identify motifs based on PAM matrices.
### Script: `tifanalysisnoselector.py`
This script processes TIFF images to analyze and visualize regions of interest based on intensity deviations. It identifies unhealthy regions in the images by comparing pixel intensity values to a baseline intensity of healthy tissue.
### Installation
To use the PAM analysis scripts, clone this repository and install the required dependencies:
```bash
git clone https://github.com/Mvgnu/PythonBIOTools.git
cd PythonBIOTools
pip install -r requirements.txtRun the analysis script with the following command:
python tifanalysisnoselector.pyinputfolder: Path to the input folder containing TIFF images (default: 'nrcinput22').outputfolder: Path to the output folder where results will be saved (default: 'nrcoutputadjustedthreshold').
- Loading Images: Loads all TIFF images from the specified input folder.
- Image Processing: Computes the mean of the first three slices, normalizes the values, and calculates the Fo, Fm, Fv, and Fv/Fm values.
- Background Removal: Removes background using an FM threshold.
- Mask Cleaning: Cleans up the mask using binary closing and opening operations.
- Intensity Analysis: Calculates the average intensity of healthy tissue and identifies unhealthy regions based on deviations from this baseline.
- Region Analysis: Labels and filters regions based on size.
- Visualization: Generates and saves visualizations of the original mean image and detected low-intensity regions.
- Output: Saves the results and region details to the specified output folder.
To run the script, use the following command:
python tifanalysisnoselector.pyIf you would like to contribute to this project, please fork the repository and submit a pull request.
This project is licensed under the MIT License.
For any questions or issues, please open an issue on this repository.