Sponsored Content
Top Forums Shell Programming and Scripting Using cURL to submit a post form Post 302676429 by Corona688 on Tuesday 24th of July 2012 02:32:16 PM
Old 07-24-2012
Take a look at the HTML of the resulting page. Getting the table is just a similar form post to DnldTraitMeas.php with an id1 value which is the species number you want.

Considering the species list alone is several megabytes in size, it makes sense to avoid downloading from that main page when it can be avoided.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

maintaining form post session using curl

Hello, I have searched for a good part of the day, but cannot seem to find an answer to this. I hope this is an appropriate forum for my question. I am wanting to download a blog web page using a script. It requires username and password login. I have tried the following (an example) to no... (1 Reply)
Discussion started by: Allasso
1 Replies

2. Shell Programming and Scripting

PHP Help with Form Submit

Hi, I have a custom HTML form that has a couple radio buttons and a text field that requires a number. I'm not a php programmer and could use some help with putting together php code to calculate a total based on the radio button selection and the text field number. ... (3 Replies)
Discussion started by: nck
3 Replies

3. Shell Programming and Scripting

using wget to submit a form on linksys router

I'm trying to use wget to submit a form. I have tried to dig out what is actually being "posted" and where, using tamperdata (see below). http://ubuntuforums.org/attachment.php?attachmentid=109123&d=1239224127 Here is my wget command: wget --http-user=xyz --http-password=xyz... (1 Reply)
Discussion started by: mike909
1 Replies

4. Ubuntu

Submit using curl

I'm trying to upload a file to a page using curl and after uploading that file i want to store the redirecting page so i can download the results. I'm using the command: curl "http://apps.gdgps.net/kag_upload.php?kag_type=static&kag_frequency=dual&kag_latency=accurate&... (8 Replies)
Discussion started by: limadario
8 Replies

5. Shell Programming and Scripting

Can't submit a form.

