Changes

From Genome Analysis Wiki
Jump to: navigation, search

LibStatGen: BAM

17 bytes added, 09:49, 6 April 2010
Usage Example
==== Usage Example ====
The following example reads in a sam/bam file and writes it out as a sam/bam file. The file format of the input sam/bam is determined by the SamFile class based on reading the type from the file. The file format of the output sam/bam file is determined by the '''SamFile''' class based on the extension of the output file. A ".bam" extension indicates a BAM file. All other extensions indicate SAM files.
 <presource lang="cpp">
int main(int argc, char ** argv)
{
std::cout << "Number of valid records = " << numValidRecords << std::endl;
}
</presource
=== Reading Indexed (and Sorted) BAM Files ===

Navigation menu