Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate read handling code to utils code. #1466

Open
standage opened this issue Sep 30, 2016 · 3 comments
Open

Migrate read handling code to utils code. #1466

standage opened this issue Sep 30, 2016 · 3 comments

Comments

@standage
Copy link
Member

standage commented Sep 30, 2016

In #1458 and #1435, we added a bunch of generic read handling code to khmer/utils.py, which now has clean_input_reads, broken_paired_iter, and ReadBundle. These should be used to do all Python-based read handling throughout the code.

In particular, all uses of ThreadedSequenceProcessor should be removed; ref #1470.

@ctb
Copy link
Member

ctb commented Sep 30, 2016 via email

@ctb ctb changed the title Migrate read handling code to ReadBundler Migrate read handling code to utils code. Oct 4, 2016
@ctb
Copy link
Member

ctb commented Oct 4, 2016

(filter-abund* done in #1469.)

@betatim
Copy link
Member

betatim commented Nov 15, 2016

You can now use

from khmer import ReadParser

for index, is_pair, read1, read2 in broken_paired_reader(ReadParser(infile)):
  ...

instead of using screed and benefit from faster reading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants