-
Hi @zaeleus - could you give an example how I could use the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The general strategy to querying is to
There is currently no way to query an arbitrary tabix-indexed file, but it is planned as part of #158. You can, however, implement 3 and 4. I added an example of this in |
Beta Was this translation helpful? Give feedback.
-
noodles 0.39.0/noodles-csi 0.18.0 now supports reading generic indexed files. It introduces a record parser ( let records = Query::new(&mut decoder, chunks)
.indexed_records(&header)
.filter_by_region(®ion);
for result in records {
let record = result?;
// ...
} This pattern is wrapped by |
Beta Was this translation helpful? Give feedback.
The general strategy to querying is to
csi::Index::query
),csi::io::Query
),There is currently no way to query an arbitrary tabix-indexed file, but it is planned as part of #158. You can, however, implement 3 and 4. I added an example of this in
noodles-tabix/examples/tabix_query_generic.rs
.