| 1 |
#include <algorithm> |
| 2 |
#include <ctime> |
| 3 |
#include <fstream> |
| 4 |
#include <iostream> |
| 5 |
#include <vector> |
| 6 |
|
| 7 |
#ifndef primer_bed |
| 8 |
#define primer_bed |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
const int unit_score = 2; |
| 21 |
|
| 22 |
const int substitution[5][5] = { |
| 23 |
{unit_score, -unit_score, -unit_score, -unit_score, 0}, |
| 24 |
{-unit_score, unit_score, -unit_score, -unit_score, 0}, |
| 25 |
{-unit_score, -unit_score, unit_score, -unit_score, 0}, |
| 26 |
{-unit_score, -unit_score, -unit_score, unit_score, 0}, |
| 27 |
{0, 0, 0, 0, 0}}; |
| 28 |
|
| 29 |
const int gap_open = unit_score - 1; |
| 30 |
const int gap_extension = -1; |
| 31 |
const int max_read_size = 500; |
| 32 |
const int max_adapter_size = 60; |
| 33 |
const int MAX_GAP = 2; |
| 34 |
|
| 35 |
int get_sub_score(char a, char b); |
| 36 |
int get_gap_penalty(int k, char a); |
| 37 |
void print_matrix(int h[][max_adapter_size], int r, int c, std::string read, |
| 38 |
std::string adap); |
| 39 |
int* get_score_cell(int h[][max_adapter_size], int i, int j, std::string read, |
| 40 |
std::string adap); |
| 41 |
void print_alignment(char a[2][max_read_size], int n); |
| 42 |
int* align_seqs(std::string read, std::string adap); |
| 43 |
int find_adapters_contaminants(std::istream& cin, std::string adp_cntms_file); |
| 44 |
int main(int argc, char* argv[]); |
| 45 |
|
| 46 |
#endif |