Team:Harvard/ZF Binding Site Finder
From 2011.igem.org
(Difference between revisions)
Line 103: | Line 103: | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
// findCustom function | // findCustom function | ||
Line 135: | Line 125: | ||
return; | return; | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
*/ | */ | ||
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 = | + | 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) | ||
{ | { | ||
- | + | $("#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 />" | ||
- | + | $("#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">