FlowCytometrySPoTAsCuratorApi¶
All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| GetFlowCytometryAsCurator | GET /api/v1/as-curator/flow-cytometries/{id} | Retrieve a single sample flow cytometry by ID (accession) |
| GetFlowCytometryByVersionAsCurator | GET /api/v1/as-curator/flow-cytometries/{id}/versions/{version} | Retrieve a single sample flow cytometry by ID (accession) |
| GetFlowCytometryDataAsCurator | GET /api/v1/as-curator/flow-cytometries | Retrieve multiple flow cytometry data and metadata objects |
| GetFlowCytometryGroupAsCurator | GET /api/v1/as-curator/flow-cytometries/group/{id} | Retrieve a single group object by ID (accession) |
| GetFlowCytometryGroupByRunAsCurator | GET /api/v1/as-curator/flow-cytometries/group/by/run/{id} | Retrieve a single group object by run ID (accession) |
| GetFlowCytometryVersionsAsCurator | GET /api/v1/as-curator/flow-cytometries/{id}/versions | Retrieve a list of object versions by ID |
| SearchFlowCytometryGroupsAsCurator | GET /api/v1/as-curator/flow-cytometries/group | Retrieve groups that match a query |
| SearchFlowCytometryRunsAsCurator | GET /api/v1/as-curator/flow-cytometries/runs/by/group/{id} | Retrieve run objects related to the given group |
| UpdateFlowCytometryAsCurator | PATCH /api/v1/as-curator/flow-cytometries/{id} | Update object metadata |
GetFlowCytometryAsCurator¶
GetFlowCytometryAsCurator200Response GetFlowCytometryAsCurator(id, response_format = var.response_format, returned_metadata_fields = var.returned_metadata_fields)
Retrieve a single sample flow cytometry by ID (accession)
Example¶
library(odmApi)
# Retrieve a single sample flow cytometry by ID (accession)
#
# prepare function argument(s)
var_id <- "id_example" # character | Unique identifier (accession) of the object.
var_response_format <- ResponseFormat$new() # ResponseFormat | Supply this parameter with the value `term_id` as part of the query to return extended information including IDs for values and dictionaries. (Optional)
var_returned_metadata_fields <- "returned_metadata_fields_example" # character | The parameter defines amount of metadata attributes to return: 1. `minimal_data` - return metadata attributes according to the default template. 2. `extended_data_included` - return metadata attributes according to applied template, if object doesn’t have applied template, default template will be used. This is the default for User endpoints. 3. `original_data_included` - return all metadata attributes with values and null attributes, if they are present in the applied template. This is the default for Curator endpoints. (Optional)
api_instance <- FlowCytometrySPoTAsCuratorApi$new()
# Configure API key authorization: Access-token
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure API key authorization: Genestack-API-Token
# api_instance$api_client$api_keys["Genestack-API-Token"] <- Sys.getenv("API_KEY")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$GetFlowCytometryAsCurator(var_id, response_format = var_response_format, returned_metadata_fields = var_returned_metadata_fieldsdata_file = "result.txt")
result <- api_instance$GetFlowCytometryAsCurator(var_id, response_format = var_response_format, returned_metadata_fields = var_returned_metadata_fields)
dput(result)
Parameters¶
| Name | Type | Description | Notes |
|---|---|---|---|
| id | character | Unique identifier (accession) of the object. | |
| response_format | ResponseFormat | Supply this parameter with the value `term_id` as part of the query to return extended information including IDs for values and dictionaries. | [optional] |
| returned_metadata_fields | Enum [minimal_data, extended_data_included, original_data_included] | The parameter defines amount of metadata attributes to return: 1. `minimal_data` - return metadata attributes according to the default template. 2. `extended_data_included` - return metadata attributes according to applied template, if object doesn’t have applied template, default template will be used. This is the default for User endpoints. 3. `original_data_included` - return all metadata attributes with values and null attributes, if they are present in the applied template. This is the default for Curator endpoints. | [optional] |
Return type¶
GetFlowCytometryAsCurator200Response
Authorization¶
Access-token, Genestack-API-Token
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/json
HTTP response details¶
| Status code | Description | Response headers |
|---|---|---|
| 200 | The request was successful. The returned value is the object. | - |
| 400 | The supplied object ID is invalid. | - |
| 401 | User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI Profile page). | - |
| 404 | No object exists with the given ID. | - |
| 500 | An internal server error occurred. This indicates an unexpected failure in the Genestack system, please file a bug report to support@genestack.com, including the error details. | - |
GetFlowCytometryByVersionAsCurator¶
object GetFlowCytometryByVersionAsCurator(id, version, response_format = var.response_format, returned_metadata_fields = var.returned_metadata_fields)
Retrieve a single sample flow cytometry by ID (accession)
Example¶
library(odmApi)
# Retrieve a single sample flow cytometry by ID (accession)
#
# prepare function argument(s)
var_id <- "id_example" # character | Unique identifier (accession) of the object.
var_version <- "version_example" # character | Unique version of the object.
var_response_format <- ResponseFormat$new() # ResponseFormat | Supply this parameter with the value `term_id` as part of the query to return extended information including IDs for values and dictionaries. (Optional)
var_returned_metadata_fields <- "returned_metadata_fields_example" # character | The parameter defines amount of metadata attributes to return: 1. `minimal_data` - return metadata attributes according to the default template. 2. `extended_data_included` - return metadata attributes according to applied template, if object doesn’t have applied template, default template will be used. This is the default for User endpoints. 3. `original_data_included` - return all metadata attributes with values and null attributes, if they are present in the applied template. This is the default for Curator endpoints. (Optional)
api_instance <- FlowCytometrySPoTAsCuratorApi$new()
# Configure API key authorization: Access-token
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure API key authorization: Genestack-API-Token
# api_instance$api_client$api_keys["Genestack-API-Token"] <- Sys.getenv("API_KEY")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$GetFlowCytometryByVersionAsCurator(var_id, var_version, response_format = var_response_format, returned_metadata_fields = var_returned_metadata_fieldsdata_file = "result.txt")
result <- api_instance$GetFlowCytometryByVersionAsCurator(var_id, var_version, response_format = var_response_format, returned_metadata_fields = var_returned_metadata_fields)
dput(result)
Parameters¶
| Name | Type | Description | Notes |
|---|---|---|---|
| id | character | Unique identifier (accession) of the object. | |
| version | character | Unique version of the object. | |
| response_format | ResponseFormat | Supply this parameter with the value `term_id` as part of the query to return extended information including IDs for values and dictionaries. | [optional] |
| returned_metadata_fields | Enum [minimal_data, extended_data_included, original_data_included] | The parameter defines amount of metadata attributes to return: 1. `minimal_data` - return metadata attributes according to the default template. 2. `extended_data_included` - return metadata attributes according to applied template, if object doesn’t have applied template, default template will be used. This is the default for User endpoints. 3. `original_data_included` - return all metadata attributes with values and null attributes, if they are present in the applied template. This is the default for Curator endpoints. | [optional] |
Return type¶
object
Authorization¶
Access-token, Genestack-API-Token
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/json
HTTP response details¶
| Status code | Description | Response headers |
|---|---|---|
| 200 | The request was successful. The returned value is the object. | - |
| 400 | The supplied object ID is invalid. | - |
| 401 | User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI Profile page). | - |
| 404 | No object exists with the given ID. | - |
| 500 | An internal server error occurred. This indicates an unexpected failure in the Genestack system, please file a bug report to support@genestack.com, including the error details. | - |
GetFlowCytometryDataAsCurator¶
FlowCytometryResponse GetFlowCytometryDataAsCurator(response_format = var.response_format, filter = var.filter, query = var.query, search_specific_terms = var.search_specific_terms, run_filter = var.run_filter, run_source_filter = var.run_source_filter, readout_type = var.readout_type, population = var.population, marker = var.marker, min_value = var.min_value, use_versions = var.use_versions, returned_metadata_fields = var.returned_metadata_fields, page_limit = var.page_limit, cursor = var.cursor)
Retrieve multiple flow cytometry data and metadata objects
Retrieve all flow cytometry data and metadata objects that match a query. ## Metadata full-text queries Single words can be supplied as is, otherwise use speech marks (\") to quote queries that include whitespace. Speech marks and backslash characters in the query need to be escaped with a backslash (\\). ## Metadata filters Metadata filters are key-value pairs joined by an operator. The = operator matches literal values/string. The != operator matches anything except the literal value/string. The < or > operators match numerical results that are less or greater than the supplied value. Strings containing whitespace need to be quoted with (\"). ## Combinations Metadata queries/filters for the same parameter can be combined with &&, AND, || and OR operators, using white-space to separate out the terms and operators. Parentheses ( ) can be used for complex expressions. ## Versioning Specific versions of omics data files (eg. GCT) can be queried via the useVersions parameter. Different versions of an omics data file are associated via their CHAIN_ID metadata value. This CHAIN_ID can be supplied to the useVersions parameter along with the version number or specific omics data file accessions to include them in the query. If nothing is supplied to the useVersions parameter then only the active version (which is usually the last one imported) is queried. This acts as a filter before the rest of the query is carried out. Example usage: useVersions=* (query all versions, including those without CHAIN_IDs) useVersions=v2 (query the second version. If there is no second version then the data file is not queried) useVersions=v1,v0 (query the first version and any data files without CHAIN_IDs(v0) ) useVersions=GSVC002:v3 (for omics data files with a CHAIN_ID of GSCV002 query the third version) useVersions=GSVC002:GSF00494,GSF000496 (for omics data files with a CHAIN_ID of GSCV002 query only the specific accessions GSF00494 and GSF000496) Rules for multiple CHAIN_IDs can be supplied to the parameter using the ; separator. ## Paging For performance reasons this endpoint returns results in \"pages\" of limited size together with a cursor tag. To retrieve the next page of results please supply this cursor tag to resume the query from your previous result and get the next page. If there are no more results you will just retrieve an empty result.
Example¶
library(odmApi)
# Retrieve multiple flow cytometry data and metadata objects
#
# prepare function argument(s)
var_response_format <- ResponseFormat$new() # ResponseFormat | Supply this parameter with the value `term_id` as part of the query to return extended information including IDs for values and dictionaries. (Optional)
var_filter <- "filter_example" # character | Filter by flow cytometry metadata (key-value metadata pair(s)). E.g. `Organ=blood`. (Optional)
var_query <- "query_example" # character | Search for flow cytometry objects via a full text query over all flow cytometry metadata. Queries matching dictionary terms are automatically expanded to include synonyms. (Optional)
var_search_specific_terms <- "search_specific_terms_example" # character | If the full-text query term is present in an ODM dictionary, enabling this parameter will modify the query to include child terms of the full-text query. For example, the search query \"Body fluid\" can be expanded to include the term \"Blood\" (a child term of \"Body fluid\") so files containing either \"Body fluid\" or \"Blood\" in their metadata will be returned in the search results. The parent-child relationship is defined by the key \"broaders\" or \"subClassOf\" in the dictionary. If the full query term is not present in a dictionary then this parameter has no effect. (Optional)
var_run_filter <- c("inner_example") # array[character] | Autogenerated numeric ID that identifies a set of rows related to one run and is used to link data from the run to a sample. Multiple values can be provided as a list. (Optional)
var_run_source_filter <- c("inner_example") # array[character] | Sample name from the file which allows retrieval of all the rows related to the sample. Multiple values can be provided as a list. (Optional)
var_readout_type <- "readout_type_example" # character | Required value of \"Readout type\" column. E.g.: `Count`, `Median` (Optional)
var_population <- "population_example" # character | Value of \"Cell Population\" column. E.g.: `\"total cells\"`, `CD45+,live/CD45+`, `CD3+`. Note that if this value contains special characters like `/` which is used as a URI path separator, such characters should be escaped manually before sending request. For example, `/` should be escaped as `%2F`. (Optional)
var_marker <- "marker_example" # character | Marker value. E.g.: `PD1`, `BV786` (Optional)
var_min_value <- 3.4 # numeric | Minimum threshold (inclusive) for returned expression values. (Optional)
var_use_versions <- "use_versions_example" # character | Specify which versions of omics data files are used in the query. By default the active version is used. See Versioning above. Syntax: \\* or `v<version number>` or `<CHAIN_ID>`:`v<version number>` or `<CHAIN_ID>`:`<accession1,accession2,..>` (Optional)
var_returned_metadata_fields <- "returned_metadata_fields_example" # character | The parameter defines amount of metadata attributes to return: 1. `minimal_data` - return metadata attributes according to the default template. 2. `extended_data_included` - return metadata attributes according to applied template, if object doesn’t have applied template, default template will be used. This is the default for User endpoints. 3. `original_data_included` - return all metadata attributes with values and null attributes, if they are present in the applied template. This is the default for Curator endpoints. (Optional)
var_page_limit <- 56 # integer | Maximum number of results to return per page (see Paging above). This value must be between 0 and 2000 (inclusive). The default is 2000. (Optional)
var_cursor <- "cursor_example" # character | The page tag to resume results from (see paging above). (Optional)
api_instance <- FlowCytometrySPoTAsCuratorApi$new()
# Configure API key authorization: Access-token
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure API key authorization: Genestack-API-Token
# api_instance$api_client$api_keys["Genestack-API-Token"] <- Sys.getenv("API_KEY")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$GetFlowCytometryDataAsCurator(response_format = var_response_format, filter = var_filter, query = var_query, search_specific_terms = var_search_specific_terms, run_filter = var_run_filter, run_source_filter = var_run_source_filter, readout_type = var_readout_type, population = var_population, marker = var_marker, min_value = var_min_value, use_versions = var_use_versions, returned_metadata_fields = var_returned_metadata_fields, page_limit = var_page_limit, cursor = var_cursordata_file = "result.txt")
result <- api_instance$GetFlowCytometryDataAsCurator(response_format = var_response_format, filter = var_filter, query = var_query, search_specific_terms = var_search_specific_terms, run_filter = var_run_filter, run_source_filter = var_run_source_filter, readout_type = var_readout_type, population = var_population, marker = var_marker, min_value = var_min_value, use_versions = var_use_versions, returned_metadata_fields = var_returned_metadata_fields, page_limit = var_page_limit, cursor = var_cursor)
dput(result)
Parameters¶
| Name | Type | Description | Notes |
|---|---|---|---|
| response_format | ResponseFormat | Supply this parameter with the value `term_id` as part of the query to return extended information including IDs for values and dictionaries. | [optional] |
| filter | character | Filter by flow cytometry metadata (key-value metadata pair(s)). E.g. `Organ=blood`. | [optional] |
| query | character | Search for flow cytometry objects via a full text query over all flow cytometry metadata. Queries matching dictionary terms are automatically expanded to include synonyms. | [optional] |
| search_specific_terms | character | If the full-text query term is present in an ODM dictionary, enabling this parameter will modify the query to include child terms of the full-text query. For example, the search query \"Body fluid\" can be expanded to include the term \"Blood\" (a child term of \"Body fluid\") so files containing either \"Body fluid\" or \"Blood\" in their metadata will be returned in the search results. The parent-child relationship is defined by the key \"broaders\" or \"subClassOf\" in the dictionary. If the full query term is not present in a dictionary then this parameter has no effect. | [optional] |
| run_filter | list( character ) | Autogenerated numeric ID that identifies a set of rows related to one run and is used to link data from the run to a sample. Multiple values can be provided as a list. | [optional] |
| run_source_filter | list( character ) | Sample name from the file which allows retrieval of all the rows related to the sample. Multiple values can be provided as a list. | [optional] |
| readout_type | character | Required value of \"Readout type\" column. E.g.: `Count`, `Median` | [optional] |
| population | character | Value of \"Cell Population\" column. E.g.: `\"total cells\"`, `CD45+,live/CD45+`, `CD3+`. Note that if this value contains special characters like `/` which is used as a URI path separator, such characters should be escaped manually before sending request. For example, `/` should be escaped as `%2F`. | [optional] |
| marker | character | Marker value. E.g.: `PD1`, `BV786` | [optional] |
| min_value | numeric | Minimum threshold (inclusive) for returned expression values. | [optional] |
| use_versions | character | Specify which versions of omics data files are used in the query. By default the active version is used. See Versioning above. Syntax: \* or `v<version number>` or `<CHAIN_ID>`:`v<version number>` or `<CHAIN_ID>`:`<accession1,accession2,..>` | [optional] |
| returned_metadata_fields | Enum [minimal_data, extended_data_included, original_data_included] | The parameter defines amount of metadata attributes to return: 1. `minimal_data` - return metadata attributes according to the default template. 2. `extended_data_included` - return metadata attributes according to applied template, if object doesn’t have applied template, default template will be used. This is the default for User endpoints. 3. `original_data_included` - return all metadata attributes with values and null attributes, if they are present in the applied template. This is the default for Curator endpoints. | [optional] |
| page_limit | integer | Maximum number of results to return per page (see Paging above). This value must be between 0 and 2000 (inclusive). The default is 2000. | [optional] |
| cursor | character | The page tag to resume results from (see paging above). | [optional] |
Return type¶
Authorization¶
Access-token, Genestack-API-Token
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/json
HTTP response details¶
| Status code | Description | Response headers |
|---|---|---|
| 200 | Retrieved Flow Cytometry data. | - |
| 400 | Flow Cytometry data cannot be retrieved. | - |
| 401 | User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI Profile page). | - |
| 404 | No object exists with the given ID. | - |
| 500 | An internal server error occurred. This indicates an unexpected failure in the Genestack system, please file a bug report to support@genestack.com, including the error details. | - |
GetFlowCytometryGroupAsCurator¶
MetadataWithId GetFlowCytometryGroupAsCurator(id, response_format = var.response_format, returned_metadata_fields = var.returned_metadata_fields)
Retrieve a single group object by ID (accession)
Example¶
library(odmApi)
# Retrieve a single group object by ID (accession)
#
# prepare function argument(s)
var_id <- "id_example" # character | Unique identifier (accession) of the object.
var_response_format <- ResponseFormat$new() # ResponseFormat | Supply this parameter with the value `term_id` as part of the query to return extended information including IDs for values and dictionaries. (Optional)
var_returned_metadata_fields <- "returned_metadata_fields_example" # character | The parameter defines amount of metadata attributes to return: 1. `minimal_data` - return metadata attributes according to the default template. 2. `extended_data_included` - return metadata attributes according to applied template, if object doesn’t have applied template, default template will be used. This is the default for User endpoints. 3. `original_data_included` - return all metadata attributes with values and null attributes, if they are present in the applied template. This is the default for Curator endpoints. (Optional)
api_instance <- FlowCytometrySPoTAsCuratorApi$new()
# Configure API key authorization: Access-token
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure API key authorization: Genestack-API-Token
# api_instance$api_client$api_keys["Genestack-API-Token"] <- Sys.getenv("API_KEY")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$GetFlowCytometryGroupAsCurator(var_id, response_format = var_response_format, returned_metadata_fields = var_returned_metadata_fieldsdata_file = "result.txt")
result <- api_instance$GetFlowCytometryGroupAsCurator(var_id, response_format = var_response_format, returned_metadata_fields = var_returned_metadata_fields)
dput(result)
Parameters¶
| Name | Type | Description | Notes |
|---|---|---|---|
| id | character | Unique identifier (accession) of the object. | |
| response_format | ResponseFormat | Supply this parameter with the value `term_id` as part of the query to return extended information including IDs for values and dictionaries. | [optional] |
| returned_metadata_fields | Enum [minimal_data, extended_data_included, original_data_included] | The parameter defines amount of metadata attributes to return: 1. `minimal_data` - return metadata attributes according to the default template. 2. `extended_data_included` - return metadata attributes according to applied template, if object doesn’t have applied template, default template will be used. This is the default for User endpoints. 3. `original_data_included` - return all metadata attributes with values and null attributes, if they are present in the applied template. This is the default for Curator endpoints. | [optional] |
Return type¶
Authorization¶
Access-token, Genestack-API-Token
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/json
HTTP response details¶
| Status code | Description | Response headers |
|---|---|---|
| 200 | The request was successful. The returned value is the object. | - |
| 400 | The supplied object ID is invalid. | - |
| 401 | User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI Profile page). | - |
| 404 | No object exists with the given ID. | - |
| 500 | An internal server error occurred. This indicates an unexpected failure in the Genestack system, please file a bug report to support@genestack.com, including the error details. | - |
GetFlowCytometryGroupByRunAsCurator¶
MetadataWithId GetFlowCytometryGroupByRunAsCurator(id, response_format = var.response_format, returned_metadata_fields = var.returned_metadata_fields)
Retrieve a single group object by run ID (accession)
Example¶
library(odmApi)
# Retrieve a single group object by run ID (accession)
#
# prepare function argument(s)
var_id <- "id_example" # character | Unique identifier (accession) of the object.
var_response_format <- ResponseFormat$new() # ResponseFormat | Supply this parameter with the value `term_id` as part of the query to return extended information including IDs for values and dictionaries. (Optional)
var_returned_metadata_fields <- "returned_metadata_fields_example" # character | The parameter defines amount of metadata attributes to return: 1. `minimal_data` - return metadata attributes according to the default template. 2. `extended_data_included` - return metadata attributes according to applied template, if object doesn’t have applied template, default template will be used. This is the default for User endpoints. 3. `original_data_included` - return all metadata attributes with values and null attributes, if they are present in the applied template. This is the default for Curator endpoints. (Optional)
api_instance <- FlowCytometrySPoTAsCuratorApi$new()
# Configure API key authorization: Access-token
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure API key authorization: Genestack-API-Token
# api_instance$api_client$api_keys["Genestack-API-Token"] <- Sys.getenv("API_KEY")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$GetFlowCytometryGroupByRunAsCurator(var_id, response_format = var_response_format, returned_metadata_fields = var_returned_metadata_fieldsdata_file = "result.txt")
result <- api_instance$GetFlowCytometryGroupByRunAsCurator(var_id, response_format = var_response_format, returned_metadata_fields = var_returned_metadata_fields)
dput(result)
Parameters¶
| Name | Type | Description | Notes |
|---|---|---|---|
| id | character | Unique identifier (accession) of the object. | |
| response_format | ResponseFormat | Supply this parameter with the value `term_id` as part of the query to return extended information including IDs for values and dictionaries. | [optional] |
| returned_metadata_fields | Enum [minimal_data, extended_data_included, original_data_included] | The parameter defines amount of metadata attributes to return: 1. `minimal_data` - return metadata attributes according to the default template. 2. `extended_data_included` - return metadata attributes according to applied template, if object doesn’t have applied template, default template will be used. This is the default for User endpoints. 3. `original_data_included` - return all metadata attributes with values and null attributes, if they are present in the applied template. This is the default for Curator endpoints. | [optional] |
Return type¶
Authorization¶
Access-token, Genestack-API-Token
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/json
HTTP response details¶
| Status code | Description | Response headers |
|---|---|---|
| 200 | The request was successful. The returned value is the object. | - |
| 400 | The supplied object ID is invalid. | - |
| 401 | User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI Profile page). | - |
| 404 | No object exists with the given ID. | - |
| 500 | An internal server error occurred. This indicates an unexpected failure in the Genestack system, please file a bug report to support@genestack.com, including the error details. | - |
GetFlowCytometryVersionsAsCurator¶
array[CommitInfo] GetFlowCytometryVersionsAsCurator(id)
Retrieve a list of object versions by ID
Example¶
library(odmApi)
# Retrieve a list of object versions by ID
#
# prepare function argument(s)
var_id <- "id_example" # character | Unique identifier (accession) of the object.
api_instance <- FlowCytometrySPoTAsCuratorApi$new()
# Configure API key authorization: Access-token
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure API key authorization: Genestack-API-Token
# api_instance$api_client$api_keys["Genestack-API-Token"] <- Sys.getenv("API_KEY")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$GetFlowCytometryVersionsAsCurator(var_iddata_file = "result.txt")
result <- api_instance$GetFlowCytometryVersionsAsCurator(var_id)
dput(result)
Parameters¶
| Name | Type | Description | Notes |
|---|---|---|---|
| id | character | Unique identifier (accession) of the object. |
Return type¶
Authorization¶
Access-token, Genestack-API-Token
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/json
HTTP response details¶
| Status code | Description | Response headers |
|---|---|---|
| 200 | The request was successful. The returned value is the list of object versions. | - |
| 401 | User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI Profile page). | - |
| 500 | An internal server error occurred. This indicates an unexpected failure in the Genestack system, please file a bug report to support@genestack.com, including the error details. | - |
SearchFlowCytometryGroupsAsCurator¶
ListResponse SearchFlowCytometryGroupsAsCurator(response_format = var.response_format, filter = var.filter, query = var.query, search_specific_terms = var.search_specific_terms, use_versions = var.use_versions, returned_metadata_fields = var.returned_metadata_fields, page_offset = var.page_offset, page_limit = var.page_limit)
Retrieve groups that match a query
Retrieve all group metadata objects that match a query. ## Metadata full-text queries Single words can be supplied as is, otherwise use speech marks (\") to quote queries that include whitespace. Speech marks and backslash characters in the query need to be escaped with a backslash (\\). ## Metadata filters Metadata filters are key-value pairs joined by an operator. The = operator matches literal values/string. The != operator matches anything except the literal value/string. The < or > operators match numerical results that are less or greater than the supplied value. Strings containing whitespace need to be quoted with (\"). ## Combinations Metadata queries/filters for the same parameter can be combined with &&, AND, || and OR operators, using white-space to separate out the terms and operators. Parentheses ( ) can be used for complex expressions. ## Versioning Specific versions of omics data files (eg. GCT) can be queried via the useVersions parameter. Different versions of an omics data file are associated via their CHAIN_ID metadata value. This CHAIN_ID can be supplied to the useVersions parameter along with the version number or specific omics data file accessions to include them in the query. If nothing is supplied to the useVersions parameter then only the active version (which is usually the last one imported) is queried. This acts as a filter before the rest of the query is carried out. Example usage: useVersions=* (query all versions, including those without CHAIN_IDs) useVersions=v2 (query the second version. If there is no second version then the data file is not queried) useVersions=v1,v0 (query the first version and any data files without CHAIN_IDs(v0) ) useVersions=GSVC002:v3 (for omics data files with a CHAIN_ID of GSCV002 query the third version) useVersions=GSVC002:GSF00494,GSF000496 (for omics data files with a CHAIN_ID of GSCV002 query only the specific accessions GSF00494 and GSF000496) Rules for multiple CHAIN_IDs can be supplied to the parameter using the ; separator. ## Paging For performance reasons this endpoint returns results in \"pages\" of limited size. In order to retrieve all matching results the client needs to request multiple pages starting from an offset to the first result. You can do this using the pageOffset query parameter. A value of 0 (the default) instructs the server to return the first page of results, 100 would return a page of results starting from the 101st result and so on. To retrieve all results, iterate through pages using pageOffset values of n * pageLimit until a page returns fewer results than the page limit, which indicates there are no more results. ## List operation This endpoint can be called with no query parameter. Doing so returns a list of all data objects.
Example¶
library(odmApi)
# Retrieve groups that match a query
#
# prepare function argument(s)
var_response_format <- ResponseFormat$new() # ResponseFormat | Supply this parameter with the value `term_id` as part of the query to return extended information including IDs for values and dictionaries. (Optional)
var_filter <- "filter_example" # character | Filter by flow cytometry metadata (key-value metadata pair(s)). E.g. `Organ=blood`. (Optional)
var_query <- "query_example" # character | Search for flow cytometry objects via a full text query over all flow cytometry metadata. Queries matching dictionary terms are automatically expanded to include synonyms. (Optional)
var_search_specific_terms <- "search_specific_terms_example" # character | If the full-text query term is present in an ODM dictionary, enabling this parameter will modify the query to include child terms of the full-text query. For example, the search query \"Body fluid\" can be expanded to include the term \"Blood\" (a child term of \"Body fluid\") so files containing either \"Body fluid\" or \"Blood\" in their metadata will be returned in the search results. The parent-child relationship is defined by the key \"broaders\" or \"subClassOf\" in the dictionary. If the full query term is not present in a dictionary then this parameter has no effect. (Optional)
var_use_versions <- "use_versions_example" # character | Specify which versions of omics data files are used in the query. By default the active version is used. See Versioning above. Syntax: \\* or `v<version number>` or `<CHAIN_ID>`:`v<version number>` or `<CHAIN_ID>`:`<accession1,accession2,..>` (Optional)
var_returned_metadata_fields <- "returned_metadata_fields_example" # character | The parameter defines amount of metadata attributes to return: 1. `minimal_data` - return metadata attributes according to the default template. 2. `extended_data_included` - return metadata attributes according to applied template, if object doesn’t have applied template, default template will be used. This is the default for User endpoints. 3. `original_data_included` - return all metadata attributes with values and null attributes, if they are present in the applied template. This is the default for Curator endpoints. (Optional)
var_page_offset <- 56 # integer | Show the page {pageOffset+1} results from the start of the results. E.g. 100 will show a page of results starting from the 101st result. The default value is 0. (Optional)
var_page_limit <- 56 # integer | Maximum number of results to return per page (see Paging above). This value must be between 0 and 2000 (inclusive). The default is 2000. (Optional)
api_instance <- FlowCytometrySPoTAsCuratorApi$new()
# Configure API key authorization: Access-token
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure API key authorization: Genestack-API-Token
# api_instance$api_client$api_keys["Genestack-API-Token"] <- Sys.getenv("API_KEY")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$SearchFlowCytometryGroupsAsCurator(response_format = var_response_format, filter = var_filter, query = var_query, search_specific_terms = var_search_specific_terms, use_versions = var_use_versions, returned_metadata_fields = var_returned_metadata_fields, page_offset = var_page_offset, page_limit = var_page_limitdata_file = "result.txt")
result <- api_instance$SearchFlowCytometryGroupsAsCurator(response_format = var_response_format, filter = var_filter, query = var_query, search_specific_terms = var_search_specific_terms, use_versions = var_use_versions, returned_metadata_fields = var_returned_metadata_fields, page_offset = var_page_offset, page_limit = var_page_limit)
dput(result)
Parameters¶
| Name | Type | Description | Notes |
|---|---|---|---|
| response_format | ResponseFormat | Supply this parameter with the value `term_id` as part of the query to return extended information including IDs for values and dictionaries. | [optional] |
| filter | character | Filter by flow cytometry metadata (key-value metadata pair(s)). E.g. `Organ=blood`. | [optional] |
| query | character | Search for flow cytometry objects via a full text query over all flow cytometry metadata. Queries matching dictionary terms are automatically expanded to include synonyms. | [optional] |
| search_specific_terms | character | If the full-text query term is present in an ODM dictionary, enabling this parameter will modify the query to include child terms of the full-text query. For example, the search query \"Body fluid\" can be expanded to include the term \"Blood\" (a child term of \"Body fluid\") so files containing either \"Body fluid\" or \"Blood\" in their metadata will be returned in the search results. The parent-child relationship is defined by the key \"broaders\" or \"subClassOf\" in the dictionary. If the full query term is not present in a dictionary then this parameter has no effect. | [optional] |
| use_versions | character | Specify which versions of omics data files are used in the query. By default the active version is used. See Versioning above. Syntax: \* or `v<version number>` or `<CHAIN_ID>`:`v<version number>` or `<CHAIN_ID>`:`<accession1,accession2,..>` | [optional] |
| returned_metadata_fields | Enum [minimal_data, extended_data_included, original_data_included] | The parameter defines amount of metadata attributes to return: 1. `minimal_data` - return metadata attributes according to the default template. 2. `extended_data_included` - return metadata attributes according to applied template, if object doesn’t have applied template, default template will be used. This is the default for User endpoints. 3. `original_data_included` - return all metadata attributes with values and null attributes, if they are present in the applied template. This is the default for Curator endpoints. | [optional] |
| page_offset | integer | Show the page {pageOffset+1} results from the start of the results. E.g. 100 will show a page of results starting from the 101st result. The default value is 0. | [optional] |
| page_limit | integer | Maximum number of results to return per page (see Paging above). This value must be between 0 and 2000 (inclusive). The default is 2000. | [optional] |
Return type¶
Authorization¶
Access-token, Genestack-API-Token
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/json
HTTP response details¶
| Status code | Description | Response headers |
|---|---|---|
| 200 | The request was successful. The returned value is a list of objects. | - |
| 400 | The supplied object ID is invalid. | - |
| 401 | User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI Profile page). | - |
| 404 | No object exists with the given ID. | - |
| 500 | An internal server error occurred. This indicates an unexpected failure in the Genestack system, please file a bug report to support@genestack.com, including the error details. | - |
SearchFlowCytometryRunsAsCurator¶
RunsResponse SearchFlowCytometryRunsAsCurator(id, cursor = var.cursor, page_limit = var.page_limit)
Retrieve run objects related to the given group
Paging For performance reasons this endpoint returns results in \"pages\" of limited size together with a cursor tag. To retrieve the next page of results please supply this cursor tag to resume the query from your previous result and get the next page. If there are no more results you will just retrieve an empty result.¶
Example¶
library(odmApi)
# Retrieve run objects related to the given group
#
# prepare function argument(s)
var_id <- "id_example" # character | Unique identifier (accession) of the object.
var_cursor <- "cursor_example" # character | The page tag to resume results from (see paging above). (Optional)
var_page_limit <- 56 # integer | Maximum number of results to return per page (see Paging above). This value must be between 0 and 2000 (inclusive). The default is 2000. (Optional)
api_instance <- FlowCytometrySPoTAsCuratorApi$new()
# Configure API key authorization: Access-token
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure API key authorization: Genestack-API-Token
# api_instance$api_client$api_keys["Genestack-API-Token"] <- Sys.getenv("API_KEY")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$SearchFlowCytometryRunsAsCurator(var_id, cursor = var_cursor, page_limit = var_page_limitdata_file = "result.txt")
result <- api_instance$SearchFlowCytometryRunsAsCurator(var_id, cursor = var_cursor, page_limit = var_page_limit)
dput(result)
Parameters¶
| Name | Type | Description | Notes |
|---|---|---|---|
| id | character | Unique identifier (accession) of the object. | |
| cursor | character | The page tag to resume results from (see paging above). | [optional] |
| page_limit | integer | Maximum number of results to return per page (see Paging above). This value must be between 0 and 2000 (inclusive). The default is 2000. | [optional] |
Return type¶
Authorization¶
Access-token, Genestack-API-Token
HTTP request headers¶
- Content-Type: Not defined
- Accept: application/json
HTTP response details¶
| Status code | Description | Response headers |
|---|---|---|
| 200 | The request was successful. The returned value is the object. | - |
| 400 | The supplied object ID is invalid. | - |
| 401 | User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI Profile page). | - |
| 404 | No object exists with the given ID. | - |
| 500 | An internal server error occurred. This indicates an unexpected failure in the Genestack system, please file a bug report to support@genestack.com, including the error details. | - |
UpdateFlowCytometryAsCurator¶
object UpdateFlowCytometryAsCurator(id, body = var.body)
Update object metadata
Basic operation The object metadata is updated using the supplied map of attribute names to attribute values. There are three cases: 1. The attribute name does not already exist in the object metadata. In this case, the attribute and value are added to the object metadata. 2. The attribute name already exists in the object metadata. In this case, the value is updated. 3. The attribute value is null.In this case, the attribute is removed from the object metadata. ## Attribute values The attribute values are intelligently parsed as booleans, integers, etc.¶
Example¶
library(odmApi)
# Update object metadata
#
# prepare function argument(s)
var_id <- "id_example" # character | Unique identifier (accession) of the object.
var_body <- c(key = TODO) # object | Metadata in the form of `{key: value, key2: value2, ...}` (Optional)
api_instance <- FlowCytometrySPoTAsCuratorApi$new()
# Configure API key authorization: Access-token
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure API key authorization: Genestack-API-Token
# api_instance$api_client$api_keys["Genestack-API-Token"] <- Sys.getenv("API_KEY")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$UpdateFlowCytometryAsCurator(var_id, body = var_bodydata_file = "result.txt")
result <- api_instance$UpdateFlowCytometryAsCurator(var_id, body = var_body)
dput(result)
Parameters¶
| Name | Type | Description | Notes |
|---|---|---|---|
| id | character | Unique identifier (accession) of the object. | |
| body | object | Metadata in the form of `{key: value, key2: value2, ...}` | [optional] |
Return type¶
object
Authorization¶
Access-token, Genestack-API-Token
HTTP request headers¶
- Content-Type: application/json
- Accept: application/json
HTTP response details¶
| Status code | Description | Response headers |
|---|---|---|
| 200 | The objects was successfully created. The returned value is the updated object, along with any warnings. | - |
| 400 | The supplied object ID or metadata is invalid. | - |
| 401 | User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI Profile page). | - |
| 404 | No object exists with the given ID. | - |
| 500 | An internal server error occurred. This indicates an unexpected failure in the Genestack system, please file a bug report to support@genestack.com, including the error details. | - |