Team:Harvard/ZF Binding Site Finder

From 2011.igem.org

(Difference between revisions)
Line 103: Line 103:
}
}
-
/*
 
-
$.validator.addMethod(
 
-
        "ntpCheck",
 
-
        function(value, element, regexp) {
 
-
            var re = new RegExp(regexp);
 
-
            return this.optional(element) || re.test(value);
 
-
        },
 
-
        "You must enter a valid sequence of nine nucleotides containing G,T,C,A, or N."
 
-
);
 
-
*/
 
// findCustom function
// findCustom function
Line 135: Line 125:
return;
return;
}
}
-
 
-
 
-
$("#bottominput #topinput").rules("add", { regex: "[GCTAN]{9}" })
 
-
 
*/
*/
Line 147: Line 133:
alert(topzf);
alert(topzf);
-
 
-
/*
 
//start building regular expression from ZF fingers
//start building regular expression from ZF fingers
var siteExp = "(" + bottomzf.replace(/n/gi,"\\w");
var siteExp = "(" + bottomzf.replace(/n/gi,"\\w");
//add in x NTPs between first and second finger
//add in x NTPs between first and second finger
-
var nucgap = document.getElementById("gap").value;
+
var nucgap = $("#gap").val();
for(i=0;i<nucgap;i++){
for(i=0;i<nucgap;i++){
siteExp = siteExp + "\\w";
siteExp = siteExp + "\\w";
Line 168: Line 152:
if(testseq.search(array1) == -1)
if(testseq.search(array1) == -1)
{
{
-
document.getElementById("results").innerHTML = "No results found.";
+
$("#results").html("No results found.");
//if results are found, build table to display results
//if results are found, build table to display results
} else {
} else {
Line 193: Line 177:
table = table + "</table><br /><br />"
table = table + "</table><br /><br />"
-
document.getElementById("results").innerHTML = table;
+
$("#results").html(table);
}
}
*/
*/

Revision as of 03:51, 9 July 2011

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 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: