diff splicesite/splicesitescore/splicemodels/hashseq.m~ @ 4:cf2c4930dc9c

Uploaded
author xuebing
date Sun, 01 Apr 2012 01:48:03 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/splicesite/splicesitescore/splicemodels/hashseq.m~	Sun Apr 01 01:48:03 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 + seq(i) * four(len - i - 1) ;
+    end
+    
\ No newline at end of file