CN-121979570-A - Method and system for unifying expression of single-file command multi-step parameters and isomorphic linkage of GUI (graphical user interface) based on scope marks
Abstract
The invention belongs to the field of data processing flow or workflow management, in particular to a method and a system for uniformly expressing single-line command multi-step parameters and linking with GUI isomorphism based on a scope mark, comprising the steps of flow definition, command analysis, flow execution and interface generation, wherein in the step of flow definition, a corresponding step scope is declared for at least one executable step in the flow; and a default configuration is associated with each step scope, so that all parameters of the multi-step flow can be structured and expressed by a single command, and zero-intermediary reversible mapping is realized with the GUI form. The invention reduces the learning and maintenance cost and improves the reproducibility and portability.
Inventors
- HAN KAIYUAN
- LIN HAO
- WANG TING
- DENG KEJUN
- DING HUI
Assignees
- 电子科技大学
Dates
- Publication Date
- 20260505
- Application Date
- 20260401
Claims (9)
- 1. A method for unifying expression of single-file command multi-step parameters and isomorphic linkage with a GUI based on scope labels for parameter management of a configurable multi-step process, comprising the steps of: s1, defining a flow, namely in a flow control file: The method comprises the steps of setting up a process, setting up a corresponding step scope for at least one executable step in the process, and associating a default configuration for each step scope, wherein the default configuration comprises at least one of the following types: a) An empty configuration for instructing the step to use its own internal default parameters; b) Inheritance configuration for indicating that the step inherits from the configuration of another designated step scope; c) A control configuration for indicating an execution state of the step; s2, command analysis, namely receiving command line input containing parameters and scope identifiers, identifying a step scope explicitly opened in the command line based on the scope identifiers, binding the parameters positioned after the scope identifiers and before the next scope identifier or the scope ending identifier to the corresponding step scope, and applying default configuration associated with the step scope which is not explicitly opened in the command line in step S1; s3, executing the flow, namely executing each step of the flow in sequence according to the structural configuration mapping obtained by the analysis of S2, wherein each step is operated by using the parameters bound to the step scope; s4, generating an interface, namely generating a parameter configuration form of a corresponding step in the graphical user interface based on the step scope defined in the step S1, wherein input fields of the GUI form correspond to scope identifiers and parameters thereof in a command line one by one.
- 2. The method for unifying the multi-step parameter representation and the isomorphic linkage of a GUI based on a single-line command of a scope markup according to claim 1, wherein in step S1, the step scope and its default configuration are declared by a text grammar including set separators.
- 3. The method for unifying multi-step parameter expressions and isomorphic linkage of a GUI according to claim 2, wherein the text grammar is in the format of @ step name = default:.
- 4. The method for unifying single-line command multi-step parameter expressions in conjunction with GUI isomorphism based on scope markup of claim 1, wherein the inherited configuration is indicated by explicitly writing the name of the inherited step scope.
- 5. The method for univocal command multi-step parameter unification in conjunction with GUI isomorphism linkage of claim 1, wherein the control is configured as a numerical label indicating whether to skip execution of the step.
- 6. The method for unifying single-line command multi-step parameter expressions and GUI isomorphic linkage according to claim 1, wherein the scope identifier is in the format of @ step name, and the scope terminator is in the format of @ step name.
- 7. The method for unifying expression of single-line command multi-step parameters and isomorphic linkage with a GUI based on scope labels according to claim 1, wherein in step S2, homonymic parameters of different levels are processed using first-occurrence priority rules.
- 8. The method for unifying single-line command multi-step parameter expressions and GUI isomorphism linkage based on scope labels of claim 1, wherein in said S4 interface generating step, the user input values received by the GUI form can be converted into equivalent command line parameters containing a scope identifier.
- 9. A system for single-file command multi-step parameter unified expression and GUI isomorphic linkage based on scope labels, comprising: the system comprises a flow definition module, a flow control file, a control module and a control module, wherein the flow definition module is used for declaring a corresponding step scope for at least one executable step in a flow and associating a default configuration for each step scope; the command analysis engine is used for receiving and analyzing command line input, identifying a scope identifier in the command line input, binding command line parameters to a step scope specified by the scope identifier, and applying default configuration associated by the flow definition module for the step scope which is not specified in the command line; And the flow execution engine is used for scheduling and executing each step of the data analysis flow according to the structured configuration map generated by the command analysis engine.
Description
Method and system for unifying expression of single-file command multi-step parameters and isomorphic linkage of GUI (graphical user interface) based on scope marks Technical Field The invention belongs to the field of data processing flow or workflow (pipeline) management, and particularly relates to a method and a system for unifying and linking single-file command multi-step parameter expression and GUI isomorphism based on a scope marker. Background In the field of data processing flows or workflow (pipeline) management, command Line Interfaces (CLIs) and Graphical User Interfaces (GUIs) are often used to configure and execute multi-step flows. However, in the conventional implementation method, the CLI user configures each step through script or command line parameters, and the GUI user defines the interface and parameter mapping of each step tool by means of XML/YAML and other special configuration files, and then the interface and parameter mapping are converted into the underlying commands by the engine. The separation architecture causes the problems of cognitive fracture, increased maintenance points, difficult behavior tracing and the like. Existing schemes typically place the flow structure in an external file, do not natively support multi-step-level expressions inside the command, and thus have difficulty in achieving single-source facts and strictly reversible transformations of GUIs and CLIs. Current common solutions mainly include the following two categories: the GUI framework represented by Galaxy is characterized in that interface fields and parameter mapping are defined by the framework through tool description files such as XML, form data are translated into command line calls by a scheduler in operation, and parameter sets are maintained in independent scripts or configuration files by CLI users. The two are kept synchronous through a translation layer. The scheme has the following defects that two sources of GUI configuration and CLI script are required to be maintained simultaneously, modification cost is high, development burden is increased by writing and maintaining description files such as XML, GUI and CLI are actually two sets of logic, a translation layer is used as intermediate representation, error face and version drift risk are increased, real sources of parameters are distributed at multiple places, and difficulty is brought to audit and tracing. The other class is a CLI framework represented by Nextflow, nextflow, SNAKEMAKE, etc. workflow engines manage parameters mainly through domain-specific language scripts and configuration files. The user can either pass the parameters one by one in the command line or can centralize the parameters by means of a separate configuration file, such as a next flow. Config or YAML parameter file. For example Nextflow supports loading YAML or JSON files with-params-files into multiple parameters to avoid excessive command lines. The method simplifies CLI use, but has the following defects that extra configuration files are introduced, learning cost is increased, a single-row command is difficult to reproduce the complete structure and step details of a pipeline/GUI form based on the configuration files, GUI end operation is not supported originally, GUI service is needed to be provided by relying on third-party adaptation software, and consistency is needed to be manually maintained among DSL, GUI and shell command rows. In summary, the prior art either focuses on the GUI but requires additional programming of the configuration to achieve the CLI join, or focuses on the CLI but requires the user to manage the multi-step parameters themselves or with the aid of external configuration files. The two interfaces of GUI and CLI lack a direct and unified expression mode at the process fine granularity parameter setting level, which causes the following problems: 1) The user needs to master two sets of methods of GUI operation and CLI parameter configuration respectively, and the learning cost is high; 2) The realization of GUI and CLI has logic repetition, and the modification of one flow often needs to update the GUI configuration and the CLI script at the same time, so that the development and maintenance cost is high. Disclosure of Invention The invention aims to provide a method and a system for uniformly expressing single-line command multi-step parameters and linking with GUI isomorphism based on a scope marker, wherein a command line parameter action mechanism is introduced to enable a single command to be capable of structurally expressing all parameters of a multi-step process, zero-intermediary reversible mapping is realized with a GUI form, learning and maintenance cost is reduced, and reproducibility and portability are improved. In order to achieve the above purpose, the invention adopts the following technical scheme: A method for single-file command multi-step parameter unified expression and GUI isomorphic linkage based on sco