skip to main content
Roche logo
3.5.14.1
utility makeSetupScript
The “utility makeSetupScript” command is basically a means of making a backup of the setup of your currently open Project in the CLI (see section 3.4.17.3 for the usage statement). If you provide the command with an “‑outputFile” option, the CLI writes a script to that file that contains all the commands that you would have to input to doAmplicon to regenerate your Project setup.
3.5.14.2
utility clone
The “utility clone” command is used to create an exact copy of a Project setup to another location (see section 3.4.17.4 for the usage statement). The command is used in the context of an open Project in the CLI, and you provide the location where you want the clone to be created (e.g., “utility clone /data/clonedProjectDirectory”). The command copies the Project directory structure and objects with their associations to the new location, but does not copy the Read Data Sets (unless specifically called for by setting the “‑copyReadData” parameter to “true”).
A “‑scriptOnly” option can be used to prevent the actual execution of the clone operation and instead write out the commands necessary to carry out the cloning process to a script that you can edit and use later as input to a doAmplicon command (this is similar to running the “utility makeSetupScript” command, except that the Read Data Sets are not copied by default). The clone operation uses the state of the open Project at the time the command is run, so any unsaved changes involving the Project setup will be included in the clone operation. The cloning operation does not include any computed results for the Project.
3.5.14.3
list
Sometimes you may want to export only a specific subset of the Project setup data rather than backing up or cloning an entire Project. Examples may be that you want to reuse some Reference Sequences from one Project in a new Project; or that you want to recycle some Amplicons and/or Variants associated with those Reference Sequences, but you don’t want to import any Samples or Sample – Amplicon relationships (e.g. because your new Project will have its own Samples, different from the ones of the existing Project). In these cases you can use the “list” command to output tabular data that is suitable to import into a new Project (see section 3.4.7 for the usage statement). The tables returned by the list command can have their format set to tab-separated values (tsv) or comma-separated values (csv). Using the “‑outputFile” option, you can specify what file the table should be written to or you can allow the table to be written to standard output.
To import a list table into a new Project, use the corresponding create command for the data type in the file, and either provide the table file using the “‑file” parameter or the contents of the file as part of a “here” format file (e.g., “create ref ‑file listRefTable.tsv”, where listRefTable.tsv was previously created from another project via “list ref ‑outputFile listRefTable.tsv”).