-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathseq2pssm.h
39 lines (34 loc) · 1.26 KB
/
seq2pssm.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
/*
* seq2pssm.h
*
* Created on: Jun 12, 2009
* Author: krogh
*/
#ifndef SEQ2PSSM_H_
#define SEQ2PSSM_H_
#include "shared.h"
#include "probs.h"
/* SEQ2PSSM_H_ */
/* FUNCTION PROTOTYPES BEGIN ( by funcprototypes.pl ) */
void load_error_model(float *error_loopup, const char *filename);
Probs *alloc_probs(int len, int alphsize);
void free_probs(Probs *P);
void normalize_probs(Probs *P, float pseudocount);
PSSM string_to_pssm(ubyte_t *seq, int len, int alphsize, float match, float mismatch,
float wcscore);
Probs *alloc_markov_chain(int order, int alphsize);
int sequence_to_pssm(bwa_seq_t *s, int alphsize, float psnp, Probs *mc, float sc_match,
float sc_mismatch, float sc_wild, int scoretype, float *qualprobs,const gap_opt_t *opt);
float *solexa_ascii_quality_scores();
float *phred_ascii_quality_scores(int base);
float *read_ascii_quality_scores(char *filename);
Probs *qual_to_probs(ubyte_t *seq, ubyte_t *qual, int len, int alphsize,
float *qualprobs);
void snp_probs(Probs *P, float *q, float psnp);
PSSM prob_to_pssm(Probs *P, Probs *mc);
int highest_scores(PSSM mat);
int mismatch_threshold(PSSM mat, int M);
Probs *markov_chain(bwtint_t *counts, int alphlen);
void set_thresholds(PSSM mat, const gap_opt_t *opt);
/* FUNCTION PROTOTYPES END */
#endif