Package ubic.gemma.core.apps
Class ArrayDesignSequenceManipulatingCli
- java.lang.Object
-
- ubic.gemma.core.util.AbstractCLI
-
- ubic.gemma.core.util.AbstractSpringAwareCLI
-
- ubic.gemma.core.util.AbstractCLIContextCLI
-
- ubic.gemma.core.apps.ArrayDesignSequenceManipulatingCli
-
- All Implemented Interfaces:
CLI
- Direct Known Subclasses:
AffyProbeCollapseCli
,ArrayDesignAnnotationFileCli
,ArrayDesignAuditTrailCleanupCli
,ArrayDesignBioSequenceDetachCli
,ArrayDesignBlatCli
,ArrayDesignMapSummaryCli
,ArrayDesignMergeCli
,ArrayDesignProbeCleanupCLI
,ArrayDesignProbeMapperCli
,ArrayDesignProbeRenamerCli
,ArrayDesignRepeatScanCli
,ArrayDesignSequenceAssociationCli
,ArrayDesignSubsumptionTesterCli
,BioSequenceCleanupCli
public abstract class ArrayDesignSequenceManipulatingCli extends AbstractCLIContextCLI
Aggregates functionality useful when writing CLIs that need to get an array design from the database and do something with it.- Author:
- pavlidis
-
-
Field Summary
-
Fields inherited from class ubic.gemma.core.util.AbstractSpringAwareCLI
auditEventService, auditTrailService
-
Fields inherited from class ubic.gemma.core.util.AbstractCLI
AUTO_OPTION_NAME, autoSeek, autoSeekEventType, FAILURE, FAILURE_FROM_ERROR_OBJECTS, FOOTER, HEADER, host, log, mDate, numThreads, port, SUCCESS, THREADS_OPTION
-
-
Constructor Summary
Constructors Constructor Description ArrayDesignSequenceManipulatingCli()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buildOptions(org.apache.commons.cli.Options options)
Build option implementation.protected ubic.gemma.core.analysis.report.ArrayDesignReportService
getArrayDesignReportService()
protected ubic.gemma.persistence.service.expression.arrayDesign.ArrayDesignService
getArrayDesignService()
protected Collection<ubic.gemma.model.expression.arrayDesign.ArrayDesign>
getArrayDesignsToProcess()
GemmaCLI.CommandGroup
getCommandGroup()
Obtain the command grup.protected boolean
isSubsumedOrMerged(ubic.gemma.model.expression.arrayDesign.ArrayDesign arrayDesign)
protected void
processOptions(org.apache.commons.cli.CommandLine commandLine)
Process command line options.protected boolean
shouldRun(Date skipIfLastRunLaterThan, ubic.gemma.model.expression.arrayDesign.ArrayDesign design, Class<? extends ubic.gemma.model.common.auditAndSecurity.eventType.ArrayDesignAnalysisEvent> cls)
-
Methods inherited from class ubic.gemma.core.util.AbstractCLIContextCLI
locateArrayDesign, readListFileToStrings, setTaxonByName
-
Methods inherited from class ubic.gemma.core.util.AbstractSpringAwareCLI
executeBatchTasks, getBean, getBean, getPersisterHelper, getShortDesc, noNeedToRun, processStandardOptions, requireLogin
-
Methods inherited from class ubic.gemma.core.util.AbstractCLI
addAutoOption, addDateOption, addErrorObject, addErrorObject, addHostAndPortOptions, addSuccessObject, addThreadsOption, buildStandardOptions, doWork, executeCommand, getDoubleOptionValue, getDoubleOptionValue, getFileNameOptionValue, getFileNameOptionValue, getIntegerOptionValue, getIntegerOptionValue, getLimitingDate, printHelp, resetLogging
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ubic.gemma.core.util.CLI
getCommandName
-
-
-
-
Method Detail
-
getCommandGroup
public GemmaCLI.CommandGroup getCommandGroup()
Description copied from interface:CLI
Obtain the command grup.- Returns:
- the command group for this CLI
-
getArrayDesignsToProcess
protected Collection<ubic.gemma.model.expression.arrayDesign.ArrayDesign> getArrayDesignsToProcess()
-
buildOptions
protected void buildOptions(org.apache.commons.cli.Options options)
Description copied from class:AbstractCLI
Build option implementation. Implement this method to add options to your command line, using the OptionBuilder. This is called right afterAbstractCLI.buildStandardOptions(Options)
so the options will be added after standard options.- Specified by:
buildOptions
in classAbstractCLI
-
processOptions
protected void processOptions(org.apache.commons.cli.CommandLine commandLine)
Description copied from class:AbstractCLI
Process command line options. Implement this to provide processing of options. It is called afterAbstractCLI.buildOptions(Options)
and right beforeAbstractCLI.doWork()
.- Specified by:
processOptions
in classAbstractCLI
-
getArrayDesignReportService
protected ubic.gemma.core.analysis.report.ArrayDesignReportService getArrayDesignReportService()
-
getArrayDesignService
protected ubic.gemma.persistence.service.expression.arrayDesign.ArrayDesignService getArrayDesignService()
-
isSubsumedOrMerged
protected boolean isSubsumedOrMerged(ubic.gemma.model.expression.arrayDesign.ArrayDesign arrayDesign)
- 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).
-
-