@Path(value="/annotations") public class AnnotationResource extends RestResource
API_KEY_CLIENT_ID, API_KEY_TOKEN, API_KEY_USER, apiClientId, apiToken, apiUser, AUTHENTICATION_PARAM_NAME, hmacHeader, querySessionId, REMOTE_USER_ID, REMOTE_USER_TOKEN, remoteUserId, remoteUserToken, request, sessionId, WOR_PARTNER_TOKEN, worPartnerToken
Constructor and Description |
---|
AnnotationResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
curate(List<DNAFeature> list)
Curate available annotations to include or exclude them from auto-annotation feature
|
javax.ws.rs.core.Response |
getAnnotationsForSequence(FeaturedDNASequence sequence)
Generates annotations for the passed sequence
|
javax.ws.rs.core.Response |
getFeatures(int offset,
int limit,
String sort,
boolean asc,
String filter)
Retrieve list of annotations available.
|
javax.ws.rs.core.Response |
rebuildAnnotations() |
addHeaders, getThisServer, getUserId, getUserId, getWebPartner, log, requireUserId, requireUserIdOrWebPartner, requireWebPartner, respond, respond, respond, respond
@GET @Produces(value="application/json") public javax.ws.rs.core.Response getFeatures(@DefaultValue(value="0") @QueryParam(value="offset") int offset, @DefaultValue(value="15") @QueryParam(value="limit") int limit, @DefaultValue(value="created") @QueryParam(value="sort") String sort, @DefaultValue(value="false") @QueryParam(value="asc") boolean asc, @QueryParam(value="filter") String filter)
offset
- paging startlimit
- maximum number of results to returnsort
- sort fieldasc
- sort order@PUT @Produces(value="application/json") public javax.ws.rs.core.Response curate(List<DNAFeature> list)
list
- list of annotations each with specified curate@POST public javax.ws.rs.core.Response getAnnotationsForSequence(FeaturedDNASequence sequence)
sequence
- sequence wrapper.@PUT @Path(value="/indexes") public javax.ws.rs.core.Response rebuildAnnotations()
Copyright © 2017. All rights reserved.