Skip to content

Commit

Permalink
load-in22-count: use new ht.n_unique_kmers method
Browse files Browse the repository at this point in the history
New API feature in ChangeLog on 2014-11-06. Also solves merge
conflict (hopefully)

	modified:   scripts/load-into-counting.py
  • Loading branch information
kdm9 committed Nov 18, 2014
1 parent a2c23c7 commit 455c856
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/load-into-counting.py
Expand Up @@ -122,11 +122,11 @@ def main():
with open(base + '.info', 'a') as info_fh:
print >> info_fh, 'through', filename

n_kmers = htable.n_occupied()
n_kmers = htable.n_unique_kmers()
if args.report_total_kmers:
print >> sys.stderr, 'Total number of k-mers:', n_kmers
print >> sys.stderr, 'Total number of unique k-mers:', n_kmers
with open(base + '.info', 'a') as info_fp:
print >>info_fp, 'Total number of k-mers:', n_kmers
print >>info_fp, 'Total number of unique k-mers:', n_kmers

print >>sys.stderr, 'saving', base
htable.save(base)
Expand Down

0 comments on commit 455c856

Please sign in to comment.