From Genome Analysis Wiki
Jump to: navigation, search

LibStatGen: BAM

34 bytes added, 08:56, 6 April 2010
no edit summary
==== Usage Example ====
This example reads in the inputFilename bam file and writes it back out section by section to the specified outputFilename, starting with section -1. It also prints a count of the number of records in each section.
<presource lang="cpp">
int ReadIndexedBam(const char* inputFilename,
const char* outputFilename,
Example of using getNextSamTag:
<presource lang="cpp">
// record is a previously setup SamRecord.
String recordString = "";
recordString += "\n";
== Suggested Improvements/Features ==
* Add optional user flag for checking if a file is sorted when it is read. It would report an error if it is unsorted.

Navigation menu