From Genome Analysis Wiki
Jump to navigationJump to search
573 bytes added
, 10:56, 6 April 2010
Line 41: |
Line 41: |
| | <code>void setSortedValidation(SortedType sortType)<\code> | | | <code>void setSortedValidation(SortedType sortType)<\code> |
| | Set the flag to validate that the file is sorted as it is read/written. Must be called after the file has been opened. | | | Set the flag to validate that the file is sorted as it is read/written. Must be called after the file has been opened. |
− | sortType specifies the type of sort to be checked for.
| + | sortType specifies the type of sort to be checked for. |
| |- | | |- |
| | <code>uint32_t GetCurrentRecordCount()</code> | | | <code>uint32_t GetCurrentRecordCount()</code> |
Line 50: |
Line 50: |
| |} | | |} |
| | | |
| + | === Class Enums === |
| + | {| style="margin: 1em 1em 1em 0; background-color: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;" border="1" |
| + | |-style="background: #f2f2f2; text-align: center;" '''SamFile Class Methods''' |
| + | ! colspan="2"| enum SortedType |
| + | |- |
| + | ! Enum Value !! Description |
| + | |- |
| + | | UNSORTED |
| + | | Do not do any sorting validation. |
| + | |- |
| + | | FLAG |
| + | | Validate that the file is sorted by the type specified in the SO Tag of the file's header. |
| + | |- |
| + | | COORDINATE |
| + | | Validate that the file is sorted by Coordinate. |
| + | |- |
| + | | QUERY_NAME |
| + | | Validate that the file is sorted by Query Name. |
| + | |} |
| | | |
| === Usage Example === | | === Usage Example === |