File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,16 @@ Path path_from_thread_t(thread_t& t, const HandleGraph& source);
5050// then the search stops. The search will also emit a result if any selected sample stops.
5151//
5252// No empty sub-haplotypes will be returned.
53+ //
54+ // For haplotypes emitted because a sample stopped, the corresponding GBWT
55+ // search state will have been extended with the end marker. It will have the
56+ // correct .size() for the number of haplotypes that stop there, but it will
57+ // *not* be usable with locate() queries! If you need to do locate() queries,
58+ // you need to filter the output and keep only results that would have
59+ // satisfied the stop_fn predicate.
60+ //
61+ // TODO: Adopt a different internal format that doesn't have such a weird
62+ // quirk.
5363vector<pair<vector<gbwt::node_type>, gbwt::SearchState> > list_haplotypes (const HandleGraph& graph,
5464 const gbwt::GBWT& gbwt,
5565 handle_t start,
You can’t perform that action at this time.
0 commit comments