I have to paste my sequences into the box in http://www.expasy.org/tools/protscale.html and I have to save the result page. So I wrote this perl code which is always retrieve the same page when I change the number in the form_number. How can I fix it? When checking the site the input box is the third form, first one is on right top. Also i didn't write in this code but I have to select one of the preferences below the input box, with dots near them. Also I have to check yes for "Do you want to normalize the scale from 0 to 1?" at the bottom. Thnx in advance
use strict;
use WWW::Mechanize;
my $url = "http://us.expasy.org/tools/protscale.ht…
my $sequence = "GSHMLEDPVVLQRRDWENPGVTQLNRLAA";
my $outfile = "out.htm";
my $mech = WWW::Mechanize->new();
$mech->get($url);
$mech->form_number(3);
$mech->field(query => "$sequence");
$mech->click();
my $output_page = $mech->content();
open(OUTFILE, ">$outfile");
print OUTFILE "$output_page";
close(OUTFILE);
This code returns as in the page I choose UniProtKB from the drop down menu on the top right and then directly go to the end of the page, inputing nothing to anywhere, and press submit
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.