read extract

This commit is contained in:
chhylp123
2022-10-19 13:23:25 -04:00
parent 3d65bef9de
commit df3e0eeaa3
7 changed files with 3371 additions and 116 deletions
+19
View File
@@ -67,6 +67,25 @@ typedef struct {
size_t n, m;
} kv_ul_ov_t;
typedef struct {
///off: start idx in mg128_t * a[];
///cnt: how many eles in this chain
///a[off, off+cnt) saves the eles in this chain
int32_t off, cnt:31, inner_pre:1;
///ref_id|rev
uint32_t v;
///chain in ref: [rs, re)
///chain in query: [qs, qe)
int32_t rs, re, qs, qe;
///score: chain score
int32_t score, dist_pre;
uint32_t hash_pre;
} mg_lchain_t;
typedef struct {
mg_lchain_t *a;
size_t n, m;
}vec_mg_lchain_t;
///query is the read itself
typedef struct {