}
// configure submission flags
- if (service.getAlignAnalysisUI() != null)
+ proteinAllowed = service.isProteinService();
+ nucleotidesAllowed = service.isNucleotideService();
+ alignedSeqs = service.isNeedsAlignedSequences();
+ bySequence = !service.isAlignmentAnalysis();
+ filterNonStandardResidues = service.isFilterSymbols();
+ min_valid_seqs = service.getMinimumInputSequences();
+
+ if (service.isInteractiveUpdate())
{
- // instantaneous calculation. Right now that's either AACons or RNAAliFold
- proteinAllowed = service.getAlignAnalysisUI().isPr();
- nucleotidesAllowed = service.getAlignAnalysisUI().isNa();
- alignedSeqs = service.getAlignAnalysisUI().isNeedsAlignedSeqs();
- bySequence = !service.getAlignAnalysisUI().isAA();
- filterNonStandardResidues = service.getAlignAnalysisUI()
- .isFilterSymbols();
- min_valid_seqs = service.getAlignAnalysisUI().getMinimumSequences();
initViewportParams();
}
- else
- {
- // assume disorder prediction : per-sequence protein only no gaps
- // analysis.
- // TODO - move configuration to UIInfo base class for all these flags !
- alignedSeqs = false;
- bySequence = true;
- filterNonStandardResidues = true;
- nucleotidesAllowed = false;
- proteinAllowed = true;
- submitGaps = false;
- min_valid_seqs = 1;
- }
}
/**
{
return aaui != null && aaui.isAA();
}
+ // config flags for SeqAnnotationServiceCalcWorker
+
+ public boolean isProteinService()
+ {
+ return aaui == null ? true : aaui.isPr();
+ }
+
+ public boolean isNucleotideService()
+ {
+ return aaui == null ? false : aaui.isNa();
+ }
+
+ public boolean isNeedsAlignedSequences()
+ {
+ return aaui == null ? false : aaui.isNeedsAlignedSeqs();
+ }
+
+ public boolean isAlignmentAnalysis()
+ {
+ return aaui == null ? false : aaui.isAA();
+ }
+
+ public boolean isFilterSymbols()
+ {
+ return aaui != null ? aaui.isFilterSymbols() : true;
+ }
+
+ public int getMinimumInputSequences()
+ {
+ return aaui != null ? aaui.getMinimumSequences() : 1;
+ }
}