Package ubic.gemma.core.apps
Class ExpressionExperimentManipulatingCLI
- java.lang.Object
- 
- ubic.gemma.core.util.AbstractCLI
- 
- ubic.gemma.core.util.AbstractAuthenticatedCLI
- 
- ubic.gemma.core.apps.ExpressionExperimentManipulatingCLI
 
 
 
- 
- All Implemented Interfaces:
- CLI
 - Direct Known Subclasses:
- AffyDataFromCelCli,- BatchEffectPopulationCli,- DeleteDiffExCli,- DeleteExperimentsCli,- DifferentialExpressionAnalysisCli,- ExperimentalDesignWriterCLI,- ExpressionDataCorrMatCli,- ExpressionDataMatrixWriterCLI,- ExpressionExperimentDataFileGeneratorCli,- ExpressionExperimentPlatformSwitchCli,- ExpressionExperimentPrimaryPubCli,- GeeqCli,- LinkAnalysisCli,- MakeExperimentPrivateCli,- MakeExperimentsPublicCli,- OrderVectorsByDesignCli,- ProcessedDataComputeCLI,- ReplaceDataCli,- RNASeqBatchInfoCli,- RNASeqDataAddCli,- SplitExperimentCli,- SVDCli,- VectorMergingCli
 
 public abstract class ExpressionExperimentManipulatingCLI extends AbstractAuthenticatedCLI Base class for CLIs that needs one or more expression experiment as an input. It offers the following ways of reading them in:- All EEs (if -all is supplied)
- All EEs for a particular taxon.
- A specific ExpressionExperimentSet, identified by name
- A comma-delimited list of one or more EEs identified by short name given on the command line
- From a file, with one short name per line.
- EEs matching a query string (e.g., 'brain')
- (Optional) 'Auto' mode, in which experiments to analyze are selected automatically based on their workflow state. This can be enabled and modified by subclasses who override the "needToRun" method.
- All EEs that were last processed after a given date, similar to 'auto' otherwise.
 In addition, EEs can be excluded based on a list given in a separate file. - Author:
- Paul
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ubic.gemma.persistence.service.common.auditAndSecurity.AuditEventServiceauditEventServiceprotected ubic.gemma.persistence.service.common.auditAndSecurity.AuditTrailServiceauditTrailServiceprotected ubic.gemma.persistence.service.expression.experiment.ExpressionExperimentServiceeeServiceprotected Set<ubic.gemma.model.expression.experiment.BioAssaySet>expressionExperimentsprotected booleanforce- 
Fields inherited from class ubic.gemma.core.util.AbstractCLIABORTED, FAILURE, FAILURE_FROM_ERROR_OBJECTS, FOOTER, HEADER, log, SUCCESS
 
- 
 - 
Constructor SummaryConstructors Constructor Description ExpressionExperimentManipulatingCLI()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildOptions(org.apache.commons.cli.Options options)Build option implementation.protected ubic.gemma.model.genome.GenefindGeneByOfficialSymbol(String symbol, ubic.gemma.model.genome.Taxon t)GemmaCLI.CommandGroupgetCommandGroup()Obtain the command group for this CLI.protected ubic.gemma.model.genome.TaxongetTaxonByName(org.apache.commons.cli.CommandLine commandLine)protected booleannoNeedToRun(ubic.gemma.model.common.Auditable auditable, Class<? extends ubic.gemma.model.common.auditAndSecurity.eventType.AuditEventType> eventClass)protected voidprocessOptions(org.apache.commons.cli.CommandLine commandLine)Process command line options.- 
Methods inherited from class ubic.gemma.core.util.AbstractAuthenticatedCLIexecuteBatchTasks, getShortDesc, processStandardOptions, requireLogin
 - 
Methods inherited from class ubic.gemma.core.util.AbstractCLIaddAutoOption, addAutoOption, addDateOption, addErrorObject, addErrorObject, addErrorObject, addSuccessObject, addSuccessObject, addThreadsOption, buildStandardOptions, doWork, executeCommand, getAutoSeekEventType, getBean, getBean, getLimitingDate, getNumThreads, isAutoSeek, promptConfirmationOrAbort, setAllowPositionalArguments
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface ubic.gemma.core.util.CLIgetCommandName
 
- 
 
- 
- 
- 
Field Detail- 
eeService@Autowired protected ubic.gemma.persistence.service.expression.experiment.ExpressionExperimentService eeService 
 - 
auditTrailService@Autowired protected ubic.gemma.persistence.service.common.auditAndSecurity.AuditTrailService auditTrailService 
 - 
auditEventService@Autowired protected ubic.gemma.persistence.service.common.auditAndSecurity.AuditEventService auditEventService 
 - 
expressionExperimentsprotected final Set<ubic.gemma.model.expression.experiment.BioAssaySet> expressionExperiments 
 - 
forceprotected boolean force 
 
- 
 - 
Method Detail- 
getCommandGrouppublic GemmaCLI.CommandGroup getCommandGroup() Description copied from interface:CLIObtain the command group for this CLI.
 - 
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.- Specified by:
- buildOptionsin class- AbstractCLI
 
 - 
findGeneByOfficialSymbolprotected ubic.gemma.model.genome.Gene findGeneByOfficialSymbol(String symbol, ubic.gemma.model.genome.Taxon t) 
 - 
processOptionsprotected void processOptions(org.apache.commons.cli.CommandLine commandLine) throws org.apache.commons.cli.ParseExceptionDescription 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().- Specified by:
- processOptionsin class- AbstractCLI
- 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.
 
 - 
noNeedToRunprotected boolean noNeedToRun(ubic.gemma.model.common.Auditable auditable, Class<? extends ubic.gemma.model.common.auditAndSecurity.eventType.AuditEventType> eventClass)- Parameters:
- auditable- auditable
- eventClass- can be null
- Returns:
- boolean
 
 - 
getTaxonByNameprotected ubic.gemma.model.genome.Taxon getTaxonByName(org.apache.commons.cli.CommandLine commandLine) 
 
- 
 
-