From Genome Analysis Wiki
Jump to navigationJump to search
7 bytes added
, 09:07, 7 September 2011
Line 4: |
Line 4: |
| = Usage Examples = | | = Usage Examples = |
| This page contains examples on how to use the [[C++ Library: libStatGen|SAM/BAM Library]]. | | This page contains examples on how to use the [[C++ Library: libStatGen|SAM/BAM Library]]. |
| + | |
| + | See [[BamUtil]] for more examples of how it uses libStatGen to perform many operations. |
| | | |
| == Simple Read/Write SAM/BAM files == | | == Simple Read/Write SAM/BAM files == |
Line 37: |
Line 39: |
| | | |
| SamRecord samRecord; | | SamRecord samRecord; |
− | SamValidationErrors samInvalidErrors;
| |
| | | |
| // Set returnStatus to success. It will be changed | | // Set returnStatus to success. It will be changed |
Line 91: |
Line 92: |
| | | |
| SamRecord samRecord; | | SamRecord samRecord; |
− | SamValidationErrors samInvalidErrors;
| |
| | | |
| // Loop through each Reference. | | // Loop through each Reference. |