Mercurial > repos > xuebing > sharplabtool
diff tools/mytools/splicesitescore/splicemodels/hashseq.m @ 0:9071e359b9a3
Uploaded
author | xuebing |
---|---|
date | Fri, 09 Mar 2012 19:37:19 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/mytools/splicesitescore/splicemodels/hashseq.m Fri Mar 09 19:37:19 2012 -0500 @@ -0,0 +1,8 @@ +function [sum ] = hashseq(seq) + sum = 0; + len = length(seq); + four = [1;4;16;64;256;1024;4096]; + for i = 1:len + sum = sum + str2num(seq(i)) * four(len - i +1) ; + end + \ No newline at end of file