#ifndef _SEARCH_H #define _SEARCH_H #include #include #include //#include "dna_types.h" #include "region.h" #include "dnacol.h" namespace cis { class pattern; } class litestream; struct hit_info; struct scan_interval; template class nuc_trie; template class index_trie_scan; /* template class nuc_trie; */ typedef nuc_trie hit_trie; typedef std::pair LOCUS; typedef std::vector LOCI; LOCI Search(index_trie_scan &, hit_trie *, litestream &, litestream &, int); int64_t TotalSize(index_trie_scan & scantrie, litestream & trie_stream); int CountHits(LOCI const&); void FindThresholdScore(LOCI const& loci, int nhits, std::pair * threshold); cis::REG_MAP makeHits(LOCI const& ivals, cis::pattern *pat, litestream & pos_file, cis::dna_collection const& dnac, cis::dna_collection::const_iterator start_dna, cis::dna_collection::const_iterator end_dna, int max_depth); #endif //_SEARCH_H