This model utilizes paired hidden markov model (HMM) to find the alignment between 2 sequences.
0 | 1 | 2 | 3 | 4 | |
---|---|---|---|---|---|
0 | |||||
1 | |||||
2 | |||||
3 | |||||
4 |
The model is implemented as a UNIX command line tool, with syntax:
HMM [-fh] -i <infile> -a <path | probability> -b <alignment>
-f
: Add this flag to enable forward mode.-h
: Print help information.infile
: The input fastq file, in which every 2 sequences are considered as a pair.path | probability
: The output path of inferred hidden states or probability in forward mode.alignment
: The output path of alignment result, and is ignored in forward mode.
For instance, put pair.txt in the same directory of executable file called "HMM":
- Get hidden chain and alignment:
./HMM -i ./pair.txt -a ./path_alignment_model.txt -b ./predicted_alignment.txt
- Get forward probability:
./HMM -i ./pair.txt -a ./prob_alignment_model.txt -f
This project is managed by CMake, be sure you have a version over 3.23.
- Go to the source code directory
mkdir make-dir
cd make-dir
cmake ..
make
Then find the executable file called "HMM" in make-dir.