Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.12 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.12 KB

Minimizer Implementation

This project implements a DNA sequence minimizer algorithm using a monotonic queue. It identifies the minimal k-mers within sliding windows of a given DNA sequence, which is useful in bioinformatics for sequence analysis and comparison. The algorithm is described in the following paper: Zheng et al 2023.

Installation

Ensure you have a C++ compiler installed. Clone the repository and navigate to its directory.

git clone https://github.com/myprogrammerpersonality/Minimizers
cd Minimizers

Compilation

Compile the source code using the following command:

g++ -O3 -o minimizer minimizer.cpp

Usage

Run the program with a DNA sequence file, specifying the k-mer size and window size:

./minimizer <filepath> <k> <w>

filepath: Path to the file containing the DNA sequence. k: Size of the k-mer. w: Size of the sliding window.

Example

./minimizer input.txt 3 5

Output

The program outputs the minimizers found in the sequence. If there are more than 10 minimizers, it shows the first 10.