geneviewer_palette()
Return the colours of a geneviewer palette, or the names of all palettes.
Besides the d3 colour schemes (e.g. "schemeSet2"), the gene colours can be set by the name of a geneviewer palette, in GC.theme(palette=...) and in the color_scheme of GC.genes(), GC.transcript() and GC.color():
- "okabeIto": 8 colours that stay distinct with colour blindness (Okabe & Ito, also known as the Wong palette), the palette of the "publication" theme.
- "classic": 9 clear colours, the palette of the "classic" theme.
- "vivid": 9 bright colours for dark backgrounds.
- "dark": 11 soft colours for dark backgrounds, the palette of the "dark" theme.
- "vintage": 10 muted colours, the palette of the "vintage" theme.
- "infographic": 15 strong colours, the palette of the "infographic" theme.
- "greys": 6 greys, from dark to light.
- "blues": 7 blues, from dark to light.
Usage
python
from geneviewer import geneviewer_palette
geneviewer_palette(name=None)Arguments
| Argument | Type | Description |
|---|---|---|
name | str, optional | The palette. Default: the names of all palettes. |
Value
list of str: The colours of the palette, or the names of all palettes.
