SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
Seeking advice for Amazon Web Services usage Lluc Bioinformatics 2 01-19-2019 09:59 AM
Web Services Blastn Problems Andrew73 Bioinformatics 0 03-05-2013 01:17 PM
GeneProf Web Services florian Bioinformatics 0 11-29-2012 07:28 AM
Amazon Web Services Training for Science & Engineering - more dates/locations Pavolga Events / Conferences 0 10-05-2010 11:04 AM
Fundamentals: Amazon Web Services for Science & Engineering Pavolga Events / Conferences 0 05-05-2010 07:17 AM

Reply
 
Thread Tools
Old 04-29-2014, 10:41 PM   #1
dokadya
Junior Member
 
Location: bangalore

Join Date: Mar 2014
Posts: 5
Exclamation cravat.us web services, unable to understand what to do

I am following this website to get help regarding connection to cravat.us

with this website I have to connect so that I can submit job without opening my browser. in this website I am looking for web services section.

http://www.cravat.us/help.jsp?chapte..._cite&article=





See the Image to understand the instructions :


https://drive.google.com/file/d/0B6D...it?usp=sharing


They said create JSON object and all, I have create JSON object:

{
"analysis": "CHASM",
"analysistype" : "driver",
"chasmclassifier" : "Head and Neck",
"email" : "dokadya@gmail.com"
"functionalannotation" : "on",
"hg18" : "off",
"inputfile" : "/media/storage1/SAMPLE_NAME_1.cravat",
"mupitinput" : "on",
"tsvreport" : "on"
}



How can i upload file ? Can I use just path to upload ?

What kind of script I have to write ? HTML form? PERL ?



See the link for my perl file:

https://drive.google.com/file/d/0B6D...it?usp=sharing



Like this I have created file but its not working. Please guide me.



Waiting for positive reply.

Thank You.

Chetan
dokadya is offline   Reply With Quote
Old 04-29-2014, 10:42 PM   #2
dokadya
Junior Member
 
Location: bangalore

Join Date: Mar 2014
Posts: 5
Default

this is same question as explained in biostars.org
https://www.biostars.org/p/99365/
dokadya is offline   Reply With Quote
Old 05-01-2014, 07:09 AM   #3
slcrick
Junior Member
 
Location: Washington, DC

Join Date: May 2014
Posts: 1
Default

Hi, this is Rick from In Silico Solutions, which maintains CRAVAT. Please see the following examples in Perl:

use LWP;
use URI;

my $browser = LWP::UserAgent->new();

#
# Job submission example, when the mutations are in a string
#
print "\n###### Submitting through GET #####\n";
my $urlSubmitGet = URI->new("http://www.cravat.us/rest/service/submit");
$urlSubmitGet->query_form(
'analyses' => 'CHASM',
'analysistype' => 'driver',
'chasmclassifier' => 'Ovary',
'email' => 'testUser@testemailservice.com',
'functionalannotation' => 'off',
'hg18' => 'off',
'mutations' => 'TR1 chr22 30421786 + A T',
'mupitinput' => 'off',
'tsvreport' => 'off');
my $responseSubmitGet = $browser->get($urlSubmitGet);
print $responseSubmitGet->content, "\n";

#
# Job submission example, when the mutations are in a file
#
print "\n###### Submitting through POST #####\n";
my $urlSubmitPost = "http://www.cravat.us/rest/service/submit";
my $responseSubmitPost = $browser->post($urlSubmitPost,
Content_Type => 'form-data',
Content => [
'analyses' => 'CHASM',
'analysistype' => 'driver',
'chasmclassifier' => 'Ovary',
'email' => 'testUser@testemailservice.com',
'functionalannotation' => 'off',
'hg18' => 'off',
'mupitinput' => 'off',
'tsvreport' => 'off',
'inputfile' => ['/home/testUser/mutations.txt']]);
print $responseSubmitPost->content, "\n";

#
# Job status checking example
#
print "##### Job Status Checking #####\n";
my $urlStatus = URI->new('http://www.cravat.us/rest/service/status');
$urlStatus->query_form('jobid' => 'testUser_20140430_110005');
my $responseStatus = $browser->get($urlStatus);
print $responseStatus->content, "\n";


Hope this helps and if you have any question, please let me know.
slcrick is offline   Reply With Quote
Reply

Tags
cravat, html, perl, web services

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 05:53 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO