File: pattern.h

package info (click to toggle)
blimps 3.9%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, bullseye, buster
  • size: 6,812 kB
  • sloc: ansic: 43,271; csh: 553; perl: 116; makefile: 99; cs: 27; cobol: 23
file content (54 lines) | stat: -rw-r--r-- 1,450 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* (C) Copyright 1993, Fred Hutchinson Cancer Research Center */
/* Use, modification or distribution of these programs is subject to */
/* the terms of the non-commercial licensing agreement in license.h. */

/* pattern.h:  */
/* Written by: Bill Alford */
/* Change log information is at the end of the file. */

#ifndef PATTERN_H_
#define PATTERN_H_

/*
 * Exported variables and data structures
 */

extern Boolean UsePatterns;  /* initially FALSE */

typedef struct pattern_residue_struct PatternResidue;
struct pattern_residue_struct {
  int offset;			/* the offset from the current position,
				   the current position is the previous 
				   PatternResidue or the starting location */
  int num_residues;		/* the number of residues */
  char *residues;		/* the residues */
  PatternResidue *next; /* the next pattern res. in the list */
};


struct pattern_struct {
  int beg_offset;		/* the offset from here to the beginning of
				   the sequence */
  int num_residues;		/* the number of sub residues */
  PatternResidue *pat;		/* the list of residues in the pattern */
};
typedef struct pattern_struct Pattern;




extern void scan_patterns();

extern Boolean pattern_matches();

extern int residue_compare_function();

#endif /*  PATTERN_H_ */

/* Change log information follows. */
/* $Log: pattern.h,v $
 * Revision 2.2010  1995/07/28  23:47:14  billa
 * Added new convert method and pattern matching and minor updates merged.
 *
 */