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

Refactoring to use stream modules #7

Open
tiagofilipe12 opened this issue Jun 2, 2017 · 2 comments
Open

Refactoring to use stream modules #7

tiagofilipe12 opened this issue Jun 2, 2017 · 2 comments

Comments

@tiagofilipe12
Copy link
Member

Refactor to use through2, split2, pumpify.

@tiagofilipe12 tiagofilipe12 self-assigned this Jun 2, 2017
@tiagofilipe12 tiagofilipe12 changed the title Refactoring Refactoring to use stream modules Jun 2, 2017
@thejmazz
Copy link
Member

thejmazz commented Jun 2, 2017

Also, something to consider, we can do object stream of like { name, seq, name2, quality }, or somehow do it in a way that lets the seq and quality themselves be streamed. Else you need to store the entire seq and quality in memory (in the object) which somewhat defeats the purpose of streaming.

@tiagofilipe12
Copy link
Member Author

tiagofilipe12 commented Jun 2, 2017

I have made some changes to accomplish this but still experimental. Checkout branch Refactoring. Also, added a sample file with some possible problems while parsing fastq (check it here). Now, it handles empty lines, both with spaces and no spaces and can at the same time handle "@" character in quality recognizing properly the name. Please test it and see what you think (just run ./lib/bionode-fastq.js, since it has a test here).

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

2 participants