Team:Harvard/ZF Binding Site Finder
From 2011.igem.org
(Difference between revisions)
Line 184: | Line 184: | ||
var ntpCheck = /[GCTAN]{9}/; | var ntpCheck = /[GCTAN]{9}/; | ||
- | + | if (!(bottomzf.match(ntpCheck))|| | |
- | if (!(bottomzf.match(ntpCheck) | + | !(topzf.match(ntpCheck))|| |
- | topzf.match(ntpCheck) | + | !(bottomzf.length=="9")|| |
- | (bottomzf.length=="9") | + | !(topzf.length=="9"))){ |
- | (topzf.length=="9"))){ | + | |
alert("You must enter a valid sequence of nine nucleotides containing G,T,C,A, or N."); | alert("You must enter a valid sequence of nine nucleotides containing G,T,C,A, or N."); | ||
return; | return; | ||
} | } | ||
- | |||
//transform bottom zf to reverse complement | //transform bottom zf to reverse complement |
Revision as of 14:44, 9 July 2011