-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilter.h
38 lines (32 loc) · 1.33 KB
/
filter.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
#ifndef FILTER_H
#define FILTER_H
#include "bam.h"
#include "bam_file.h"
#include "commons.h"
#include "log.h"
/* **************************************
* Functions *
* *************************************/
/**
* @brief Filter a BAM file by a given chromosome
* @param bam_input bam input filename
* @param chromosome chromosome to keep in the filtered BAM
* @return void
*
* Filter a BAM file by a given chromosome, output BAM with given chromosome is written to disk
*/
void filter_bam_by_chromosome(char* bam_input, char* output_directory, short int chromosome);
/**
* @brief Filter a BAM file using input criteria
* @param bam_input bam input filename
* @param chromosome chromosome to keep in the filtered BAM
* @param min_length min length between paired ends to keep in the filtered BAM
* @param min_quality min quality between paired ends to keep in the filtered BAM
* @param max_distance max distance between paired ends to keep in the filtered BAM
* @return void
*
* Filter a BAM file using input criteria (chromosome, alignment length, quality and/or
* distance between paired ends), output BAM is written to disk
*/
void filter_bam_by_criteria(char* bam_input, char* output_directory, int max_mismatches, short int chromosome, int min_length, int min_quality, int max_quality, int max_distance);
#endif /* FILTER_H */