18 #ifndef PT_COMPLEMENT_H
44 return max_bond[base];
51 double get_simple_wmismatch(
const PT_bond *bonds,
char probe,
char seq) {
54 return max_bind - new_bind;
57 void init(
const PT_bond *bonds) {
61 sum += weight[probe][
seq] = get_simple_wmismatch(bonds, probe, seq);
63 weight[probe][
PT_N] = sum/4.0;
68 sum += weight[probe][
seq];
82 double get(
int probe,
int seq)
const {
84 return weight[probe][
seq];
94 double calc_split(
const PT_local *
locs,
char base,
char ref) {
98 if (new_bind < locs->split)
99 return new_bind-max_bind;
101 return max_bind-new_bind;
109 split[base][ref] = calc_split(locs, base, ref);
114 double check(
char base,
char ref)
const {
125 #error pt_split.h included twice
MismatchWeights(const PT_bond *bonds)
MaxBond(const PT_bond *bond)
CONSTEXPR_INLINE unsigned char safeCharIndex(char c)
Splits(const PT_local *locs)
double get_max_bond(int base) const
double get_bond_val(const PT_bond *bond, int probe, int seq)
CONSTEXPR_INLINE bool is_valid_base(char b)
CONSTEXPR_INLINE bool is_std_base(char b)
int get_complement(int base)
double check(char base, char ref) const