Class UpdateCellXGeneAccessionsCli
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.EnvironmentAware, CLI
Until permanent IDs were recorded, addCELLxGENEData stored the dataset version ID as the accession, and that
ID changes every time CELLxGENE revises the dataset. This resolves each stored version, current or superseded, to
its dataset through the CELLxGENE curation API and replaces the accession with one holding the permanent ID, with
the stored version kept as its accession version.
🛑 Nothing is written unless -apply is given. Without it, every experiment is resolved and reported, so the
batch output can be reviewed before the real run.
The collection is read from the accession URI, which the loader set to the collection page. Experiments are visited one at a time and each collection is fetched once, so the load on the CELLxGENE API is one request per collection plus, for datasets revised since they were loaded, one request per dataset of that collection. Experiments whose accession already has a version are skipped, so an interrupted run can simply be restarted.
-
Nested Class Summary
Nested classes/interfaces inherited from interface CLI
CLI.CommandGroup -
Field Summary
Fields inherited from class ExpressionExperimentManipulatingCLI
auditEventService, auditTrailService, eeService, entityLocator, entityUrlBuilderFields inherited from class AbstractAutoSeekingCLI
FORCE_OPTIONFields inherited from class AbstractCLI
ABORTED, FAILURE, FAILURE_FROM_ERROR_OBJECTS, log, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildExperimentOptions(org.apache.commons.cli.Options options) A short memorable name for the command that can be used to locate this class.Obtain a short description for this command explaining what it does.protected Collection<ExpressionExperiment> preprocessExpressionExperiments(Collection<ExpressionExperiment> expressionExperiments) protected voidprocessExperimentOptions(org.apache.commons.cli.CommandLine commandLine) protected voidProcess anExpressionExperiment.Methods inherited from class ExpressionExperimentManipulatingCLI
addCellMetadataFileOptions, addDataFileOptions, addDataFileOptions, addDesignFileOptions, addExpressionDataFileOptions, addSingleCellExpressionDataFileOptions, addSingleExperimentAutoOption, addSingleExperimentEnumOption, addSingleExperimentOption, addSingleExperimentOption, buildOptions, doAuthenticatedWork, formatExperiment, getCellMetadataFileOptionValue, getCommandGroup, getDataFileOptionValue, getDataFileOptionValue, getDesignFileOptionValue, getExpressionDataFileOptionValue, getSingleCellExpressionDataFileOptionValue, isAbortOnError, noNeedToRun, postprocessExpressionExperiments, processAllExpressionExperiments, processExpressionExperiments, processOptions, readChangelogEntryFromConsole, refreshExpressionExperimentFromGemmaWeb, refreshExpressionExperimentFromGemmaWebSilently, selectsOwnExperiments, setAbortOnError, setAllIsLazy, setDefaultToAll, setExplicitEEsOnly, setSingleExperimentMode, setUseReferencesIfPossible, toBatchObjectMethods inherited from class AbstractAutoSeekingCLI
addAutoOption, addAutoOption, addErrorObject, addErrorObject, addErrorObject, addForceOption, addForceOption, addLimitingDateOption, addSuccessObject, addSuccessObject, addWarningObject, addWarningObject, getAutoSeekEventType, getLimitingDate, isAutoSeek, isForce, setForceMethods inherited from class AbstractAuthenticatedCLI
afterPropertiesSet, doWork, setAuthenticateAnonymously, setEnvironment, setRequireLoginMethods inherited from class AbstractCLI
abort, addBatchOption, addErrorObject, addErrorObject, addErrorObject, addSuccessObject, addSuccessObject, addThreadsOption, addWarningObject, addWarningObject, allowPositionalArguments, awaitBatchExecutorService, checkStandardOutput, executeCommand, getApplicationContext, getBatchTaskExecutor, getBatchTaskProgressReporter, getCliContext, getCommandAliases, getHelpFooter, getNumThreads, getOptions, getPipelineJobReporter, getUsage, openStandardOutput, promptConfirmationOrAbort, setAllowPositionalArguments, setApplicationContext, setEstimatedMaxTasks, setReportFrequencyMillis
-
Constructor Details
-
UpdateCellXGeneAccessionsCli
public UpdateCellXGeneAccessionsCli()
-
-
Method Details
-
getCommandName
Description copied from interface:CLIA short memorable name for the command that can be used to locate this class.- Specified by:
getCommandNamein interfaceCLI- Overrides:
getCommandNamein classAbstractCLI- Returns:
- name; if null or blank, this will not be available as a shortcut command.
-
getShortDesc
Description copied from interface:CLIObtain a short description for this command explaining what it does.- Specified by:
getShortDescin interfaceCLI- Overrides:
getShortDescin classAbstractCLI
-
buildExperimentOptions
protected void buildExperimentOptions(org.apache.commons.cli.Options options) - Overrides:
buildExperimentOptionsin classExpressionExperimentManipulatingCLI
-
processExperimentOptions
protected void processExperimentOptions(org.apache.commons.cli.CommandLine commandLine) throws org.apache.commons.cli.ParseException - Overrides:
processExperimentOptionsin classExpressionExperimentManipulatingCLI- Throws:
org.apache.commons.cli.ParseException
-
preprocessExpressionExperiments
protected Collection<ExpressionExperiment> preprocessExpressionExperiments(Collection<ExpressionExperiment> expressionExperiments) Description copied from class:ExpressionExperimentManipulatingCLIPreprocess the set ofExpressionExperimentbefore invokingExpressionExperimentManipulatingCLI.processExpressionExperiments(Collection)orExpressionExperimentManipulatingCLI.processExpressionExperiment(ExpressionExperiment).This can be an opportunity to filter or modify the set of experiments.
- Overrides:
preprocessExpressionExperimentsin classExpressionExperimentManipulatingCLI
-
processExpressionExperiment
Description copied from class:ExpressionExperimentManipulatingCLIProcess anExpressionExperiment.- Overrides:
processExpressionExperimentin classExpressionExperimentManipulatingCLI- Throws:
IOException
-