KLinterSel is a Python project for calculating intersections between selective sites detected by different methods. The main script performs operations on genomic data from selective scans and supports statistical tests and plotting.
- Python 3.7+
- Libraries: numpy, pandas, matplotlib, seaborn, scipy, psutil
You can get KLinterSel by downloading the prebuilt binaries from the Releases section or by installing the program from source:
- Clone this repository or download the source files by clicking on the green "Code" button and selecting "Download ZIP."
git clone https://github.com/noosdev0/KLinterSel.git
- Create and activate a virtual environment (recommended).
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install the required libraries using
pip install -r requirements.txt
To run the script, use the following command:
python3 KLinterSel.py <file1> <file2> <file3> [file4 ...]
For just intersections at a specified distance:
python3 KLinterSel.py <file1> <file2> <file3> [file4 ...] --dist <distance> --notest
For plotting the distribution:
python3 KLinterSel.py <file1> <file2> <file3> [file4 ...] --paint
- Filter clusters in genomic data from selective scans
- Calculate intersections between different methods
- Generate random data for control
- Perform statistical tests
- Plot distributions