view splicesitescore/splicemodels/hashseq.m @ 2:2e23b836c049

Deleted selected files
author xuebing
date Sat, 31 Mar 2012 21:52:38 -0400
parents 22486256ed0d
children
line wrap: on
line source

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