2016-08-11 70 views
-3

query ='GATTACA';!基因組='TGATTACAGATTACC';! ! nummatches = 0 ;! ! %在每一個可能的偏移量! for offset = 1:length(genome)-length(query)+1! !%所有的字符是否匹配? !if(基因組(偏移:偏移+長度(查詢)-1)==查詢)! ! !disp(['offset at offset',num2str(offset)])! ! !nummatches = nummatches + 1;! !其他! ! !%取消註釋以查看每個不匹配! ! !%disp(['偏移量不匹配',num2str(偏移量)])! !結束!結束! ! disp(['Found',num2str(nummatches),''匹配',查詢,'長度基因組',num2str(length(genome))])! ! ! disp(['Expected number of occurrences','num2str((length(genome)-length(query)+1)/(4^length(query)))])!誰能告訴我這是什麼類型的語言?

+0

我想這是matlab。 – Patrick

回答

0

MATLAB amigo,disp和'%'的註釋和num2str函數都是MATLAB tid位。

相關問題