scanpy._settings.ScanpyConfig
- class scanpy._settings.ScanpyConfig(*, verbosity='warning', plot_suffix='', file_format_data='h5ad', file_format_figs='pdf', autosave=False, autoshow=True, writedir='./write/', cachedir='./cache/', datasetdir='./data/', figdir='./figures/', cache_compression='lzf', max_memory=15, n_jobs=1, logfile=None, categories_to_ignore=('N/A', 'dontknow', 'no_gate', '?'), _frameon=True, _vector_friendly=False, _low_resolution_warning=True, n_pcs=50)
Config manager for scanpy.
Attributes
Automatically save figures in
figdir
(defaultFalse
).Automatically show figures if
autosave == False
(defaultTrue
).Compression for
sc.read(..., cache=True)
(default'lzf'
).Directory for cache files (default
'./cache/'
).Categories that are omitted in plotting etc.
Directory for example
datasets
(default'./data/'
).Directory for saving figures (default
'./figures/'
).File format for saving AnnData objects.
File format for saving figures.
The open file to write logs to.
The file path
logfile
was set to.Maximum memory usage in Gigabyte.
Default number of jobs/ CPUs to use for parallel computing.
Global suffix that is appended to figure filenames.
Verbosity level (default
warning
)Directory where the function scanpy.write writes to by default.
Methods
set_figure_params
([scanpy, dpi, dpi_save, ...])Set resolution/size, styling and format of figures.