hello my script is submitting POST-data to a site (its not my first script, i've done these before many times (include parsing scripts) but this one is tough) so the problem is i'm submitting a form with firefox and in firebug i see WHAT exactly i'm submitting then when i do EXACTLY the... (28 Replies)
Discussion started by: tip78
28 Replies

6. Shell Programming and Scripting

Curl Script - Post a file (multipart/form-data)

Hi All, I am trying to post an xml file (utf-16 encoded) using curl to a REST service. The REST service is expecting 'multipart/form-data' content type. curl -k -i -H "Content-Type=multipart/form-data" -F "filename=@file.xml;type=text/xml" -X POST -u <username>:<password> <endPointURL> ... (0 Replies)
Discussion started by: Anooja G
0 Replies

7. Shell Programming and Scripting

Curl to hit the submit button

Hello, I am looking to hit a URL using curl and click on submit button so that I can get the results. The below is the code <input name="tos_accepted" id="tos_accepted" class="button" type="submit" value="Yes, I Agree"/> <input name="tos_discarded" id="tos_discarded"... (1 Reply)
Discussion started by: Kochappa
1 Replies

8. Shell Programming and Scripting

Exec submit form in bash script

Hi All, I'm new in forum. Many congratulations to everyone for all work. I'm not an expert in bash script I've a problem with a sh file. The sh file run every t minuts and it read data from txt file and then compile form. Finally, the user, from the web browser click on send. The script... (0 Replies)
Discussion started by: Herbert
0 Replies

9. Web Development

Curl - post form issue

I'm having an issue with curl post form, I dont' understand what I'm mising. I would like to send a post command login/password to a form, quite simple in the paper. URL : http: // <myebsite> / login Here the form source code : <form action="/login_check" method="post"> <input... (3 Replies)
Discussion started by: Fred13
3 Replies

10. Web Development

CURL - Post Form Isssue ( sequel )

Hi, I write a new thread to discuss about my closed topic with new information ( /280990-curl-post-form-issue.html ) The previous post was closed because of missing informations, I didn't have access yet to server logs. ----------------------------------------------------------------------... (4 Replies)
Discussion started by: Fred13
4 Replies
Bio::CodonUsage::Table(3pm)				User Contributed Perl Documentation			       Bio::CodonUsage::Table(3pm)

NAME
Bio::CodonUsage::Table - for access to the Codon usage Database at http://www.kazusa.or.jp/codon. SYNOPSIS
use Bio::CodonUsage::Table; use Bio::DB::CUTG; use Bio::CodonUsage::IO; use Bio::Tools::SeqStats; # Get a codon usage table from web database my $cdtable = Bio::DB::CUTG->new(-sp => 'Mus musculus', -gc => 1); # Or from local file my $io = Bio::CodonUsage::IO->new(-file => "file"); my $cdtable = $io->next_data(); # Or create your own from a Bio::PrimarySeq compliant object, # $codonstats is a ref to a hash of codon name /count key-value pairs my $codonstats = Bio::Tools::SeqStats->count_codons($Seq_objct); # '-data' must be specified, '-species' and 'genetic_code' are optional my $CUT = Bio::CodonUsage::Table->new(-data => $codonstats, -species => 'Hsapiens_kinase'); print "leu frequency is ", $cdtable->aa_frequency('LEU'), " "; print "freq of ATG is ", $cdtable->codon_rel_frequency('ttc'), " "; print "abs freq of ATG is ", $cdtable->codon_abs_frequency('ATG'), " "; print "number of ATG codons is ", $cdtable->codon_count('ATG'), " "; print "GC content at position 1 is ", $cdtable->get_coding_gc('1'), " "; print "total CDSs for Mus musculus is ", $cdtable->cds_count(), " "; DESCRIPTION
This class provides methods for accessing codon usage table data. All of the methods at present are simple look-ups of the table or are derived from simple calculations from the table. Future methods could include measuring the codon usage of a sequence , for example, or provide methods for examining codon usage in alignments. SEE ALSO
Bio::Tools::CodonTable, Bio::WebAgent, Bio::CodonUsage::IO, Bio::DB::CUTG FEEDBACK
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated. bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists Support Please direct usage questions or support issues to the mailing list: bioperl-l@bioperl.org rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web: https://redmine.open-bio.org/projects/bioperl/ AUTHORS
Richard Adams, Richard.Adams@ed.ac.uk APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ new Title : new Usage : my $cut = Bio::CodonUsage::Table->new(-data => $cut_hash_ref, -species => 'H.sapiens_kinase' -genetic_code =>1); Returns : a reference to a new Bio::CodonUsage::Table object Args : none or a reference to a hash of codon counts. This constructor is designed to be compatible with the output of Bio::Tools::SeqUtils::count_codons() Species and genetic code parameters can be entered here or via the species() and genetic_code() methods separately. all_aa_frequencies Title : all_aa_frequencies Usage : my $freq = $cdtable->all_aa_frequencies(); Returns : a reference to a hash where each key is an amino acid and each value is its frequency in all proteins in that species. Args : none codon_abs_frequency Title : codon_abs_frequency Usage : my $freq = $cdtable->codon_abs_frequency('CTG'); Purpose : To return the frequency of that codon as a percentage of all codons in the organism. Returns : a percentage frequency Args : a non-ambiguous codon string codon_rel_frequency Title : codon_rel_frequency Usage : my $freq = $cdtable->codon_rel_frequency('CTG'); Purpose : To return the frequency of that codon as a percentage of codons coding for the same amino acid. E.g., ATG and TGG would return 100 as those codons are unique. Returns : a percentage frequency Args : a non-ambiguous codon string probable_codons Title : probable_codons Usage : my $prob_codons = $cd_table->probable_codons(10); Purpose : to obtain a list of codons for the amino acid above a given threshold % relative frequency Returns : A reference to a hash where keys are 1 letter amino acid codes and values are references to arrays of codons whose frequency is above the threshold. Arguments: a minimum threshold frequency most_common_codons Title : most_common_codons Usage : my $common_codons = $cd_table->most_common_codons(); Purpose : To obtain the most common codon for a given amino acid Returns : A reference to a hash where keys are 1 letter amino acid codes and the values are the single most common codons for those amino acids Arguments: None codon_count Title : codon_count Usage : my $count = $cdtable->codon_count('CTG'); Purpose : To obtain the absolute number of the codons in the organism. Returns : an integer Args : a non-ambiguous codon string get_coding_gc Title : get_coding_gc Usage : my $count = $cdtable->get_coding_gc(1); Purpose : To return the percentage GC composition for the organism at codon positions 1,2 or 3, or an average for all coding sequence ('all'). Returns : a number (%-age GC content) or 0 if these fields are undefined Args : 1,2,3 or 'all'. set_coding_gc Title : set_coding_gc Usage : my $count = $cdtable->set_coding_gc(-1=>55.78); Purpose : To set the percentage GC composition for the organism at codon positions 1,2 or 3, or an average for all coding sequence ('all'). Returns : void Args : a hash where the key must be 1,2,3 or 'all' and the value the %age GC at that codon position.. species Title : species Usage : my $sp = $cut->species(); Purpose : Get/setter for species name of codon table Returns : Void or species name string Args : None or species name string genetic_code Title : genetic_code Usage : my $sp = $cut->genetic_code(); Purpose : Get/setter for genetic_code name of codon table Returns : Void or genetic_code id, 1 by default Args : None or genetic_code id, 1 by default if invalid argument. cds_count Title : cds_count Usage : my $count = $cdtable->cds_count(); Purpose : To retrieve the total number of CDSs used to generate the Codon Table for that organism. Returns : an integer Args : none (if retrieving the value) or an integer( if setting ). aa_frequency Title : aa_frequency Usage : my $freq = $cdtable->aa_frequency('Leu'); Purpose : To retrieve the frequency of an amino acid in the organism Returns : a percentage Args : a 1 letter or 3 letter string representing the amino acid common_codon Title : common_codon Usage : my $freq = $cdtable->common_codon('Leu'); Purpose : To retrieve the frequency of the most common codon of that aa Returns : a percentage Args : a 1 letter or 3 letter string representing the amino acid rare_codon Title : rare_codon Usage : my $freq = $cdtable->rare_codon('Leu'); Purpose : To retrieve the frequency of the least common codon of that aa Returns : a percentage Args : a 1 letter or 3 letter string representing the amino acid perl v5.14.2 2012-03-02 Bio::CodonUsage::Table(3pm)
All times are GMT -4. The time now is 04:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy