-
Notifications
You must be signed in to change notification settings - Fork 114
Readgroups Endpoint #652
Readgroups Endpoint #652
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,24 @@ service ReadService { | |
// | ||
// `POST /readgroupsets/search` must accept a JSON version of | ||
// `SearchReadGroupSetsRequest` as the post body and will return a JSON | ||
// version of `SearchReadGroupSetsResponse`. Only readgroups that | ||
// match an optionally supplied bioSampleId will be included in the | ||
// response. | ||
// version of `SearchReadGroupSetsResponse`. | ||
rpc SearchReadGroupSets(SearchReadGroupSetsRequest) | ||
returns (SearchReadGroupSetsResponse); | ||
|
||
// Gets a list of `ReadGroup` matching the search criteria. | ||
// | ||
// `POST /readgroups/search` must accept a JSON version of | ||
// `SearchReadGroupsRequest` as the post body and will return a JSON | ||
// version of `SearchReadGroupsResponse`. | ||
rpc SearchReadGroups(SearchReadGroupsRequest) | ||
returns (SearchReadGroupsResponse); | ||
|
||
// Gets a `ReadGroup` by ID. | ||
// | ||
// `GET /readgroups/{read_group_id}` will return a JSON version of | ||
// `ReadGroup`. | ||
rpc GetReadGroup(GetReadGroupRequest) returns (ReadGroup); | ||
|
||
// Gets a `ReadGroupSet` by ID. | ||
// | ||
// `GET /readgroupsets/{read_group_set_id}` will return a JSON version of | ||
|
@@ -60,10 +72,6 @@ message SearchReadGroupSetsRequest { | |
// Only return read group sets with this name (case-sensitive, exact match). | ||
string name = 2; | ||
|
||
// Specifying the id of a BioSample record will return only readgroups | ||
// with the given bioSampleId. | ||
string bio_sample_id = 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; | ||
|
@@ -91,6 +99,52 @@ message GetReadGroupSetRequest { | |
string read_group_set_id = 1; | ||
} | ||
|
||
// ****************** /readgroups *********************/ | ||
|
||
// This request maps to the body of `POST /readgroups/search` as JSON. | ||
|
||
|
||
message SearchReadGroupsRequest { | ||
// The dataset to search (required). | ||
string dataset_id = 1; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should add back in I guess the alternative to this is to add a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to hold off on this change until we work through (and Obtaining all readgroups in a dataset (project) is something In my experience, the command analysis work flow is:
It would simplified the API if we didn't push dataset down to Again, we are up against dataset being an unclear concept. Jerome Kelleher notifications@github.com writes:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I completely agree, but I don't think we have a container hierarchy officially. Attempts to define the formal data model as a hierarchy of containers have failed because of an insistence on the importance of multiple occupancy (e.g., references belong to multiple reference sets, callsets belong to multiple variants sets, etc). Given that servers can make shallow copies of objects I have never understood the necessity of this. Until we actually understand what being "in" a dataset means, we're not going to solve these problems. |
||
|
||
// The read_group_set to search (optional). | ||
string read_group_set_id = 2; | ||
|
||
// Only return read groups with this name (case-sensitive, exact match). | ||
string name = 3; | ||
|
||
// Specifying the id of a BioSample record will return only readgroups | ||
// with the given bioSampleId. | ||
string bio_sample_id = 4; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there background on why bio_sample_id is per- There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Within a single read group set each read group can have its own There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SampleId has always been in ReadGroup. The rationale for this CH Albach notifications@github.com writes:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, that brings up some old memories :) So there are too many examples to pick from, and below are a few snippets with their respective links, which go into more detail:
Hope it helps, |
||
|
||
// Specifies the maximum number of results to return in a single page. | ||
// If unspecified, a system default will be used. | ||
int32 page_size = 5; | ||
|
||
// 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 | ||
// `next_page_token` from the previous response. | ||
string page_token = 6; | ||
} | ||
|
||
// This is the response from `POST /readgroups/search` expressed as JSON. | ||
message SearchReadGroupsResponse { | ||
// The list of matching read groups. | ||
repeated ReadGroupSet read_groups = 1; | ||
|
||
// The continuation token, which is used to page through large result sets. | ||
// Provide this value in a subsequent request to return the next page of | ||
// results. This field will be empty if there aren't any additional results. | ||
string next_page_token = 2; | ||
} | ||
|
||
// This request maps to the URL `GET /readgroups/{read_group_id}`. | ||
message GetReadGroupRequest { | ||
// The ID of the `ReadGroup` to be retrieved. | ||
string read_group_id = 1; | ||
} | ||
|
||
// ****************** /reads ********************* | ||
// This request maps to the body of `POST /reads/search` as JSON. | ||
// | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be updated to include URL endpoints.