public class AAConClient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
hostname
Web service host
|
private static java.util.logging.Logger |
log
Use java.util.Logger instead of log4j logger to reduce the size of the
client package
|
(package private) static java.lang.String |
QUALIFIED_SERVICE_NAME
The fully qualified web service namespace
|
(package private) static java.lang.String |
serviceName
Web service name
|
Constructor and Description |
---|
AAConClient(java.lang.String[] cmd)
Connects to the service and do the job as requested, if something goes
wrong reports or/and prints usage help.
|
Modifier and Type | Method and Description |
---|---|
(package private) static ScoreManager |
analize(java.io.File file,
SequenceAnnotation<AAConWS> wsproxy,
Preset<AAConWS> preset,
java.util.List<Option<AAConWS>> customOptions)
Calculate conservation for sequences loaded from the file
|
static SequenceAnnotation<AAConWS> |
connect()
Connects to a AACon web service by the host and the service name
|
static void |
main(java.lang.String[] args)
Starts command line client, if no parameters are supplied prints help.
|
(package private) static void |
printUsage(int exitStatus)
Prints AAConClient usage information to standard out
|
(package private) static void |
writeOut(java.io.Writer writer,
ScoreManager result)
Outputs AAcon results into the file represented by the outStream
|
private static final java.util.logging.Logger log
static final java.lang.String QUALIFIED_SERVICE_NAME
static final java.lang.String hostname
static final java.lang.String serviceName
AAConClient(java.lang.String[] cmd) throws java.io.IOException
cmd
- command line optionsjava.io.IOException
- if the system cannot read/write from/into the file systemstatic void writeOut(java.io.Writer writer, ScoreManager result)
outStream
- result
- the AACon scores to outputpublic static SequenceAnnotation<AAConWS> connect() throws javax.xml.ws.WebServiceException
AlignmentAnnotation
javax.xml.ws.WebServiceException
- if cannot connect to a web servicestatic ScoreManager analize(java.io.File file, SequenceAnnotation<AAConWS> wsproxy, Preset<AAConWS> preset, java.util.List<Option<AAConWS>> customOptions)
wsproxy
- a web service proxyfile
- the file to read the results frompreset
- Preset to use optionalcustomOptions
- the list of optionsUnknownFileFormatException
static void printUsage(int exitStatus)
exitStatus
- public static void main(java.lang.String[] args)
args
- Usage: