digichem database

Reference

usage: digichem database [-h] [-t] [-u] [-m] file {search,s,srh,count,c,cnt,insert,i,ins,slice,S,sli,delete,d,del,recover,r,rec} ...

Positional Arguments

file

the Silico database file to use. If not specified the default location is used

program

Possible choices: search, s, srh, count, c, cnt, insert, i, ins, slice, S, sli, delete, d, del, recover, r, rec

Named Arguments

-t, --tinydb

tinydb format

Default: “auto”

-u, --unqlite

unqlite format

-m, --mongita

mongo on-file format

Sub-commands

count (c, cnt)

Count the number of matching records in a database

digichem database count [-h] [-I] [-V] [--log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL,OFF}] [-S [SETTING ...]] [--config_files [CONFIG_FILES ...]] [--homo [CRITERIA ...]] [--lumo [CRITERIA ...]] [--beta-homo [CRITERIA ...]]
                        [--beta-lumo [CRITERIA ...]] [--dest [CRITERIA ...]] [--singlet-energy [CRITERIA ...]] [--singlet-wavelength [CRITERIA ...]] [--triplet-energy [CRITERIA ...]] [--triplet-wavelength [CRITERIA ...]]
                        [--structure [CRITERIA ...]] [--substructure [CRITERIA ...]] [-N]
                        [criteria ...]
Positional Arguments
criteria

a number of things to search for, consisting of a list of fields, a comparison operator, and something to match against

Default: []

Named Arguments
--homo
--lumo
--beta-homo
--beta-lumo
--dest
--singlet-energy
--singlet-wavelength
--triplet-energy
--triplet-wavelength
--structure
--substructure
-N, --no-parse

disable parsing of raw results into internal result objects, this option will increase execution speed but will disable some advanced filter options

Default: False

General Options

General options that control various aspects of silico

-I, --interactive

Run this command interactively

Default: False

-V, --verbose

Increase verbosity, stack with itself to further increase verbosity (each time this option is given, log_level is increased by one stage)

--log_level

Possible choices: DEBUG, INFO, WARNING, ERROR, CRITICAL, OFF

The level of messages to print

-S, --setting

Set a config option to a value. Options of this type are parsed as if they were a config file (in yaml format) and are then used to set corresponding options, eg -S “absorption_graph: {fwhm: 100}”

Default: []

--config_files

An additional config file to read from. See the master config file for possible config options. Note that the master config file (at silico/data/config/silico.yaml) and user config file (at ~/.config/silico/silico.yaml) are always read automatically and do not need to be specified here. Multiple files may be given and will be processed in the order specified (the last having highest priority)

Default: []

Digichem v6.6.3. Written by Oliver S. Lee. Last updated 08/11/2024.

insert (i, ins)

Insert data into a Silico database.

digichem database insert [-h] [-I] [-V] [--log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL,OFF}] [-S [SETTING ...]] [--config_files [CONFIG_FILES ...]] [--force] [-C [CALC ...]] [-m [MERGE ...]] [-N [NUM_CPU]]
                         [--format {auto,log,yaml,json}]
                         [log_files ...]
Positional Arguments
log_files

a (number of) calculation result file(s) (.log) to extract results from

Default: []

Named Arguments
--force

Force writing to an internal Silico database file.

Default: False

-C, --calc, --calculation

specify a number of log files that all correspond to the same calculation

Default: []

-m, --merge

a (number of) calculation result file(s) (.log) from which individual results should be merged together, presenting a summary of the merged data rather than each calculation separately

Default: []

-N, --num_cpu

the number of CPUs to use in parallel to parse given log_files, defaults to the number of CPUs on the system

Default: 12

--format

Possible choices: auto, log, yaml, json

the format of the log files to parse, the default is to intelligently guess for each file

Default: “auto”

General Options

General options that control various aspects of silico

-I, --interactive

Run this command interactively

Default: False

-V, --verbose

Increase verbosity, stack with itself to further increase verbosity (each time this option is given, log_level is increased by one stage)

--log_level

Possible choices: DEBUG, INFO, WARNING, ERROR, CRITICAL, OFF

The level of messages to print

-S, --setting

Set a config option to a value. Options of this type are parsed as if they were a config file (in yaml format) and are then used to set corresponding options, eg -S “absorption_graph: {fwhm: 100}”

Default: []

--config_files

An additional config file to read from. See the master config file for possible config options. Note that the master config file (at silico/data/config/silico.yaml) and user config file (at ~/.config/silico/silico.yaml) are always read automatically and do not need to be specified here. Multiple files may be given and will be processed in the order specified (the last having highest priority)

Default: []

Digichem v6.6.3. Written by Oliver S. Lee. Last updated 08/11/2024.

slice (S, sli)

Take a slice (a sub-section) of a DB and insert into another DB

digichem database slice [-h] [-I] [-V] [--log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL,OFF}] [-S [SETTING ...]] [--config_files [CONFIG_FILES ...]] [-t] [-u] [-m] [--force] [--homo [CRITERIA ...]] [--lumo [CRITERIA ...]]
                        [--beta-homo [CRITERIA ...]] [--beta-lumo [CRITERIA ...]] [--dest [CRITERIA ...]] [--singlet-energy [CRITERIA ...]] [--singlet-wavelength [CRITERIA ...]] [--triplet-energy [CRITERIA ...]]
                        [--triplet-wavelength [CRITERIA ...]] [--structure [CRITERIA ...]] [--substructure [CRITERIA ...]] [-N]
                        out_file [criteria ...]
