mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 13:28:11 +08:00
Move computation options to app (#386)
no need to import scanpy engine for CLI help so speeds up time response
This commit is contained in:
@@ -65,15 +65,6 @@ class ScanpyEngine(CXGDriver):
|
||||
raise TypeError(f"Annotations of type {curr_axis[ann].dtype} are unsupported by cellxgene.")
|
||||
self.schema["annotations"][ax].append(ann_schema)
|
||||
|
||||
@classmethod
|
||||
def add_to_parser(cls, subparser):
|
||||
computation_group = subparser.add_argument_group('computational arguments')
|
||||
# TODO these choices should be generated from the actual available methods see GH issue #94
|
||||
computation_group.add_argument("-l", "--layout", choices=["umap", "tsne"], default="umap",
|
||||
help="Algorithm to use for graph layout")
|
||||
computation_group.add_argument("-d", "--diffexp", choices=["ttest"], default="ttest",
|
||||
help="Algorithm to used to calculate differential expression")
|
||||
|
||||
@staticmethod
|
||||
def _load_data(data):
|
||||
# See https://scanpy.readthedocs.io/en/latest/api/scanpy.api.read.html
|
||||
|
||||
Reference in New Issue
Block a user