Skip to content

Commit

Permalink
--curator options for scripts
Browse files Browse the repository at this point in the history
Dashboard colours
  • Loading branch information
kjolley committed Feb 10, 2023
1 parent c3fe94e commit 03b07ea
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 4 deletions.
6 changes: 3 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@

# General information about the project.
project = u'BIGSdb'
copyright = u'2014-2022, Keith Jolley'
copyright = u'2014-2023, Keith Jolley'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '1.39.0'
version = '1.41.0'
# The full version, including alpha/beta/rc tags.
release = '1.39.0'
release = '1.41.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
43 changes: 42 additions & 1 deletion dbase_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1830,6 +1830,7 @@ An example of the format can be seen below. ::
#f_ are standard provenance/primary fields
#e_ are extended attributes with the main field and the attribute separated
# by ||, e.g. e_country||continent.
#eav_ are sparse fields
elements = [
{ #Isolate count.
Expand Down Expand Up @@ -2161,4 +2162,44 @@ The allowed attributes are listed below.
* width

* Width of element - either 1, 2, 3, or 4.


Defining default colours
========================
Sometimes you may wish to maintain consistent colours for specific field
values. You can define colours for values by field using an additional
configuration file called dashboard_colours.toml that can be placed either
in /etc/bigsdb (for global use) or within a database configuration directory.
The format is as follows: ::

'eav_Bexsero_reactivity' = {
'exact match' = '#2ca02c',
'cross-reactive' = '#ff7f0e',
'none' = '#d62728',
'insufficient data' = '#888888',
'No value' = '#aaaaaa'
}
'eav_Trumenba_reactivity' = {
'exact match' = '#2ca02c',
'cross-reactive' = '#ff7f0e',
'none' = '#d62728',
'insufficient data' = '#888888',
'No value' = '#aaaaaa'
}
's_1_clonal_complex' = {
'ST-11 complex' = 'yellow',
'ST-41/44 complex' = 'green'
}
Field names are prefixed as follows:

* f\_ Standard provenance fields, e.g. f_country

* e\_ Extended attribute fields, e.g. e_country||continent (continent attribute linked to country)

* eav\_ :ref:`Sparely-populated fields<sparsely_populated_fields>`, e.g. eav_Bexsero_reactivity

* s\_ Scheme fields, e.g. s_1_clonal_complex (clonal complex field in scheme 1)

This works for pie, doughnut, bar, and pie charts. Note that if you define any values for a field
then any value not defined will be shown as light grey in the visualisation.

8 changes: 8 additions & 0 deletions offline_tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ A full list of options can be found by typing: ::
OPTIONS
-0, --missing
Marks missing loci as provisional allele 0. Sets default word size to 15.
--curator CURATOR ID
Curator id to use for updates. By default -1 is used - there should be an
autotagger account set with this id number.
-d, --database NAME
Database configuration name.
Expand Down Expand Up @@ -297,6 +301,10 @@ A full list of options can be found by typing: ::

-c, --coding_sequences
Only return complete coding sequences.
--curator CURATOR ID
Curator id to use for updates. By default -1 is used - there should be an
autodefiner account set with this id number.

-d, --database NAME
Database configuration name.
Expand Down

0 comments on commit 03b07ea

Please sign in to comment.