3 // This file is part of the Mussa source distribution.
4 // http://mussa.caltech.edu/
5 // Contact author: Tristan De Buysscher, tristan@caltech.edu
7 // This program and all associated source code files are Copyright (C) 2005
8 // the California Institute of Technology, Pasadena, CA, 91125 USA. It is
9 // under the GNU Public License; please see the included LICENSE.txt
10 // file for more information, or contact Tristan directly.
13 // ----------------------------------------
14 // ---------- flp.hh -----------
15 // ----------------------------------------
21 //! FLP = Fixed Length Pairs (Data)
23 * vector of linked lists of the match type struct
28 //! the number of base pairs used to compute this sliding window
30 //! the minimum tnumber of base pairs need for this window to be saved.
32 int seq1_length, seq2_length, seq1_win_num, seq2_win_num;
43 void setup(std::string type, int win_size, int hard_thres, int len1, int len2);
44 inline void add(int seq1_i, int seq2_i, int a_score, int i2_offset);
45 void seqcomp(std::string seq1, std::string seq2, bool is_RC);
46 //bool FLPs::match_less(match *match1, match *match2);
48 std::list<int> matches(int index);
49 //version with int threshold
50 std::list<int> thres_matches(int index, int thres);
52 void file_save(std::string save_file_path);
53 void file_load(std::string file_path);
55 std::vector<std::list<match> > all_matches;