File: align.h

package info (click to toggle)
squizz 0.99c%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,760 kB
  • ctags: 8,355
  • sloc: sh: 4,789; ansic: 2,640; lex: 1,999; yacc: 1,650; makefile: 119
file content (39 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (3)
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
/* align.h - Generic alignment functions */

#ifndef __ALIGN_H_
#define __ALIGN_H_

#include <stdio.h>

#include "sequence.h"


/* Types definitions */

typedef struct {
  sequence_t **cur;
  sequence_t **seq;
  char *_tmp;
} align_t;

typedef enum {
  ALIFMT_UNKWN, ALIFMT_CLUSTAL, ALIFMT_PHYLIPI, ALIFMT_PHYLIPS,
  ALIFMT_FASTA, ALIFMT_MEGA, ALIFMT_MSF, ALIFMT_NEXUSI, ALIFMT_STOCK,
  ALIFMT_NONE } alifmt_t;


/* Functions prototypes */

align_t *align_new(void);
void align_free(align_t *);

int align_check(FILE *, alifmt_t);
align_t *align_parse(FILE *, alifmt_t);

int align_strict(align_t *);
void align_print(FILE *, align_t *, alifmt_t);

alifmt_t align_format(FILE *);

#endif /* __ALIGN_H_ */