import jalview.gui.AlignFrame;
import jalview.util.MessageManager;
import jalview.ws.jws2.jabaws2.Jws2Instance;
+import jalview.ws.params.ArgumentI;
import jalview.ws.params.WsParamSetI;
import jalview.ws.uimodel.AlignAnalysisUIText;
import compbio.data.sequence.FastaSequence;
import compbio.data.sequence.Score;
-import compbio.metadata.Argument;
public class AAConClient extends JabawsCalcWorker
{
public AAConClient(Jws2Instance service, AlignFrame alignFrame,
- WsParamSetI preset, List<Argument> paramset)
+ WsParamSetI preset, List<ArgumentI> paramset)
{
super(service, alignFrame, preset, paramset);
submitGaps = true;
import jalview.schemes.FeatureColour;
import jalview.util.ColorUtils;
import jalview.ws.jws2.jabaws2.Jws2Instance;
+import jalview.ws.params.ArgumentI;
import jalview.ws.params.WsParamSetI;
import java.awt.Color;
import compbio.data.sequence.Range;
import compbio.data.sequence.Score;
import compbio.data.sequence.ScoreManager.ScoreHolder;
-import compbio.metadata.Argument;
public class AADisorderClient extends JabawsCalcWorker
{
AlignFrame af;
public AADisorderClient(Jws2Instance sh, AlignFrame alignFrame,
- WsParamSetI thePreset, List<Argument> paramset)
+ WsParamSetI thePreset, List<ArgumentI> paramset)
{
super(sh, alignFrame, thePreset, paramset);
af = alignFrame;
import jalview.ws.jws2.dm.AAConSettings;
import jalview.ws.jws2.dm.JabaWsParamSet;
import jalview.ws.jws2.jabaws2.Jws2Instance;
+import jalview.ws.params.ArgumentI;
import jalview.ws.params.WsParamSetI;
import java.util.ArrayList;
import java.util.Map;
import compbio.data.sequence.FastaSequence;
-import compbio.metadata.Argument;
import compbio.metadata.ChunkHolder;
import compbio.metadata.JobStatus;
import compbio.metadata.JobSubmissionException;
protected WsParamSetI preset;
- protected List<Argument> arguments;
+ protected List<ArgumentI> arguments;
protected IProgressIndicator guiProgress;
{
((jalview.gui.AlignViewport) alignViewport).setCalcIdSettingsFor(
getCalcId(),
- new AAConSettings(true, service, this.preset,
- (arguments != null)
- ? JabaParamStore.getJwsArgsfromJaba(arguments)
- : null),
+ new AAConSettings(true, service, this.preset, arguments),
true);
}
}
return preset;
}
- public List<Argument> getArguments()
+ public List<ArgumentI> getArguments()
{
return arguments;
}
* @param newarguments
*/
public void updateParameters(final WsParamSetI newpreset,
- final List<Argument> newarguments)
+ final List<ArgumentI> newarguments)
{
preset = newpreset;
arguments = newarguments;
}
if (arguments != null && arguments.size() > 0)
{
- for (Argument rg : arguments)
+ for (Object rg : JabaParamStore.getJabafromJwsArgs(arguments))
{
if (Option.class.isAssignableFrom(rg.getClass()))
{
}
public AbstractJabaCalcWorker(Jws2Instance service, AlignFrame alignFrame,
- WsParamSetI preset, List<Argument> paramset)
+ WsParamSetI preset, List<ArgumentI> paramset)
{
this(alignFrame.getCurrentView(), alignFrame.alignPanel);
this.guiProgress = alignFrame;
import jalview.gui.AlignFrame;
import jalview.util.MessageManager;
import jalview.ws.jws2.jabaws2.Jws2Instance;
+import jalview.ws.params.ArgumentI;
import jalview.ws.params.WsParamSetI;
import java.util.Iterator;
import compbio.data.msa.SequenceAnnotation;
import compbio.data.sequence.Score;
import compbio.data.sequence.ScoreManager;
-import compbio.metadata.Argument;
import compbio.metadata.ChunkHolder;
import compbio.metadata.JobStatus;
import compbio.metadata.JobSubmissionException;
protected ScoreManager scoremanager;
public JabawsCalcWorker(Jws2Instance service, AlignFrame alignFrame,
- WsParamSetI preset, List<Argument> paramset)
+ WsParamSetI preset, List<ArgumentI> paramset)
{
super(service, alignFrame, preset, paramset);
aaservice = (SequenceAnnotation) service.service;
import jalview.gui.AlignFrame;
import jalview.util.MessageManager;
import jalview.ws.jws2.jabaws2.Jws2Instance;
+import jalview.ws.params.ArgumentI;
import jalview.ws.params.WsParamSetI;
import java.util.Iterator;
import compbio.data.msa.MsaWS;
import compbio.data.sequence.Alignment;
import compbio.data.sequence.Score;
-import compbio.metadata.Argument;
import compbio.metadata.ChunkHolder;
import compbio.metadata.JobStatus;
import compbio.metadata.JobSubmissionException;
public JabawsMsaInterfaceAlignCalcWorker(Jws2Instance service,
AlignFrame alignFrame, WsParamSetI preset,
- List<Argument> paramset)
+ List<ArgumentI> paramset)
{
this(alignFrame.getCurrentView(), alignFrame.alignPanel);
this.guiProgress = alignFrame;
import javax.swing.event.MenuEvent;
import javax.swing.event.MenuListener;
-import compbio.metadata.Argument;
-
/**
* provides metadata for a jabaws2 service instance - resolves names, etc.
*
{
protected WsParamSetI preset;
- protected List<Argument> paramset;
+ protected List<ArgumentI> paramset;
public Jws2Client(AlignFrame _alignFrame, WsParamSetI preset,
- List<Argument> arguments)
+ List<ArgumentI> arguments)
{
alignFrame = _alignFrame;
this.preset = preset;
import jalview.gui.JvSwingUtils;
import jalview.util.MessageManager;
import jalview.ws.jws2.jabaws2.Jws2Instance;
+import jalview.ws.params.ArgumentI;
import jalview.ws.params.WsParamSetI;
import java.awt.event.ActionEvent;
import javax.swing.ToolTipManager;
import compbio.data.msa.MsaWS;
-import compbio.metadata.Argument;
/**
* DOCUMENT ME!
*/
public MsaWSClient(Jws2Instance sh, WsParamSetI preset,
- List<Argument> arguments, boolean editParams, String altitle,
+ List<ArgumentI> arguments, boolean editParams, String altitle,
jalview.datamodel.AlignmentView msa, boolean submitGaps,
boolean preserveOrder, AlignmentI seqdataset,
AlignFrame _alignFrame)
import jalview.ws.JobStateSummary;
import jalview.ws.WSClientI;
import jalview.ws.jws2.dm.JabaWsParamSet;
+import jalview.ws.params.ArgumentI;
import jalview.ws.params.WsParamSetI;
import java.util.ArrayList;
WsParamSetI preset = null;
- List<Argument> arguments = null;
+ List<ArgumentI> arguments = null;
/**
* input
}
if (arguments != null && arguments.size() > 0)
{
- newargs.addAll(arguments);
+ newargs.addAll(JabaParamStore.getJabafromJwsArgs(arguments));
}
return newargs;
}
+ "Preset: " + preset.getName());
if (preset instanceof JabaWsParamSet)
{
- for (Argument opt : ((JabaWsParamSet) preset).getjabaArguments())
+ for (Argument opt : getJabaArguments())
{
jobProgress.append(
opt.getName() + " " + opt.getDefaultValue() + "\n");
{
jobProgress.append("With custom parameters : \n");
// merge arguments with preset's own arguments.
- for (Argument opt : arguments)
+ for (Argument opt : getJabaArguments())
{
jobProgress.append(
opt.getName() + " " + opt.getDefaultValue() + "\n");
* @param seqset
* Alignment
*/
- MsaWSThread(MsaWS server2, WsParamSetI preset, List<Argument> paramset,
+ MsaWSThread(MsaWS server2, WsParamSetI preset, List<ArgumentI> paramset,
String wsUrl, WebserviceInfo wsinfo,
jalview.gui.AlignFrame alFrame, String wsname, String title,
AlignmentView _msa, boolean subgaps, boolean presorder,
import jalview.gui.AlignFrame;
import jalview.util.MessageManager;
import jalview.ws.jws2.jabaws2.Jws2Instance;
+import jalview.ws.params.ArgumentI;
import jalview.ws.params.WsParamSetI;
import jalview.ws.uimodel.AlignAnalysisUIText;
import compbio.data.sequence.RNAStructScoreManager;
import compbio.data.sequence.Range;
import compbio.data.sequence.Score;
-import compbio.metadata.Argument;
/**
* Client for the JABA RNA Alifold Service
boolean bpScores;
public RNAalifoldClient(Jws2Instance sh, AlignFrame alignFrame,
- WsParamSetI preset, List<Argument> paramset)
+ WsParamSetI preset, List<ArgumentI> paramset)
{
super(sh, alignFrame, preset, paramset);
af = alignFrame;
public SequenceAnnotationWSClient(AAConSettings fave,
AlignFrame alignFrame, boolean b)
{
- super(alignFrame, fave.getPreset(), fave.getJobArgset());
+ super(alignFrame, fave.getPreset(), fave.getArgumentSet());
initSequenceAnnotationWSClient(fave.getService(), alignFrame,
fave.getPreset(), b);
}
import jalview.io.FileFormat;
import jalview.io.FormatAdapter;
import jalview.io.StockholmFileTest;
+import jalview.ws.jws2.JabaParamStore;
import jalview.ws.jws2.Jws2Discoverer;
import jalview.ws.jws2.RNAalifoldClient;
import jalview.ws.jws2.SequenceAnnotationWSClient;
opts.add(rg);
}
}
- alifoldClient = new RNAalifoldClient(rnaalifoldws, af, null, opts);
+ alifoldClient = new RNAalifoldClient(rnaalifoldws, af, null,
+ JabaParamStore.getJwsArgsfromJaba(opts));
af.getViewport().getCalcManager().startWorker(alifoldClient);