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

Uploaded
author xuebing
date Sat, 31 Mar 2012 08:53:06 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/splicesitescore/splicemodels/hashseq.m	Sat Mar 31 08:53:06 2012 -0400
@@ -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