This is a template synchronous web service, continging three operations 'runService', 'pollQueue', and 'fetchResult'.
Input for runService is sequence data and output is annotations.
1. runService
Input: The following parameters and data:
* 'sequencedata' [containing mulitple 'sequence' element]
* 'sequence'
* 'id' Unique identifier for the sequence
* 'comment' Optional comment
* 'seq' protein sequences, with unique identifiers (mandatory)
The sequences must be written using the one letter amino acid
code: `acdefghiklmnpqrstvwy' or `ACDEFGHIKLMNPQRSTVWY'. Other
letters will be converted to `X' and treated as unknown amino
acids. Other symbols, such as whitespace and numbers, will be
ignored. All the input sequences are truncated to 70 aa from
the N-terminal. Currently, at most 2,000 sequences are allowed
per submission.
Output: Unique job identifier
2. pollQueue
Input: Unique job identifier
Output: 'jobstatus' - the status of the job
Possible values are QUEUED, ACTIVE, FINISHED, WAITING,
REJECTED, UNKNOWN JOBID or QUEUE DOWN
3. fetchResult
Input : Unique job identifier of a FINISHED job
Output:
* 'annsource'
'method' : Name of the method
'version' : Version of the methods
* 'ann' (array of annotations - one element per input sequence)
'sequence' (standard sequence object)
'id' : Sequence identifier
'comment' : Sequence comment
'seq' : Sequence
'annrecords' (array of predicted features for this sequence)
'annrecord' (annotation record)
'feature : feature name
'range'
'begin' : Begin position
'end' : End position
'score'
'key' : Key describing the nature of this score
'value : The score value
'comment : Answer.