mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-08 18:18:11 +08:00
Applied "Formatting and new enumeration for Cellxgene-gateway" patch
This commit is contained in:
@@ -17,11 +17,12 @@ from cellxgene_gateway.cellxgene_exception import CellxgeneException
|
||||
# There are three kinds of CacheKey:
|
||||
# 1) somedir/dataset.h5ad: a dataset
|
||||
# in this case, pathpart == dataset == 'somedir/dataset.h5ad'
|
||||
# 2) somedir/dataset_annotations/saldaal1-T5HMVBNV.csv : an actual annotaitons file.
|
||||
# in this case, pathpart == 'dataset_annotations/saldaal1-T5HMVBNV.csv', dataset == 'somedir/dataset.h5ad'
|
||||
# 2) somedir/dataset_annotations/my_annotations.csv : an actual annotaitons file.
|
||||
# in this case, pathpart == 'dataset_annotations/my_annotations.csv', dataset == 'somedir/dataset.h5ad'
|
||||
# 3) somedir/dataset_annotations: an annotation directory. The corresponding h5ad must exist, but the directory may not.
|
||||
# in this case, pathpart == 'dataset_annotations', dataset == 'somedir/dataset.h5ad'
|
||||
|
||||
|
||||
class CacheKey:
|
||||
def __init__(self, pathpart, dataset, annotation_file):
|
||||
self.pathpart = pathpart
|
||||
|
||||
Reference in New Issue
Block a user