[MOBY] [MOBY-l] Services on MOBYClient

Simon Twigger simont at mcw.edu
Mon Dec 8 19:13:54 UTC 2003


Here's the registration code:

my $authURI = 'sirius.brc.mcw.edu';
my $email   = 'simont at mcw.edu';
my $url     = 'http://sirius.brc.mcw.edu/cgi-bin/MobyEd_dispatcher.cgi';

use MOBY::Client::Central;
use MOBY::Client::Service;

my $Central = MOBY::Client::Central->new();

  &register_service($Central);

exit(0); # End of main

######################################################################## 
#
# Register the service
######################################################################## 
#
sub register_service {
   my $C = shift;
   my $reg = $C->registerService(
     serviceName  => 'keywordToGene',
     authURI      => $authURI,
     contactEmail => $email,
     description  => "Test service: matches gene symbol to RGD gene  
record, if available",
     URL          => $url,
     input        => [ ['', [Object => []]], ],
     output       => [ ['', [String => ['RGD']]], ],
     category     => "moby",
     serviceType  => "Retrieval",
   );
   die "Bad return value from registerService" unless $reg;
   if ($reg->success == 1){
     print "Registration successful\n\n";
   }
   else {
     print "Registration failed: ", $reg->message, "\n";
   }
}

If you try and register Global_Keyword instead of Object for the input,  
the service vanishes from the client even if you say you have a  
Global_Keyword as the seed. You'd think that as Global_Keyword ISA  
Object that this really shouldn't make a difference, unless Im missing  
something from the registration process.

I've attached the service's .pm file. Ken's original  
test_SequenceToFASTA subroutine is at the top, the rest is code for the  
keywordToGene service.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MobyEd_services.pm
Type: application/text
Size: 5423 bytes
Desc: not available
Url : http://biomoby.org/pipermail/moby-l/attachments/20031208/62465e2b/MobyEd_services-0002.bin
-------------- next part --------------


Simon.




On Monday, Dec 8, 2003, at 13:16 America/Chicago, mwilkinson wrote:

> Hi simon,
>
> You're right - my last message made no sense at all.
>
> Please send whatever code you used/are using and any parameters you  
> are filling in so that I can explore what is going wrong.
>
> Cheers!
>
> M
>
>
------------------------------------------------------------------------ 
--------------------------
Simon Twigger, Ph.D.
Assistant Professor, Bioinformatics Research Center

Medical College of Wisconsin
8701 Watertown Plank Road,
Milwaukee, WI, 53226
tel. 414-456-8802, fax 414-456-6595


More information about the moby-l mailing list