-
Notifications
You must be signed in to change notification settings - Fork 3
/
gene.h
executable file
·56 lines (45 loc) · 2.38 KB
/
gene.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
/*******************************************************************************
PRODIGAL (PROkaryotic DynamIc Programming Genefinding ALgorithm)
Copyright (C) 2007-2016 University of Tennessee / UT-Battelle
Code Author: Doug Hyatt
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
#ifndef _GENE_H
#define _GENE_H
#include <stdio.h>
#include "training.h"
#include "node.h"
#include "dprog.h"
#define MAX_GENES 500000
struct _gene {
int begin; /* Left end of the gene */
int end; /* Right end of the gene */
int start_ndx; /* Index to the start node in the nodes file */
int stop_ndx; /* Index to the stop node in the nodes file */
char gene_data[500]; /* String containing gene information */
char score_data[500]; /* String containing scoring information */
};
int add_genes(struct _gene *, struct _node *, int);
void record_gene_data(struct _gene *, int, struct _node *, struct _training *,
int);
void tweak_final_starts(struct _gene *, int, struct _node *, int, struct
_training *);
void print_genes(FILE *, struct _gene *, int, struct _node *, int, int, int,
int, char *, struct _training *, char *, char *, char *);
void write_translations(FILE *, struct _gene *, int, struct _node *,
unsigned char *, unsigned char *, unsigned char *, int,
struct _training *, int, char *);
void write_nucleotide_seqs(FILE *, struct _gene *, int, struct _node *,
unsigned char *, unsigned char *, unsigned char *,
int, struct _training *, int, char *);
double calculate_confidence(double, double);
#endif