save_enzyme_collection
Save a set of enzymes as a named collection in your Enzyme Collections panel, so a scan that found the enzymes worth keeping ends by keeping them instead of asking you to retype the list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | what to call the collection, as it will read in the panel. | |
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| enzymes | Yes | the enzyme names to save — wire these from a scan (enzyme_cut_counts, digest_fragments) or from enzyme_collection rather than typing them, so the set is one the engine has already resolved. | |
| replace | No | overwrite a collection that already has this name. Left false, a name clash refuses and says which collection it would have replaced. | |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. | |
| activate | No | make it the active collection, which is what the panel does when you create one — every enzyme parameter that is left unset then scopes to it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | how many enzymes it holds | |
| active | Yes | whether this collection is now the one an unset enzyme parameter resolves to | |
| created | Yes | true for a new collection, false when an existing one of the same name was replaced | |
| enzymes | Yes | the names as saved, de-duplicated in the order given — wireable straight into a scan | |
| collection | Yes | the name it was saved under |