You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Authorization handled by gateway. HuBMAP-Read group is required for this call.
2215
+
Authentication
2216
+
-------
2217
+
No token is required, however if a token is given it must be valid or an error will be raised. If no token with HuBMAP
2218
+
Read Group access is given, only datasets designated as "published" will be returned
2219
+
2220
+
Query Parameters
2221
+
-------
2222
+
format : string
2223
+
Designates the output format of the returned data. Accepted values are "json" and "tsv". If none provided, by
2224
+
default will return a tsv.
2225
+
group_uuid : string
2226
+
Filters returned datasets by a given group uuid.
2227
+
organ : string
2228
+
Filters returned datasets related to a samples of the given organ. Accepts 2 character organ codes. These codes
2229
+
must match the organ types yaml at https://raw.githubusercontent.com/hubmapconsortium/search-api/test-release/src/search-schema/data/definitions/enums/organ_types.yaml
2230
+
or an error will be raised
2231
+
has_rui_info : string
2232
+
Accepts strings "true" or "false. Any other value will result in an error. If true, only datasets connected to
2233
+
an sample that contain rui info will be returned. If false, only datasets that are NOT connected to samples
2234
+
containing rui info will be returned. By default, no filtering is performed.
2235
+
dataset_status : string
2236
+
Filters results by dataset status. Accepted values are "Published", "QA", and "NEW". If a user only has access
2237
+
to published datasets and enters QA or New, an error will be raised. By default, no filtering is performed
rui_info_where_clause="WHERE NOT EXISTS {MATCH (ds)<-[*]-(ruiSample:Sample) WHERE NOT ruiSample.rui_location IS NULL AND NOT TRIM(ruiSample.rui_location) = ''} MATCH (ds)<-[*]-(ruiSample:Sample)"
956
958
if'dataset_status'inparam_dict:
957
-
iffirst_param:
958
-
dataset_status_query_string=f" WHERE toUpper(ds.status) = '{param_dict['dataset_status'].upper()}'"
959
-
else:
960
-
dataset_status_query_string=f" AND toUpper(ds.status) = '{param_dict['dataset_status'].upper()}'"
959
+
dataset_status_query_string=f" AND toUpper(ds.status) = '{param_dict['dataset_status'].upper()}'"
960
+
ifpublished_only:
961
+
published_only_query_string=f" AND toUpper(ds.status) = 'PUBLISHED'"
0 commit comments