mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 01:08:13 +08:00
GUI UI Elements (#816)
This commit is contained in:
@@ -21,13 +21,13 @@ class EmittingProcess(Process):
|
||||
|
||||
|
||||
class Worker(EmittingProcess):
|
||||
def __init__(self, parent_conn, child_conn, data_file, title, host, port, layout=["umap"], *args, **kwargs):
|
||||
def __init__(self, parent_conn, child_conn, data_file, host, port, title, engine_options, *args, **kwargs):
|
||||
super(Worker, self).__init__(parent_conn, child_conn)
|
||||
self.data_file = data_file
|
||||
self.layout = layout
|
||||
self.title = title
|
||||
self.host = host
|
||||
self.port = port
|
||||
self.title = title
|
||||
self.engine_options = engine_options
|
||||
|
||||
def run(self):
|
||||
super(Worker, self).run()
|
||||
@@ -47,12 +47,12 @@ class Worker(EmittingProcess):
|
||||
# load data
|
||||
try:
|
||||
args = {
|
||||
"layout": self.layout,
|
||||
"max_category_items": 100,
|
||||
"diffexp_lfc_cutoff": 0.01,
|
||||
"obs_names": None,
|
||||
"var_names": None,
|
||||
}
|
||||
args.update(self.engine_options)
|
||||
data = ScanpyEngine(self.data_file, args)
|
||||
server.attach_data(data, self.title)
|
||||
self.emit("ready")
|
||||
|
||||
Reference in New Issue
Block a user