mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-08 06:38:11 +08:00
#81 Combined GATEWAY_ENABLE_ANNOTATIONS and GATEWAY_ENABLE_GENE_SETS flags
This commit is contained in:
@@ -35,8 +35,11 @@ class FileItemSource(ItemSource):
|
||||
def name(self):
|
||||
return self._name or f"Files:{self.base_path}"
|
||||
|
||||
def is_gene_set(self, path:str) -> bool:
|
||||
return ('_gene_sets' in path or '-gene-sets' in path) and path.endswith(self.annotation_file_suffix)
|
||||
def is_gene_set(self, path: str) -> bool:
|
||||
return ("_gene_sets" in path or "-gene-sets" in path) and path.endswith(
|
||||
self.annotation_file_suffix
|
||||
)
|
||||
|
||||
def is_h5ad_file(self, path: str) -> bool:
|
||||
return path.endswith(self.h5ad_suffix) and os.path.isfile(path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user