Transfer Button Guide

How To: make a button on a HTML page, to easily transfer data from a weight or blast matrix to the paste field of the Seq2Logo webserver:

<form action='http://services.healthtech.dtu.dk/services/Seq2Logo-2.0/1-Submission.php' method='POST'>
 <input type='hidden' name='INPASTE' value='
SEQUENCE-A
SEQUENCE-C
SEQUENCE-D
SEQUENCE-E
SEQUENCE-F
 '>
 <input type='submit' value='Visualize file using Seq2Logo'>
</form>

If you are using python to create the webpage and have created a weight matrix file, then you can use following code example:

print "<form action='http://services.healthtech.dtu.dk/services/Seq2Logo-2.0/1-Submission.php' method='POST'>"
print "<input type='hidden' name='INPASTE' value='"
f = open("<weightmatrix_filename>")
for s in f:
  print s.strip("\n")
f.close
print " '/>"
print "<input type='submit' value='Visualize file using Seq2Logo' />"
print "</form>"

It is also possible to send following settings, if you want to change the standard settings of Seq2Logo for your users:

Settings can also be transferred through the GET method.
Eg. http://services.healthtech.dtu.dk/services/Seq2Logo-2.0/1-Submission.php?logotype=5


Go back.