Team:Harvard/ZF Binding Site Finder

From 2011.igem.org

(Difference between revisions)
Line 79: Line 79:
//get DNA sequence
//get DNA sequence
-
var testseq = $("#sequence").val();
+
var testseq = $("#sequence").val().toUpperCase();
-
//to uppercase
+
-
testseq = testseq.toUpperCase();
+
//get zinc finger arrays for searching
//get zinc finger arrays for searching
-
var bottomzf = $("#bottom").val();
+
var bottomzf = $("#bottom").val().toUpperCase();
-
var topzf = $("#top").val();
+
var topzf = $("#top").val().toUpperCase();
-
//to uppercase
+
-
bottomzf = bottomzf.toUpperCase();
+
-
topzf = topzf.toUpperCase();
+
-
 
+
-
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;
+
-
}
+
-
+
-
//transform bottom zf to reverse complement
+
-
bottomzf = reverseComplement(bottomzf);
+
alert(bottomzf);
alert(bottomzf);

Revision as of 18:54, 8 July 2011

iGEM 2011 Zinc Finger Binding Site Finder

iGEM 2011 Zinc Finger Binding Site Finder

Justin Chew

Bottom Zinc Finger Array:

Top Zinc Finger Array:

Nucleotide Gap: