Skip to content

Commit

Permalink
r55: count file-specific k-mers
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Mar 21, 2020
1 parent 939cb9c commit 6de3aff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions trioeval.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ int main_trioeval(int argc, char *argv[])
{
ketopt_t o = KETOPT_INIT;
int i, c, min_cnt = 2, mid_cnt = 5;
int64_t cnt[YAK_N_COUNTS];
yak_ch_t *ch;
te_shared_t aux;

Expand All @@ -162,6 +163,9 @@ int main_trioeval(int argc, char *argv[])

ch = yak_ch_restore_core(0, argv[o.ind], YAK_LOAD_TRIOBIN1, min_cnt, mid_cnt);
ch = yak_ch_restore_core(ch, argv[o.ind + 1], YAK_LOAD_TRIOBIN2, min_cnt, mid_cnt);
yak_ch_hist(ch, cnt, aux.n_threads);
fprintf(stderr, "[M::%s] %ld file1-specific k-mers and %ld file2-specific k-mers\n", __func__,
(long)cnt[0<<2|2], (long)cnt[2<<2|0]);

aux.k = ch->k;
aux.fp = bseq_open(argv[o.ind+2]);
Expand Down
2 changes: 1 addition & 1 deletion yak.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef YAK_H
#define YAK_H

#define YAKS_VERSION "r54"
#define YAKS_VERSION "r55"

#include <stdint.h>

Expand Down

0 comments on commit 6de3aff

Please sign in to comment.