Team:UT-Tokyo/test.html

From 2013.igem.org

(Difference between revisions)
 
(29 intermediate revisions not shown)
Line 18: Line 18:
{{:Team:UT-Tokyo/Template/Header1|subpagename=TEAM}}
{{:Team:UT-Tokyo/Template/Header1|subpagename=TEAM}}
<html>
<html>
-
<div id="contents"><script type="text/javascript">
+
<div id="contents">
 +
<h2>Automatic RNA silencing primer designer</h2>
 +
 
 +
 
 +
<script type="text/javascript">
function getReverseSeq(str) {
function getReverseSeq(str) {
//先頭24塩基を抽出してアンチセンスを返す
//先頭24塩基を抽出してアンチセンスを返す
Line 58: Line 62:
function getRP(str) {
function getRP(str) {
-
var anti = getReverseSeq(str);
+
var reverse = str.substring(7, 24);
-
var reverse = str.substring(7, 24) + getReverseSeq("tactagag")
+
-
+ getReverseSeq("acctctggcggtgataatggttgc");
+
return reverse;
return reverse;
-
}
 
-
 
-
function getForwardOnly(str) {
 
-
var anti = getReverseSeq(str);
 
-
anti = "ggatctagag" + anti + "tttctgttgggccattgcattgcc";
 
-
return anti;
 
}
}
Line 84: Line 80:
function onClick() {
function onClick() {
document.getElementById('sequence').innerHTML = "5'- "
document.getElementById('sequence').innerHTML = "5'- "
-
+ document.gen.argtext.value + " -3' (CDS)";
+
+ document.gen.argtext.value + " -3'";
var reverse = getReverse(document.gen.argtext.value);
var reverse = getReverse(document.gen.argtext.value);
-
while (reverse.length < 34) {
+
var forwardonly = "<p style=\"display:inline;color: #3CB371;\">ggatctagag</p>"
-
reverse = "-" + reverse;
+
+ getReverseSeq(document.gen.argtext.value)
-
}
+
+ "<p style=\"display:inline;color: #1E90FF;\">tttctgttgggccattgcattgcc</p>";
-
document.getElementById('reverse').innerHTML = "3'- " + reverse
+
-
+ " -5' (CDS)";
+
-
var forwardonly = getForwardOnly(document.gen.argtext.value);
+
-
var interaction = "--------------||||||||||||||||||||||||";
+
-
while (forwardonly.length - reverse.length < 24) {
+
-
forwardonly = "-" + forwardonly;
+
-
interaction = "-" + interaction;
+
-
}
+
-
document.getElementById('interaction').innerHTML = interaction;
+
document.getElementById('generated').innerHTML = "5'- "
document.getElementById('generated').innerHTML = "5'- "
-
+ forwardonly + " -3' (Forward Primer for BioBrick)";
+
+ forwardonly + " -3'";
 +
}
-
var fp = "---------------------------------------"
+
function onClick2() {
-
+ getFP(document.gen.argtext.value);
+
document.getElementById('sequence2').innerHTML = "5'- "
-
var int2 = "-------------------------------------------||||||||||";
+
+ document.gen2.argtext2.value + " -3'";
-
var rp = getRP(document.gen.argtext.value);
+
 
-
document.getElementById('fp').innerHTML = "5'- " + fp
+
var fp = getFP(document.gen2.argtext2.value);
-
+ " -3' (Forward Primer for Inverse PCR)";
+
var rp = getRP(document.gen2.argtext2.value)
-
document.getElementById('int2').innerHTML = int2;
+
+ getReverseSeq("tactagag")
-
document.getElementById('rp').innerHTML = "5'- " + rp
+
+ getReverseSeq("acctctggcggtgataatggttgc");
-
+ " -3' (Reverse Primer for Inverse PCR)";
+
document.getElementById('fp').innerHTML = "5'- " + fp + " -3'";
-
document.getElementById('rp_rev').innerHTML = "3'- "
+
document.getElementById('rp').innerHTML = "5'- " + rp + " -3'";
-
+ getReverse(rp) + " -5' (Reverse Primer for Inverse PCR)";
+
}
 +
function submitStop(e) {
 +
if (!e)
 +
var e = window.event;
 +
 
 +
if (e.keyCode == 13)
 +
return false;
}
}
</script>
</script>
<form name="gen">
<form name="gen">
<input type="text" name="argtext"
<input type="text" name="argtext"
-
value="ATGCATGCATGCATGCATGCATGCATGCATGC" /> <input type="button"
+
value="ATGCATGCATGCATGCATGCATGCATGCATGC"
-
value="generate" onclick="onClick()" />
+
onKeyPress="onClick();return submitStop(event);" /> <input
 +
type="button" value="generate" onclick="onClick()" />
</form>
</form>
-
<div style="font-family: monospace;">
+
 
 +
<div>
 +
<h3>CDS</h3>
<p id="sequence"></p>
<p id="sequence"></p>
-
<p id="reverse" style="margin: 0px;"></p>
+
<h3>Forward Primer for BioBrick</h3>
-
<p id="interaction" style="margin: 0px;"></p>
+
<p id="generated"></p>
-
<p id="generated" style="margin: 0px;"></p>
+
</div>
-
<p></p>
+
 
-
<p id="fp" style="margin: 0px;"></p>
+
<form name="gen2">
-
<p id="int2" style="margin: 0px;"></p>
+
<input type="text" name="argtext2"
-
<p id="rp_rev" style="margin: 0px;"></p>
+
value="ATGCATGCATGCATGCATGCATGCATGCATGC"
 +
onKeyPress="onClick2();return submitStop(event);" /> <input
 +
type="button" value="generate" onclick="onClick2()" />
 +
</form>
 +
 
 +
<div>
 +
<h3>CDS</h3>
 +
<p id="sequence2"></p>
 +
<h3>Forward Primer for Inverse PCR</h3>
 +
<p id="fp"></p>
 +
<h3>Reverse Primer for Inverse PCR</h3>
<p id="rp"></p>
<p id="rp"></p>
</div>
</div>
Line 138: Line 145:
</div>
</div>
<p>
<p>
-
 
</html>
</html>

Latest revision as of 03:34, 28 September 2013

           TEAM
       

Automatic RNA silencing primer designer

CDS

Forward Primer for BioBrick

CDS

Forward Primer for Inverse PCR

Reverse Primer for Inverse PCR