home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 1
/
crawlyvol1.bin
/
apps
/
science
/
clustalv
/
gcgcheck.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-11
|
315b
|
17 lines
#include <ctype.h> /* because of toupper() */
int SeqGCGCheckSum(char *, int);
int SeqGCGCheckSum(char *seq, int len)
{
int i;
long check;
for( i=0, check=0; i< len; i++,seq++)
check += ((i % 57)+1) * toupper(*seq);
return(check % 10000);
}