-
Notifications
You must be signed in to change notification settings - Fork 0
/
sort.h
48 lines (40 loc) · 1.32 KB
/
sort.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef SORT_H
#define SORT_H
#ifdef CUDA_VERSION
#include "cuda_commons.h"
#endif
#define SORTED_FILE_SUFFIX ".sorted"
/* **************************************
* Functions *
* *************************************/
/**
* @brief Sorts a BAM file by chromosome/position
* @param batch_size max. size of the bam batch
* @param input_filename bam file name
* @param output_directory output directory where sorted file will be written
* @return void
*
* Sorts a BAM file by chromosome/position
*/
void sort_bam_file(size_t batch_size, char* input_filename, char* output_directory);
/**
* @brief Sorts a BAM file by sequence id
* @param batch_size max. size of the bam batch
* @param input_filename bam file name
* @param output_directory output directory where sorted file will be written
* @return void
*
* Sorts a BAM file by sequence id
*/
void sort_bam_file_by_id(size_t batch_size, char* input_filename, char* output_directory);
/**
* @brief Sorts a read dataset file by sequence id
* @param input_filename dataset file name
* @param output_directory output directory where sorted file will be written
* @return void
*
* Sorts a read dataset file by sequence id
* It is assumed that the file fits in memory
*/
void sort_dataset_by_id(char* dataset_input, char* output_directory);
#endif /* SORT_H */