File: alphabet.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 (43 lines) | stat: -rw-r--r-- 1,400 bytes parent folder | download | duplicates (7)
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
/* (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. */

/* alphabet.h: Definitions for the nucleotide and amino acid alphabets in */
/*             aabet.h and ntbet.h */
/* Modified by: Bill Alford */
/* Change log information is at the end of the file. */

#ifndef _ALPHABET_
#define _ALPHABET_

/*
	For better performance on most platforms, ALPHASIZE_MAX and ALPHAVAL_MAX
	should have values of 2**N and (2**N - 1), respectively, for some N.
	Choose an N that is just large enough for the job, to avoid needlessly
	thrashing in small CPU caches.
*/
#define ALPHASIZE_MAX	128	/* Max. no. of letters permitted in an alphabet */
#define ALPHAVAL_MAX	127	/* Max. numerical value permitted for a letter */


/* Ambiguous residues are defined using this structure */
typedef struct degen {
		char	residue;	/* ASCII letter for this residue */
		int		ndegen;		/* no. of residues this ASCII letter matches */
		char	*list;		/* null-terminated list of matching letters */
	} Degen, DegenPtr;

	/* Use DEGENLIST macro to more easily manage data initialization */
#define DEGENLIST(Chr, List)	{ Chr, (sizeof(List)-1), (List) }

#endif /* !_ALPHABET_ */




/* Change log information follows. */
/*
 * Revision 2.2010  1995/07/28  23:47:14  billa
 * 
 */