comparison splicesitescore/splicemodels/hashseq.m @ 15:0e221dbd17b2 default tip

Uploaded
author xuebing
date Sat, 31 Mar 2012 08:53:06 -0400
parents
children
comparison
equal deleted inserted replaced
14:d1f0f85ee5bc 15:0e221dbd17b2
1 function [sum ] = hashseq(seq)
2 sum = 0;
3 len = length(seq);
4 four = [1;4;16;64;256;1024;4096];
5 for i = 1:len
6 sum = sum + str2num(seq(i)) * four(len - i +1) ;
7 end
8