Team:Harvard/ZF Binding Site Finder
From 2011.igem.org
(Difference between revisions)
Line 116: | Line 116: | ||
bottomzf = reverseComplement(bottomzf); | bottomzf = reverseComplement(bottomzf); | ||
+ | var ntpCheck = /[GCTAN]{9}/; | ||
+ | if (!(bottomzf.match(ntpCheck)&& | ||
+ | topzf.match(ntpCheck)&& | ||
+ | (bottomzf.length=="9")&& | ||
+ | (topzf.length=="9"))){ | ||
+ | alert("You must enter a valid sequence of nine nucleotides containing G,T,C,A, or N."); | ||
+ | return; | ||
+ | } | ||
alert(bottomzf); | alert(bottomzf); |
Revision as of 21:01, 8 July 2011