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

Add example of writing fastq #473

Closed
kyleabeauchamp opened this issue Jun 2, 2017 · 2 comments
Closed

Add example of writing fastq #473

kyleabeauchamp opened this issue Jun 2, 2017 · 2 comments

Comments

@kyleabeauchamp
Copy link
Contributor

#471 asked for fastq writing capabilities. I think we already have this, but it's a bit hard to find. Basically, the __str__() member function FastqProxy does what we need for writing, so we might as well add an example of this.

for line in fastq:
   fh.write(str(line))

The only other thing that might be desirable is to have a constructor for FastqProxy that creates an object from the name, seq, and qual strings.

@AndreasHeger
Copy link
Contributor

Good points, I will see if I can polish this part this weekend.

@AndreasHeger
Copy link
Contributor

Done, see 1c28fcb

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

No branches or pull requests

2 participants