1 /* Copyright (c) 2011 Peter Troshin
\r
3 * JAva Bioinformatics Analysis Web Services (JABAWS) @version: 2.0
\r
5 * This library is free software; you can redistribute it and/or modify it under the terms of the
\r
6 * Apache License version 2 as published by the Apache Software Foundation
\r
8 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
\r
9 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache
\r
10 * License for more details.
\r
12 * A copy of the license is in apache_license.txt. It is also available here:
\r
13 * @see: http://www.apache.org/licenses/LICENSE-2.0.txt
\r
15 * Any republication or derived work distributed in source code form
\r
16 * must include this copyright and license notice.
\r
18 package compbio.ws.server;
\r
20 import java.util.List;
\r
22 import javax.jws.WebService;
\r
24 import org.apache.log4j.Logger;
\r
26 import compbio.data.msa.JABAService;
\r
27 import compbio.data.msa.SequenceAnnotation;
\r
28 import compbio.data.sequence.FastaSequence;
\r
29 import compbio.metadata.JobSubmissionException;
\r
30 import compbio.metadata.LimitExceededException;
\r
31 import compbio.metadata.Option;
\r
32 import compbio.metadata.Preset;
\r
33 import compbio.metadata.UnsupportedRuntimeException;
\r
34 import compbio.metadata.WrongParameterException;
\r
35 import compbio.runner.disorder.GlobPlot;
\r
37 @WebService(endpointInterface = "compbio.data.msa.SequenceAnnotation", targetNamespace = JABAService.V2_SERVICE_NAMESPACE, serviceName = "GlobPlotWS")
\r
38 public class GlobPlotWS extends SequenceAnnotationService<GlobPlot>
\r
40 SequenceAnnotation<GlobPlot> {
\r
42 private static Logger log = Logger.getLogger(GlobPlotWS.class);
\r
44 public GlobPlotWS() {
\r
45 super(new GlobPlot(), log);
\r
49 * No options are supported, thus the result of this call will be as simple
\r
50 * call to analize without parameters
\r
53 public String customAnalize(List<FastaSequence> sequences,
\r
54 List<Option<GlobPlot>> options) throws UnsupportedRuntimeException,
\r
55 LimitExceededException, JobSubmissionException,
\r
56 WrongParameterException {
\r
57 return analize(sequences);
\r
61 * No presets are supported, thus the result of this call will be as simple
\r
62 * call to analize without parameters
\r
65 public String presetAnalize(List<FastaSequence> sequences,
\r
66 Preset<GlobPlot> preset) throws UnsupportedRuntimeException,
\r
67 LimitExceededException, JobSubmissionException,
\r
68 WrongParameterException {
\r
70 return analize(sequences);
\r