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

Extension of BamReader BamWriter API #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akolesnikov
Copy link

Extension of BamReader and BamWriter API.
Since BgzfStream already uses dynamic type device it is natural to extend API to allow new device types.
It may be useful functionality for those who want to write or read BAM files using their own IO stream implementation.

This extension does not support index creation using custom IO device. But, that functionality can be added if needed.

Allows to use a custom IO device for BamRead and BamWrite
@@ -45,7 +46,8 @@ class BamWriterPrivate {
bool IsOpen(void) const;
bool Open(const std::string& filename,
const std::string& samHeaderText,
const BamTools::RefVector& referenceSequences);
const BamTools::RefVector& referenceSequences,
IBamIODevice* device = 0);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should probably fix the formatting here. Also it looks like you should be using NULL in this repository, not 0.

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

Successfully merging this pull request may close these issues.

None yet

2 participants