12 #ifndef ISLAND_HOPPING_H
13 #define ISLAND_HOPPING_H
48 friend class IslandHopping;
51 IslandHoppingParameter(
bool use_user_freqs_,
52 double fT_,
double fC_,
double fA_,
double fG_,
53 double rTC_,
double rTA_,
double rTG_,
double rCA_,
double rCG_,
double rAG_,
54 double dist_,
double supp_,
double gapA_,
double gapB_,
double gapC_,
double thres_);
56 virtual ~IslandHoppingParameter();
60 static IslandHoppingParameter *para;
67 const char *ref_sequence;
69 const char *toAlign_sequence;
72 const char *toAlign_helix;
74 char *aligned_ref_sequence;
75 char *output_sequence;
77 int output_alignment_length;
90 toAlign_sequence =
NULp;
95 output_sequence =
NULp;
96 aligned_ref_sequence =
NULp;
97 output_alignment_length = 0;
101 double fT,
double fC,
double fA,
double fG,
102 double rTC,
double rTA,
double rTG,
double rCA,
double rCG,
double rAG,
103 double dist,
double supp,
double gapA,
double gapB,
double gapC,
double thres)
106 para =
new IslandHoppingParameter(use_user_freqs, fT, fC , fA, fG, rTC, rTA, rTG, rCA, rCG, rAG , dist, supp, gapA, gapB, gapC, thres);
110 delete output_sequence;
111 delete aligned_ref_sequence;
122 freedup(ref_helix, hel);
123 toAlign_helix = ref_helix;
127 firstColumn = range.
start();
128 lastColumn = range.
end();
135 bool was_aligned()
const {
return output_sequence && aligned_ref_sequence; }
142 #error island_hopping.h included twice
143 #endif // ISLAND_HOPPING_H
void set_ref_sequence(const char *ref_seq)
static void do_align(int &score, long act_seq_length)
void set_parameters(bool use_user_freqs, double fT, double fC, double fA, double fG, double rTC, double rTA, double rTG, double rCA, double rCG, double rAG, double dist, double supp, double gapA, double gapB, double gapC, double thres)
void set_helix(const char *hel)
void set_range(ExplicitRange range)
void set_toAlign_sequence(const char *toAlign_seq)
const char * get_result_ref() const
int get_result_length() const
const char * get_result() const
void set_alignment_length(int len)