15 #ifndef _GLIBCXX_CMATH
22 #define seq_assert(bed) arb_assert(bed)
34 int roundme(
double value);
54 int SQ_physical_layout::roundme(
double value) {
57 x = (
int) floor(value);
62 int size,
GBDATA * gb_quality_ali) {
65 for (
int i = 0; i < size; i++) {
66 switch (sequence[i]) {
88 GC_proportion = GC / count_bases;
90 temp = 100 - (100 * ((count_scores + count_dots) / size));
91 percent_bases = roundme(temp);
92 count_bases2 = roundme(count_bases);
void SQ_calc_physical_layout(const char *sequence, int size, GBDATA *gb_quality_ali)
GB_ERROR GB_write_float(GBDATA *gbd, float f)
GB_ERROR GB_write_int(GBDATA *gbd, long i)
double SQ_get_gc_proportion() const
int SQ_get_number_of_bases() const
GBDATA * GB_search(GBDATA *gbd, const char *fieldpath, GB_TYPES create)