Positional Arguments
out_file

the database file to insert into

criteria

a number of things to search for, consisting of a list of fields, a comparison operator, and something to match against

Default: []

Named Arguments
-t, --tinydb

tinydb format

Default: “auto”

-u, --unqlite

unqlite format

-m, --mongita

mongo on-file format

--force

Force writing to an internal Silico database file.

Default: False

--homo
--lumo
--beta-homo
--beta-lumo
--dest
--singlet-energy
--singlet-wavelength
--triplet-energy
--triplet-wavelength
--structure
--substructure
-N, --no-parse

disable parsing of raw results into internal result objects, this option will increase execution speed but will disable some advanced filter options

Default: False

General Options

General options that control various aspects of silico

-I, --interactive

Run this command interactively

Default: False

-V, --verbose

Increase verbosity, stack with itself to further increase verbosity (each time this option is given, log_level is increased by one stage)

--log_level

Possible choices: DEBUG, INFO, WARNING, ERROR, CRITICAL, OFF

The level of messages to print

-S, --setting

Set a config option to a value. Options of this type are parsed as if they were a config file (in yaml format) and are then used to set corresponding options, eg -S “absorption_graph: {fwhm: 100}”

Default: []

--config_files

An additional config file to read from. See the master config file for possible config options. Note that the master config file (at silico/data/config/silico.yaml) and user config file (at ~/.config/silico/silico.yaml) are always read automatically and do not need to be specified here. Multiple files may be given and will be processed in the order specified (the last having highest priority)

Default: []

Digichem v6.6.3. Written by Oliver S. Lee. Last updated 08/11/2024.

delete (d, del)

Delete data from a Silico database.

digichem database delete [-h] [-I] [-V] [--log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL,OFF}] [-S [SETTING ...]] [--config_files [CONFIG_FILES ...]] [-s [SEARCH ...]] [--force] [ids ...]
Positional Arguments
ids

a number of IDs to delete from the DB

Named Arguments
-s, --search

a number of things to search for, consisting of a list of fields, a comparison operator, and something to match against

Default: []

--force

Force writing to an internal Silico database file.

Default: False

General Options

General options that control various aspects of silico

-I, --interactive

Run this command interactively

Default: False

-V, --verbose

Increase verbosity, stack with itself to further increase verbosity (each time this option is given, log_level is increased by one stage)

--log_level

Possible choices: DEBUG, INFO, WARNING, ERROR, CRITICAL, OFF

The level of messages to print

-S, --setting

Set a config option to a value. Options of this type are parsed as if they were a config file (in yaml format) and are then used to set corresponding options, eg -S “absorption_graph: {fwhm: 100}”

Default: []

--config_files

An additional config file to read from. See the master config file for possible config options. Note that the master config file (at silico/data/config/silico.yaml) and user config file (at ~/.config/silico/silico.yaml) are always read automatically and do not need to be specified here. Multiple files may be given and will be processed in the order specified (the last having highest priority)

Default: []

Digichem v6.6.3. Written by Oliver S. Lee. Last updated 08/11/2024.

recover (r, rec)

Insert data from a temporary cache into a Silico database.

digichem database recover [-h] [-I] [-V] [--log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL,OFF}] [-S [SETTING ...]] [--config_files [CONFIG_FILES ...]] [--force] [-C [CALC ...]] [-m [MERGE ...]] [-N [NUM_CPU]]
                          [--format {auto,log,yaml,json}]
                          [log_files ...]
Positional Arguments
log_files

a (number of) calculation result file(s) (.log) to extract results from

Default: []

Named Arguments
--force

Force writing to an internal Silico database file.

Default: False

-C, --calc, --calculation

specify a number of log files that all correspond to the same calculation

Default: []

-m, --merge

a (number of) calculation result file(s) (.log) from which individual results should be merged together, presenting a summary of the merged data rather than each calculation separately

Default: []

-N, --num_cpu

the number of CPUs to use in parallel to parse given log_files, defaults to the number of CPUs on the system

Default: 12

--format

Possible choices: auto, log, yaml, json

the format of the log files to parse, the default is to intelligently guess for each file

Default: “auto”

General Options

General options that control various aspects of silico

-I, --interactive

Run this command interactively

Default: False

-V, --verbose

Increase verbosity, stack with itself to further increase verbosity (each time this option is given, log_level is increased by one stage)

--log_level

Possible choices: DEBUG, INFO, WARNING, ERROR, CRITICAL, OFF

The level of messages to print

-S, --setting

Set a config option to a value. Options of this type are parsed as if they were a config file (in yaml format) and are then used to set corresponding options, eg -S “absorption_graph: {fwhm: 100}”

Default: []

--config_files

An additional config file to read from. See the master config file for possible config options. Note that the master config file (at silico/data/config/silico.yaml) and user config file (at ~/.config/silico/silico.yaml) are always read automatically and do not need to be specified here. Multiple files may be given and will be processed in the order specified (the last having highest priority)

Default: []

Digichem v6.6.3. Written by Oliver S. Lee. Last updated 08/11/2024.