Skip to content

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
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.

2 participants