Class ArrayDesignSequenceManipulatingCli
java.lang.Object
ubic.gemma.cli.util.AbstractCLI
ubic.gemma.cli.util.AbstractAuthenticatedCLI
ubic.gemma.cli.util.AbstractAutoSeekingCLI<ArrayDesign>
ubic.gemma.apps.ArrayDesignSequenceManipulatingCli
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.EnvironmentAware, CLI
- Direct Known Subclasses:
- AffyProbeCollapseCli, ArrayDesignAnnotationFileCli, ArrayDesignAuditTrailCleanupCli, ArrayDesignBioSequenceDetachCli, ArrayDesignBlatCli, ArrayDesignMapSummaryCli, ArrayDesignMergeCli, ArrayDesignProbeCleanupCLI, ArrayDesignProbeMapperCli, ArrayDesignProbeRenamerCli, ArrayDesignRepeatScanCli, ArrayDesignSequenceAssociationCli, ArrayDesignSubsumptionTesterCli, BioSequenceCleanupCli
public abstract class ArrayDesignSequenceManipulatingCli
extends AbstractAutoSeekingCLI<ArrayDesign>
Aggregates functionality useful when writing CLIs that need to get an array design from the database and do something
with it.
- Author:
- pavlidis
- 
Nested Class SummaryNested classes/interfaces inherited from interface CLICLI.CommandGroup
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected AuditEventServiceprotected AuditTrailServiceprotected EntityLocatorFields inherited from class AbstractAutoSeekingCLIFORCE_OPTIONFields inherited from class AbstractCLIABORTED, FAILURE, FAILURE_FROM_ERROR_OBJECTS, log, SUCCESS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidbuildOptions(org.apache.commons.cli.Options options) Build option implementation.protected ArrayDesignReportServiceprotected ArrayDesignServiceprotected Collection<ArrayDesign> Obtain the command group for this CLI.protected booleanisSubsumedOrMerged(ArrayDesign arrayDesign) protected booleanneedToRun(Date skipIfLastRunLaterThan, ArrayDesign arrayDesign, Class<? extends ArrayDesignAnalysisEvent> eventClass) protected voidprocessOptions(org.apache.commons.cli.CommandLine commandLine) Process command line options.protected booleanshouldRun(Date skipIfLastRunLaterThan, ArrayDesign design, Class<? extends ArrayDesignAnalysisEvent> cls) protected SerializabletoBatchObject(ArrayDesign object) Convert the given object to a serializable object for batch processing.Methods inherited from class AbstractAutoSeekingCLIaddAutoOption, addAutoOption, addErrorObject, addErrorObject, addErrorObject, addForceOption, addForceOption, addLimitingDateOption, addSuccessObject, addSuccessObject, addWarningObject, addWarningObject, getAutoSeekEventType, getLimitingDate, isAutoSeek, isForce, noNeedToRun, setForceMethods inherited from class AbstractAuthenticatedCLIafterPropertiesSet, doAuthenticatedWork, doWork, setEnvironment, setRequireLoginMethods inherited from class AbstractCLIabort, addBatchOption, addErrorObject, addErrorObject, addErrorObject, addSuccessObject, addSuccessObject, addThreadsOption, addWarningObject, addWarningObject, allowPositionalArguments, awaitBatchExecutorService, executeCommand, getApplicationContext, getBatchTaskExecutor, getBatchTaskProgressReporter, getCliContext, getCommandAliases, getCommandName, getHelpFooter, getNumThreads, getOptions, getShortDesc, getUsage, promptConfirmationOrAbort, setAllowPositionalArguments, setApplicationContext, setEstimatedMaxTasks, setReportFrequencyMillis
- 
Field Details- 
auditTrailService
- 
auditEventService
- 
entityLocator
 
- 
- 
Constructor Details- 
ArrayDesignSequenceManipulatingCliprotected ArrayDesignSequenceManipulatingCli()
 
- 
- 
Method Details- 
getCommandGroupDescription copied from interface:CLIObtain the command group for this CLI.- Specified by:
- getCommandGroupin interface- CLI
- Overrides:
- getCommandGroupin class- AbstractCLI
 
- 
getArrayDesignsToProcess
- 
buildOptionsprotected void buildOptions(org.apache.commons.cli.Options options) Description copied from class:AbstractCLIBuild option implementation.Implement this method to add options to your command line, using the OptionBuilder. This is called right after AbstractCLI.buildStandardOptions(Options)so the options will be added after standard options.- Overrides:
- buildOptionsin class- AbstractCLI
 
- 
processOptions@OverridingMethodsMustInvokeSuper protected void processOptions(org.apache.commons.cli.CommandLine commandLine) throws org.apache.commons.cli.ParseException Description copied from class:AbstractCLIProcess command line options.Implement this to provide processing of options. It is called after AbstractCLI.buildOptions(Options)and right beforeAbstractCLI.doWork().- Overrides:
- processOptionsin class- AbstractAutoSeekingCLI<ArrayDesign>
- Throws:
- org.apache.commons.cli.ParseException- in case of unrecoverable failure (i.e. missing option or invalid value), an exception can be raised and will result in an exit code of- AbstractCLI.FAILURE.
 
- 
getArrayDesignReportService
- 
getArrayDesignService
- 
toBatchObjectDescription copied from class:AbstractAutoSeekingCLIConvert the given object to a serializable object for batch processing.- Specified by:
- toBatchObjectin class- AbstractAutoSeekingCLI<ArrayDesign>
 
- 
isSubsumedOrMerged- Parameters:
- arrayDesign- the array design to check
- Returns:
- true if the sequences on the given array design would be equivalently treated by analyzing another array design. In the case of subsumption, this only works if the array design has been either analyzed for subsuming status. (the analysis is not done as part of this call).
 
- 
shouldRunprotected boolean shouldRun(Date skipIfLastRunLaterThan, ArrayDesign design, Class<? extends ArrayDesignAnalysisEvent> cls) 
- 
needToRunprotected boolean needToRun(Date skipIfLastRunLaterThan, ArrayDesign arrayDesign, Class<? extends ArrayDesignAnalysisEvent> eventClass) - Parameters:
- eventClass- e.g., ArrayDesignSequenceAnalysisEvent.class
- Returns:
- true if skipIfLastRunLaterThan is null, or there is no record of a previous analysis, or if the last analysis was run before skipIfLastRunLaterThan. false otherwise.
 
 
-