Added mechanisms for retrieving tags by position within a sequence#749
Conversation
|
(a review would be welcome, but not yet ready for merge.) |
|
|
Ready for review @luizirber @camillescott @mr-c |
There was a problem hiding this comment.
GCC complained about kmer being defined but not used in this function, do you see it being used in the future? If not maybe just ignore the return value and remove it from the previous line?
|
Thanks @luizirber - ready for re-review. |
|
LGTM |
Added mechanisms for retrieving tags by position within a sequence
There was a problem hiding this comment.
1356-1357 lack testing coverage and won't be called ever anyhow
There was a problem hiding this comment.
fixed!
On Tue, Feb 10, 2015 at 11:16:55AM -0800, Michael R. Crusoe wrote:
- try {
unsigned int pos = 1;KMerIterator kmers(seq, counting->ksize());
while (!kmers.done()) {HashIntoType kmer = kmers.next();if (set_contains(counting->all_tags, kmer)) {posns.push_back(pos);tags.push_back(kmer);}pos++;}- } catch (_khmer_signal &e) {
PyErr_SetString(PyExc_ValueError, e.get_message().c_str());return NULL;- }
1356-1357 lack testing coverage and won't be called ever anyhow
Reply to this email directly or view it on GitHub:
https://github.com/ged-lab/khmer/pull/749/files#r24441205
C. Titus Brown, ctbrown@ucdavis.edu
There was a problem hiding this comment.
Thanks; making new pull request
This is primitive functionality enabling certain sorts of queries into the graph from within Python. /cc @camillescott; at some point we should chat more about how this intersects with labeling.