-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfonction_gene_seq.h
68 lines (42 loc) · 1.5 KB
/
fonction_gene_seq.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef FONCTIONGENESEQ
#define FONCTIONGENESEQ
typedef struct ListeSeq
{
int _pos;
int _nbSubst;
char* _Motif_final;
struct ListeSeq* next;
}ListeSeq;
typedef ListeSeq* PtrListeSeq;
typedef struct Motifs{
char* _motif;
struct ListeSeq* _listeSeq;
}Motifs;
typedef Motifs* PtrMotifs;
typedef struct InfoSubst
{
char* _motif;
int _nbSub;
struct InfoSubst* next;
}InfoSubst;
//******************************
char genBases(); //Génération aléatoire de bases
//***********************
void LireChaine(char chaine[], int size); //Permet de lire une chaine de caractère rentrée par l'utilisateur
//***********************
int LireNombreEntier(); //Permet de lire un nombre entier
//***********************
int chanceMotif(); //Pourcentage d'apparition du motif dans la séquence
//***********************
int chanceSubst(); //Pourcentage de chance de substitution
//***********************
char* substMotif(char* motif, int nomSubs, FILE* Seqfile, float** PSSM); //Substitution dans le motif
//***********************
char* genSeq(int tailleSeq, int tailleMotif, int subst, char* motif, FILE* Seqfile, float** PSSM, int* nbMotifs); //Génération de la séquence et des fichiers
//***********************
void printFasta(char** tabSeq ,FILE* Fastafile, int i);
//***********************
void calculPSSM(float** PSSM, char nuc, int i);
//***********************
void freqPSSM(float** PSSM, int nbMotif, int tailleMotif); // Converti la PSSM en fréquence
#endif /* end of include guard: FONCTIONGENESEQ */