CXG creator and dataset parameters (#1163)

* remove redundant call to make_response (lint)

* initial commit of H5AD to CXG converter

* lint

* PR review suggested comments

* cxg adaptor now understands group metadata

* lint
This commit is contained in:
Bruce Martin
2020-02-21 12:49:45 -07:00
committed by GitHub
parent 907cc634f5
commit d2bae0c4f6
6 changed files with 445 additions and 22 deletions
+12
View File
@@ -2,6 +2,8 @@ from abc import ABCMeta, abstractmethod
from server_timing import Timing as ServerTiming
import numpy as np
import pandas as pd
from os.path import basename, splitext
from server.data_common.fbs.matrix import encode_matrix_fbs
from server.common.constants import Axis, DEFAULT_TOP_N
from server.common.errors import FilterError, JSONEncodingValueError
@@ -97,6 +99,16 @@ class DataAdaptor(metaclass=ABCMeta):
def get_location(self):
pass
def get_about(self):
return None
def get_title(self):
# default to file name
location = self.get_location()
if location.endswith("/"):
location = location[:-1]
return splitext(basename(location))[0]
@abstractmethod
def get_schema(self):
"""