35 memcpy(
m_all_pos, all_pos, len*
sizeof(int32_t));
43 one = SG_MALLOC(int32_t, 1);
46 one = SG_MALLOC(int32_t, 1);
60 if (end_pos[k]<end_pos[k-1])
61 SG_ERROR(
"end pos array is not sorted: end_pos[k-1]:%i end_pos[k]:%i\n", end_pos[k-1], end_pos[k])
71 ASSERT(start_pos[k]<end_pos[k])
76 int32_t* new_list = SG_REALLOC(int32_t,
m_intron_list[i], from_list_len, (from_list_len+1));
79 new_list[from_list_len]= start_pos[k];
86 ASSERT(q_list_len==from_list_len)
87 new_list = SG_REALLOC(int32_t,
m_quality_list[i], q_list_len, (q_list_len+1));
90 new_list[q_list_len]= quality[k];
113 int32_t coverage = 0;
115 for (
int i=1;i<from_list[0]; i++)
121 coverage = coverage+1;
125 values[0] = coverage;
int32_t ** m_quality_list
void init_list(int32_t *all_pos, int32_t len)
Class SGObject is the base class of all shogun objects.
all of classes and functions are contained in the shogun namespace
void get_intron_support(int32_t *values, int32_t from_pos, int32_t to_pos)
void read_introns(int32_t *start_pos, int32_t *end_pos, int32_t *quality, int32_t len)