This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
/
rna_quantification_service.proto
196 lines (158 loc) · 6.86 KB
/
rna_quantification_service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
syntax = "proto3";
package ga4gh;
import "ga4gh/rna_quantification.proto";
import "google/api/annotations.proto";
service RnaQuantificationService {
// Gets a list of 'RnaQuantificationSet' matching the search criteria.
// 'POST /rnaquantificationsets/search' must accept JSON version of
// 'SearchRnaQuantificationSetRequest' as the post body and will return a JSON
// version of 'SearchRnaQuantificationSetResponse'.
rpc SearchRnaQuantificationSets(SearchRnaQuantificationSetsRequest)
returns (SearchRnaQuantificationSetsResponse) {
option (google.api.http) = {
post: "/v0.6.0a10/rnaquantificationsets/search"
body: "*"
};
};
// Gets a `RnaQuantificationSet` by ID.
// `GET /rnaquantificationsets/{id}` will return a JSON version of
// `RnaQuantificationSet`.
rpc GetRnaQuantificationSet(GetRnaQuantificationSetRequest)
returns (RnaQuantificationSet) {
option (google.api.http) = {
get: "/v0.6.0a10/rnaquantificationsets/{rna_quantification_set_id}"
};
};
// Gets a list of 'RnaQuantification' matching the search criteria.
// 'POST /rnaquantifications/search' must accept JSON version of
// 'SearchRnaQuantificationsRequest' as the post body and will return a JSON
// version of 'SearchRnaQuantificationResponse'.
rpc SearchRnaQuantifications(SearchRnaQuantificationsRequest)
returns (SearchRnaQuantificationsResponse) {
option (google.api.http) = {
post: "/v0.6.0a10/rnaquantifications/search"
body: "*"
};
};
// Gets a `RnaQuantification` by ID.
// `GET /rnaquantifications/{id}` will return a JSON version of
// `RnaQuantification`.
rpc GetRnaQuantification(GetRnaQuantificationRequest)
returns (RnaQuantification) {
option (google.api.http) = {
get: "/v0.6.0a10/rnaquantifications/{rna_quantification_id}"
};
};
// Gets a list of 'ExpressionLevel' matching the search criteria.
// 'POST /expressionlevels/search' must accept JSON version of
// 'SearchExpressionLevelsRequest' as the post body and will return a JSON
// version of 'SearchExpressionLevelsResponse'.
rpc SearchExpressionLevels(SearchExpressionLevelsRequest)
returns (SearchExpressionLevelsResponse) {
option (google.api.http) = {
post: "/v0.6.0a10/expressionlevels/search"
body: "*"
};
};
// Gets a `ExpressionLevel` by ID.
// `GET /expressionlevels/{id}` will return a JSON version of
// `ExpressionLevel`.
rpc GetExpressionLevel(GetExpressionLevelRequest)
returns (ExpressionLevel) {
option (google.api.http) = {
get: "/v0.6.0a10/expressionlevels/{expression_level_id}"
};
};
}
// **************** /rnaquantificationsets/search *******************
// This request maps to the body of 'POST /rnaquantificationsets/search'
// as JSON.
message SearchRnaQuantificationSetsRequest {
// The `Dataset` to search.
string dataset_id = 1;
// Specifies the maximum number of results to return in a single page.
// If unspecified, a system default will be used.
int32 page_size = 2;
// The continuation token, which is used to page through large result sets.
// To get the next page of results, set this parameter to the value of
// 'nextPageToken' from the previous response.
string page_token = 3;
}
// This is the response from 'POST /rnaquantificationsets/search' expressed as JSON.
message SearchRnaQuantificationSetsResponse {
// The list of matching quantification sets.
repeated RnaQuantificationSet rna_quantification_sets = 1;
// The continuation token, which is used to page through large result sets.
// To get the next page of results, set this parameter to the value of
// 'nextPageToken' from the previous response.
string next_page_token = 2;
}
// This request maps to the URL `GET /rnaquantificationsets/{rna_quantification_set_id}`.
message GetRnaQuantificationSetRequest {
// The ID of the `RnaQuantificationSet`.
string rna_quantification_set_id = 1;
}
// **************** /rnaquantifications/search *******************
// This request maps to the body of 'POST /rnaquantifications/search'
// as JSON.
message SearchRnaQuantificationsRequest {
// Return only Rna Quantifications which belong to this set.
// Must be specified.
string rna_quantification_set_id = 1;
// Return only RNA quantifications regarding the specified biosample. Optional.
string biosample_id = 4;
// Specifies the maximum number of results to return in a single page.
// If unspecified, a system default will be used.
int32 page_size = 2;
// The continuation token, which is used to page through large result sets.
// To get the next page of results, set this parameter to the value of
// 'nextPageToken' from the previous response.
string page_token = 3;
}
// This is the response from 'POST /rnaquantifications/search' expressed as JSON.
message SearchRnaQuantificationsResponse {
// The list of matching quantifications.
repeated RnaQuantification rna_quantifications = 1;
// The continuation token, which is used to page through large result sets.
// To get the next page of results, set this parameter to the value of
// 'nextPageToken' from the previous response.
string next_page_token = 2;
}
// This request maps to the URL `GET /rnaquantifications/{rna_quantification_id}`.
message GetRnaQuantificationRequest {
// The ID of the `RnaQuantification`.
string rna_quantification_id = 1;
}
// **************** /expressionlevels/search *******************
// This request maps to the body of 'POST /expressionlevels/search'
// as JSON.
message SearchExpressionLevelsRequest {
// The rnaQuantification to restrict search to.
string rna_quantification_id = 1;
// Only return expressions with any of the names (strict string matching).
repeated string names = 6;
// Only return ExpressionLevel records with expressions exceeding
// this value. (Defaults to 0.0)
float threshold = 3;
// Specifies the maximum number of results to return in a single page.
// If unspecified, a system default will be used.
int32 page_size = 4;
// The continuation token, which is used to page through large result sets.
// To get the next page of results, set this parameter to the value of
// 'nextPageToken' from the previous response.
string page_token = 5;
}
// This is the response from 'POST /expressionlevels/search' expressed as JSON.
message SearchExpressionLevelsResponse {
// The list of matching quantifications.
repeated ExpressionLevel expression_levels = 1;
// The continuation token, which is used to page through large result sets.
// To get the next page of results, set this parameter to the value of
// 'nextPageToken' from the previous response.
string next_page_token = 2;
}
// This request maps to the URL `GET /expressionlevels/{expression_level_id}`.
message GetExpressionLevelRequest {
// The ID of the `ExpressionLevel`.
string expression_level_id = 1;
}