mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-15 20:57:56 +08:00
This PR contains a refactoring to make adding new features easier. The new features include supporting the tiledb format, and the multi dataset application. The refactoring includes Simplifying the directory structure and files. a class structure to handle annotations (currently one type: AnnotationsLocalFile). a class to handle application configuration a class structure to handle matrix data (currently AnndataAdaptor and CxgAdaptor). CxgAdaptor uses tiledb. Algorithms that were previously dependent on the scanpy anndata object are now generalized to work with an abstract interface. The multi dataset option is not fully supported yet, and so the option to use it is hidden. Use "cli launch --dataroot ..." To access this feature. All combinations of app single dataset/ app multi dataset and AnndataAdaptor/CxgAdaptor work with all the features, such as annotations, ontologies, diffexp.
55 lines
901 B
Python
55 lines
901 B
Python
class FilterError(Exception):
|
|
"""
|
|
Raised when filter is malformed
|
|
"""
|
|
pass
|
|
|
|
|
|
class JSONEncodingValueError(Exception):
|
|
"""
|
|
Raised when data cannot be encoded into json
|
|
"""
|
|
pass
|
|
|
|
|
|
class MimeTypeError(Exception):
|
|
"""
|
|
Raised when incompatible MIME type selected
|
|
"""
|
|
pass
|
|
|
|
|
|
class PrepareError(Exception):
|
|
"""
|
|
Raised when data is misprepared
|
|
"""
|
|
pass
|
|
|
|
|
|
class DatasetAccessError(Exception):
|
|
"""
|
|
Raised when file loaded into a DataAdaptor is misformatted
|
|
"""
|
|
pass
|
|
|
|
|
|
class DisabledFeatureError(Exception):
|
|
"""
|
|
Raised when an attempt to use a disabled feature occurs
|
|
"""
|
|
pass
|
|
|
|
|
|
class AnnotationsError(Exception):
|
|
"""
|
|
Raised when an attempt to use the annotations feature fails
|
|
"""
|
|
pass
|
|
|
|
|
|
class OntologyLoadFailure(Exception):
|
|
"""
|
|
Raised when reading the ontology file fails
|
|
"""
|
|
pass
|