Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
See this
`tutorial `__.
"""
try:
import cellbrowser.cellbrowser as cb
except ImportError:
logg.error(
"The package cellbrowser is not installed. "
"Install with 'pip install cellbrowser' and retry."
)
raise
data_dir = str(data_dir)
cb.setDebug(do_debug)
cb.scanpyToCellbrowser(
adata,
data_dir,
data_name,
coordFields=embedding_keys,
metaFields=annot_keys,
clusterField=cluster_field,
nb_marker=nb_marker,
skipMatrix=skip_matrix,
doDebug=None,
)
if html_dir is not None:
html_dir = str(html_dir)
cb.build(data_dir, html_dir, doDebug=None)
if port is not None: