aboutsummaryrefslogtreecommitdiff
path: root/src/c/quikr_functions.h
blob: a5d0601f1a1b7151704a390988a8e6108704e5f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// our malloc checker
void check_malloc(void *ptr, char *error);
// count the sequences in a fasta file
unsigned long long count_sequences(const char *filename);

// normalize a matrix by dividing each element by the sum of it's column
void normalize_matrix(double *matrix, int height, int width);

// load a sensing matrix  
struct matrix *load_sensing_matrix(const char *filename, unsigned int target_kmer);

// add header and normalize count matrix
double *setup_count_matrix(char *filename, unsigned long long kmer, unsigned long long lambda, unsigned long long width);