Package org.biojavax.bio.alignment
Interface RemotePairwiseAlignmentService
-
- All Known Implementing Classes:
RemoteQBlastService
public interface RemotePairwiseAlignmentService
This interface specifies minimal information needed to execute a pairwise alignment on a remote service. Example of service: QBlast service at NCBI Web Service at EBI- Since:
- 1.8
- Author:
- Sylvain Foisy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStreamgetAlignmentResults(java.lang.String rid, RemotePairwiseAlignmentOutputProperties out)Getting the actual alignment results from this instantiated service for a given ID with specific formatting parameters held in a RemotePairwiseAlignmentOutputProperties-implemented object.booleanisReady(java.lang.String id, long present)Simple method to check if the specified request has been completed by the service used.java.lang.StringsendAlignmentRequest(java.lang.String str, RemotePairwiseAlignmentProperties rpa)Doing the actual analysis on the instantiated service using specified parameters on the string representation of the Sequence objectjava.lang.StringsendAlignmentRequest(RichSequence rs, RemotePairwiseAlignmentProperties rpa)Doing the actual analysis on the instantiated service using specified parameters and the RichSequence object
-
-
-
Method Detail
-
sendAlignmentRequest
java.lang.String sendAlignmentRequest(RichSequence rs, RemotePairwiseAlignmentProperties rpa) throws BioException
Doing the actual analysis on the instantiated service using specified parameters and the RichSequence object- Throws:
BioException
-
sendAlignmentRequest
java.lang.String sendAlignmentRequest(java.lang.String str, RemotePairwiseAlignmentProperties rpa) throws BioException
Doing the actual analysis on the instantiated service using specified parameters on the string representation of the Sequence object- Throws:
BioException
-
isReady
boolean isReady(java.lang.String id, long present) throws BioException
Simple method to check if the specified request has been completed by the service used.- Parameters:
id- :an ID for an alignment requestpresent- :a long integer value representing the actual time- Returns:
- a boolean value telling if this requestID has been completed or not.
- Throws:
BioException- if the ID does not exist.
-
getAlignmentResults
java.io.InputStream getAlignmentResults(java.lang.String rid, RemotePairwiseAlignmentOutputProperties out) throws BioException
Getting the actual alignment results from this instantiated service for a given ID with specific formatting parameters held in a RemotePairwiseAlignmentOutputProperties-implemented object.- Parameters:
rid- :a String with the request ID for this single alignment runout- :a RemotePairwiseAlignmentOutputProperties with the specific output instructions.- Returns:
- : an
InputStreamwith the actual alignment results - Throws:
BioException
-
-