diff --git a/.gitignore b/.gitignore index f53d807f..f93d5842 100644 --- a/.gitignore +++ b/.gitignore @@ -25,5 +25,5 @@ node_modules **/gen/** # Ignore merged file and one downloaded for processor-controller -/openapi/v1/odmApi.yaml +/openapi/v1/openapi.yaml /openapi/v1/processorsController.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 83c8ba3c..0587954c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,3 +10,19 @@ repos: - id: check-toml - id: check-merge-conflict - id: end-of-file-fixer +- repo: local + hooks: + - id: spectral-lint + name: spectral-lint + entry: npx @stoplight/spectral-cli lint + language: node + files: openapi/v1/odm.yaml + additional_dependencies: ['@stoplight/spectral-cli@6.15.0'] +- repo: local + hooks: + - id: redocly-lint + name: redocly-lint + entry: npx @redocly/cli lint + language: node + files: openapi/v1/odm.yaml + additional_dependencies: ['@redocly/cli@2.0.7'] diff --git a/.spectral.yml b/.spectral.yml new file mode 100644 index 00000000..d47c47d3 --- /dev/null +++ b/.spectral.yml @@ -0,0 +1 @@ +extends: ["spectral:oas"] diff --git a/Earthfile b/Earthfile index 203d8ae1..31fd6f63 100644 --- a/Earthfile +++ b/Earthfile @@ -151,12 +151,12 @@ swagger: COPY +build/v1 /usr/share/nginx/html/yaml/ COPY openapi/swagger/fs / - RUN rm -f /usr/share/nginx/html/yaml/odmApi.yaml + RUN rm -f /usr/share/nginx/html/yaml/odm.yaml && \ + rm -f /usr/share/nginx/html/yaml/processorsController.yaml RUN apk add bash --no-cache && \ rewrite_entrypoint.sh && \ apk del bash - # Remove merged api spec # IDK why it's required RUN ln -s /usr/share/nginx/html/yaml /usr/share/nginx/html/helper/yaml @@ -170,8 +170,7 @@ swagger: stoplight: FROM nginxinc/nginx-unprivileged:1.29.1-alpine - COPY +build/v1/schemas /usr/share/nginx/html/schemas/ - COPY +build/v1/odmApi.yaml /usr/share/nginx/html/ + COPY +build/v1/openapi.yaml /usr/share/nginx/html/ COPY openapi/stoplight/fs / ARG --required OPENAPI_VERSION @@ -182,5 +181,5 @@ main: BUILD +swagger BUILD +stoplight BUILD +docs - BUILD +r-api-client + #BUILD +r-api-client BUILD +python-api-client diff --git a/build.gradle.kts b/build.gradle.kts index 80d225e4..5af49f3b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -23,14 +23,12 @@ val processorsControllerVersion: String = System.getenv("PROCESSORS_CONTROLLER_V val processorsControllerFileName = "processorsController.yaml" val processorsControllerFilePath = "${sourceDirectory}/${processorsControllerFileName}" -val openApiVersion: String = System.getenv("OPENAPI_VERSION") -val mergedFileName = "odmApi.yaml" -val mergedFilePath = "${sourceDirectory}/${mergedFileName}" +val odmFileName = "odm.yaml" +val odmFilePath = "${sourceDirectory}/${odmFileName}" -val sourceFileList = KotlinPath(sourceDirectory) - .listDirectoryEntries("*.yaml") - .sorted() - .map { layout.projectDirectory.file("${sourceDirectory}/${it.name}") } +val openapiVersion: String = System.getenv("OPENAPI_VERSION") +val openapiFileName = "openapi.yaml" +val openapiFilePath = "${sourceDirectory}/${openapiFileName}" tasks { val downloadSpec by registering(DownloadSpecification::class) { @@ -43,20 +41,21 @@ tasks { } val mergeSpecifications by registering(MergeSpecifications::class) { dependsOn(downloadSpec) - inputFiles = sourceFileList - outputFile = layout.projectDirectory.file(mergedFilePath) + inputFiles = listOf(odmFilePath, processorsControllerFilePath) + .sorted().map { layout.projectDirectory.file(it) } + outputFile = layout.projectDirectory.file(openapiFilePath) } val generateOdmApiPython by registering(GenerateTask::class) { dependsOn(mergeSpecifications) generatorName.set("python") - inputSpec.set(mergedFilePath) + inputSpec.set(openapiFilePath) outputDir.set("$rootDir/generated/python") packageName.set("odm_api") gitUserId.set("genestack") gitRepoId.set("openapi") nameMappings.set(mapOf("genestack:accession" to "genestackaccession")) configOptions = mapOf( - "packageVersion" to openApiVersion, + "packageVersion" to openapiVersion, // Workaround for https://github.com/OpenAPITools/openapi-generator/issues/21619 // The second version asks for license, which we can't provide due to unavailability of // "licenseName" and "licenseUrl" fields in the specification for python generator. @@ -67,28 +66,28 @@ tasks { val generateOdmApiR by registering(GenerateTask::class) { dependsOn(mergeSpecifications) generatorName.set("r") - inputSpec.set(mergedFilePath) + inputSpec.set(openapiFilePath) outputDir.set("$rootDir/generated/r") packageName.set("odmApi") gitUserId.set("genestack") gitRepoId.set("openapi") nameMappings.set(mapOf("genestack:accession" to "genestackaccession")) configOptions = mapOf( - "packageVersion" to openApiVersion + "packageVersion" to openapiVersion // "disallowAdditionalPropertiesIfNotPresent" to "true" ) } val generateOdmApiPostmanCollection by registering(GenerateTask::class) { dependsOn(mergeSpecifications) generatorName.set("postman-collection") - inputSpec.set(mergedFilePath) + inputSpec.set(openapiFilePath) outputDir.set("$rootDir/generated/postman-collection") packageName.set("odm-api") gitUserId.set("genestack") gitRepoId.set("openapi") nameMappings.set(mapOf("genestack:accession" to "genestackaccession")) configOptions = mapOf( - "packageVersion" to openApiVersion + "packageVersion" to openapiVersion // "disallowAdditionalPropertiesIfNotPresent" to "true" ) } diff --git a/openapi/stoplight/fs/usr/share/nginx/html/index.html b/openapi/stoplight/fs/usr/share/nginx/html/index.html index b2e28d47..b5c6af4f 100644 --- a/openapi/stoplight/fs/usr/share/nginx/html/index.html +++ b/openapi/stoplight/fs/usr/share/nginx/html/index.html @@ -11,7 +11,7 @@ diff --git a/openapi/v1/cellCurator.yaml b/openapi/v1/cellCurator.yaml deleted file mode 100644 index 127461f5..00000000 --- a/openapi/v1/cellCurator.yaml +++ /dev/null @@ -1,120 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the APIs for retrieving cells. - title: ODM API - version: default-released -tags: - - name: Cells as Curator -paths: - /api/v1/as-curator/cells/{id}: - get: - operationId: getCellByIdAsCurator - parameters: - - description: Unique cell identifier. Consists of a cell group accession and a cell barcode, separated by a hyphen, e.g. `GSF123456-AAACCTGAGCGCTCCA-1`. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Cell" - description: The request was successful. The returned value is the object. - "400": - content: { } - description: Invalid data in the request. See the error message for details. - "401": - content: { } - description: |- - 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": - content: { } - description: Object with provided ID could not be found in ODM. - "500": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Retrieve a cell by ID - tags: - - Cells as Curator - /api/v1/as-curator/cells/by/group/{id}: - get: - description: |+ - ## 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. - operationId: getCellsByGroupAsCurator - parameters: - - description: Unique identifier (accession) of the cell group. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 10000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: The page tag to resume results from (see Paging above). Cell ID is currently used as a cursor. - in: query - name: cursor - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/CellListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: { } - description: Cell data cannot be retrieved. - "401": - content: { } - description: |- - 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": - content: { } - description: No object exists with the given ID. - "500": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Retrieve cells from a given group - tags: - - Cells as Curator -components: - schemas: - Cell: - $ref: "./schemas/cell/Cell.yaml" - CellListResponse: - $ref: "./schemas/cell/CellListResponse.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/cellUser.yaml b/openapi/v1/cellUser.yaml deleted file mode 100644 index 9af2eb80..00000000 --- a/openapi/v1/cellUser.yaml +++ /dev/null @@ -1,120 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the APIs for retrieving cells. - title: ODM API - version: default-released -tags: - - name: Cells as User -paths: - /api/v1/as-user/cells/{id}: - get: - operationId: getCellByIdAsUser - parameters: - - description: Unique cell identifier. Consists of a cell group accession and a cell barcode, separated by a hyphen, e.g. `GSF123456-AAACCTGAGCGCTCCA-1`. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Cell" - description: The request was successful. The returned value is the object. - "400": - content: { } - description: Invalid data in the request. See the error message for details. - "401": - content: { } - description: |- - 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": - content: { } - description: Object with provided ID could not be found in ODM. - "500": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Retrieve a cell by ID - tags: - - Cells as User - /api/v1/as-user/cells/by/group/{id}: - get: - description: |+ - ## 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. - operationId: getCellsByGroupAsUser - parameters: - - description: Unique identifier (accession) of the cell group. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 10000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: The page tag to resume results from (see Paging above). Cell ID is currently used as a cursor. - in: query - name: cursor - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/CellListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: { } - description: Cell data cannot be retrieved. - "401": - content: { } - description: |- - 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": - content: { } - description: No object exists with the given ID. - "500": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Retrieve cells from a given group - tags: - - Cells as User -components: - schemas: - Cell: - $ref: "./schemas/cell/Cell.yaml" - CellListResponse: - $ref: "./schemas/cell/CellListResponse.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/expressionCurator.yaml b/openapi/v1/expressionCurator.yaml deleted file mode 100644 index 8f24aead..00000000 --- a/openapi/v1/expressionCurator.yaml +++ /dev/null @@ -1,740 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the expressionCurator APIs. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Expression SPoT as Curator -paths: - /api/v1/as-curator/expressions: - get: - description: |+ - Retrieve all expression 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. - - operationId: getExpressionDataAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by expression metadata (key-value metadata pair(s)). E.g. - `"Normalization Method"=TPM`. - in: query - name: filter - schema: - type: string - - description: Search for expression objects via a full text query over all - expression metadata. E.g. `TPM`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Autogenerated numeric ID that corresponds to the column and is used to link data from the same - run to a sample, library or preparation. Multiple values can be provided as a list. - in: query - name: runFilter - schema: - $ref: "#/components/schemas/RunFilter" - style: form - - description: Column name from the file to which all data for a sample, library or preparation is related. Multiple values can be provided as a list to retrieve data from multiple columns. - explode: true - in: query - name: runSourceFilter - schema: - items: - type: string - example: Run Source ID - type: array - style: form - - description: Minimum threshold (inclusive) for returned expression values. - in: query - name: minExpressionLevel - schema: - format: double - type: number - - description: "List of features to return. These features must match exactly\ - \ the probe IDs in the GCT file. Example: `1552269_at`" - explode: true - in: query - name: featureList - schema: - items: - type: string - example: KRAS - type: array - style: form - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ExpressionResponse" - description: Retrieved Expression data. - "400": - content: {} - description: Expression data cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve multiple expression data and metadata objects - tags: - - Expression SPoT as Curator - /api/v1/as-curator/expressions/group: - get: - description: |- - 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. - operationId: searchExpressionGroupsAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by expression metadata (key-value metadata pair(s)). E.g. - `"Normalization Method"=TPM`. - in: query - name: filter - schema: - type: string - - description: Search for expression objects via a full text query over all - expression metadata. E.g. `TPM`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve groups that match a query - tags: - - Expression SPoT as Curator - /api/v1/as-curator/expressions/group/by/run/{id}: - get: - operationId: getExpressionGroupByRunAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (runId) of the run. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataWithId" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single group object by run ID (runId) - tags: - - Expression SPoT as Curator - /api/v1/as-curator/expressions/group/{id}: - get: - operationId: getExpressionGroupAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Expression group identifier (groupId). - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataWithId" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single expression group by ID (groupId) - tags: - - Expression SPoT as Curator - /api/v1/as-curator/expressions/runs/by/group/{id}: - get: - description: |+ - ## 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 return all results iterate through pages using pageOffset values of `n * pageLimit` until the `resultsExhausted` response field is true. - - operationId: searchExpressionRunsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve run objects related to the given group - tags: - - Expression SPoT as Curator - /api/v1/as-curator/expressions/{id}: - get: - operationId: getExpressionAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Expression object unique identifier (itemId). - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ExpressionItem" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single expression object by ID (itemId) - tags: - - Expression SPoT as Curator - patch: - description: |- - ## 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. - operationId: updateExpressionRunAsCurator - parameters: - - description: Expression object run ID (runId). - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataContent" - description: "Metadata in the form of `{key: value, key2: value2, ...}`" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SignalRun" - description: "The objects was successfully created. The returned value is\ - \ the updated object, along with any warnings." - "400": - content: {} - description: The supplied object ID or metadata is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Update metadata object by expression object run ID (runId) - tags: - - Expression SPoT as Curator - x-codegen-request-body-name: body - /api/v1/as-curator/expressions/{id}/versions: - get: - operationId: getExpressionVersionsAsCurator - parameters: - - description: Expression object run ID (runId). - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of expression object versions by run ID (runId) - tags: - - Expression SPoT as Curator - /api/v1/as-curator/expressions/{id}/versions/{version}: - get: - operationId: getExpressionByVersionAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Expression object run ID (runId). - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the expression object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SignalRun" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single expression object by run ID and its version - tags: - - Expression SPoT as Curator -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - ExpressionItem: - $ref: "./schemas/expression/ExpressionItem.yaml" - ExpressionResponse: - $ref: "./schemas/expression/ExpressionResponse.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - MetadataContent: - $ref: "./schemas/common/MetadataContent.yaml" - MetadataWithId: - $ref: "./schemas/common/MetadataWithId.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - RunFilter: - $ref: "./schemas/common/RunFilter.yaml" - RunsResponse: - $ref: "./schemas/common/RunsResponse.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - SignalRun: - $ref: "./schemas/common/SignalRun.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/expressionUser.yaml b/openapi/v1/expressionUser.yaml deleted file mode 100644 index 6477fdeb..00000000 --- a/openapi/v1/expressionUser.yaml +++ /dev/null @@ -1,683 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the expressionUser API endpoints for ODM. These are typically used to find and retrieve any tabular data (not only expression data) except Gene Variant or Flow Cytometry. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Expression SPoT as User -paths: - /api/v1/as-user/expressions: - get: - description: |+ - Retrieve all expression 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. - - operationId: getExpressionDataAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by expression metadata (key-value metadata pair(s)). E.g. - `"Normalization Method"=TPM`. - in: query - name: filter - schema: - type: string - - description: Search for expression objects via a full text query over all - expression metadata. E.g. `TPM`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Autogenerated numeric ID that corresponds to the column and is used to link data from the same - run to a sample, library or preparation. Multiple values can be provided as a list. - in: query - name: runFilter - schema: - $ref: "#/components/schemas/RunFilter" - style: form - - description: Column name from the file to which all data for a sample, library or preparation is related. Multiple values can be provided as a list to retrieve data from multiple columns. - explode: true - in: query - name: runSourceFilter - schema: - items: - type: string - example: Run Source ID - type: array - style: form - - description: Minimum threshold (inclusive) for returned expression values. - in: query - name: minExpressionLevel - schema: - format: double - type: number - - description: "List of features to return. These features must match exactly\ - \ the probe IDs in the GCT file. Example: `1552269_at`" - explode: true - in: query - name: featureList - schema: - items: - type: string - example: KRAS - type: array - style: form - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ExpressionResponse" - description: Retrieved Expression data. - "400": - content: {} - description: Expression data cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve multiple expression data and metadata objects - tags: - - Expression SPoT as User - /api/v1/as-user/expressions/group: - get: - description: |- - 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. - operationId: searchExpressionGroupsAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by expression metadata (key-value metadata pair(s)). E.g. - `"Normalization Method"=TPM`. - in: query - name: filter - schema: - type: string - - description: Search for expression objects via a full text query over all - expression metadata. E.g. `TPM`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve groups that match a query - tags: - - Expression SPoT as User - /api/v1/as-user/expressions/group/by/run/{id}: - get: - operationId: getExpressionGroupByRunAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (runId) of the run. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataWithId" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single group object by run ID (runId) - tags: - - Expression SPoT as User - /api/v1/as-user/expressions/group/{id}: - get: - operationId: getExpressionGroupAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Expression group identifier (groupId). - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataWithId" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single expression group by ID (groupId) - tags: - - Expression SPoT as User - /api/v1/as-user/expressions/runs/by/group/{id}: - get: - description: |+ - ## 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 return all results iterate through pages using pageOffset values of `n * pageLimit` until the `resultsExhausted` response field is true. - - operationId: searchExpressionRunsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve run objects related to the given group - tags: - - Expression SPoT as User - /api/v1/as-user/expressions/{id}: - get: - operationId: getExpressionAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Expression object unique identifier (itemId). - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ExpressionItem" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single expression object by ID (itemId) - tags: - - Expression SPoT as User - /api/v1/as-user/expressions/{id}/versions: - get: - operationId: getExpressionVersionsAsUser - parameters: - - description: Expression object run ID (runId). - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of expression object versions by run ID (runId) - tags: - - Expression SPoT as User - /api/v1/as-user/expressions/{id}/versions/{version}: - get: - operationId: getExpressionByVersionAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Expression object run ID (runId). - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SignalRun" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single expression object by run ID and its version - tags: - - Expression SPoT as User -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - ExpressionItem: - $ref: "./schemas/expression/ExpressionItem.yaml" - ExpressionResponse: - $ref: "./schemas/expression/ExpressionResponse.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - MetadataContent: - $ref: "./schemas/common/MetadataContent.yaml" - MetadataWithId: - $ref: "./schemas/common/MetadataWithId.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - RunFilter: - $ref: "./schemas/common/RunFilter.yaml" - SignalRun: - $ref: "./schemas/common/SignalRun.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/fileCurator.yaml b/openapi/v1/fileCurator.yaml deleted file mode 100644 index 591e3860..00000000 --- a/openapi/v1/fileCurator.yaml +++ /dev/null @@ -1,245 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the APIs for retrieving files. - title: ODM API - version: default-released -tags: - - name: Files as Curator -paths: - /api/v1/as-curator/files/{id}/download: - head: - description: |+ - Check if a file exists by its accession. - - This endpoint can be used to check if a file exists and accessible before downloading it. - operationId: headFileAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - description: File exists. Additional metadata is provided in the response headers. - "400": - content: {} - description: File cannot be downloaded. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "406": - content: {} - description: File cannot be downloaded. - "500": - content: {} - description: "An internal server error occurred. This indicates an unexpected\ - \ failure in the Genestack system, please file a bug report to" - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - tags: - - Files as Curator - get: - description: |+ - Download a file by its accession. - operationId: getFileAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - name: Range - in: header - required: false - schema: - type: string - example: bytes=0- - description: | - Request a specific range of bytes to support partial downloads. - Example: `bytes=0-1024` to download the first 1024 bytes. Supplying several - ranges is not supported. - responses: - "200": - description: File downloaded successfully - content: - application/octet-stream: - schema: - type: string - format: binary - "206": - description: Partial content downloaded successfully - content: - application/octet-stream: - schema: - type: string - format: binary - "400": - content: {} - description: File cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "406": - content: {} - description: File cannot be downloaded. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a file by ID (accession) - tags: - - Files as Curator - /api/v1/as-curator/files/{id}: - get: - operationId: getFileMetadataByIdAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Select `true` in order to include file structure (contents) for .h5, .h5ad, .zip, .gz to the response. - in: query - name: includeContents - required: false - schema: - default: false - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/AFile" - description: The request was successful. The returned value is the object. - "400": - content: { } - description: Invalid data in the request. See the error message for details. - "401": - content: { } - description: |- - 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": - content: { } - description: Object with provided accession could not be found in ODM. - "500": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Retrieve file's metadata by ID (accession) - tags: - - Files as Curator - /api/v1/as-curator/files: - get: - operationId: getFilesMetadataAsCurator - description: |- - ## 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 (`\`). - - ## 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 by increasing the offset in multiples of limit (e.g., `offset = n * limit`), until all results have been retrieved. The total number of pages can be calculated by dividing the total number of results by the limit. - - ## List operation - - This endpoint can be called without any query parameters. When called this way, it returns a list of all files metadata objects. - parameters: - - in: query - name: filter - description: Filter by files metadata (key-value metadata pair(s)). - schema: - type: string - - in: query - name: query - description: Search for files via a full-text query over all file metadata. - schema: - type: string - - in: query - name: includeContents - description: Select `true` in order to include file structure (contents) for .h5, .h5ad, .zip, .gz to the response. - required: false - schema: - default: false - type: boolean - - in: query - name: pageLimit - description: Maximum number of results to return per page (see Paging above). This value must be - between 0 and 2000 (inclusive). The default is 2000. - schema: - format: int32 - type: integer - - in: query - name: pageOffset - description: 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. - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of objects. - "400": - content: { } - description: Invalid data in the request. See the error message for details. - "401": - content: { } - description: |- - 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": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Retrieve file's metadata by its fields - tags: - - Files as Curator -components: - schemas: - AFile: - $ref: "./schemas/afile/AFile.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/fileUser.yaml b/openapi/v1/fileUser.yaml deleted file mode 100644 index 6bbf2e5e..00000000 --- a/openapi/v1/fileUser.yaml +++ /dev/null @@ -1,246 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the APIs for retrieving files. - title: ODM API - version: default-released -tags: - - name: Files as User -paths: - /api/v1/as-user/files/{id}/download: - head: - description: |+ - Check if a file exists by its accession. - - This endpoint can be used to check if a file exists and accessible before downloading it. - operationId: headFileAsUser - summary: Check if a file exists by ID (accession). - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - description: File exists. Additional metadata is provided in the response headers. - "400": - content: {} - description: File cannot be downloaded. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "406": - content: {} - description: File cannot be downloaded. - "500": - content: {} - description: "An internal server error occurred. This indicates an unexpected\ - \ failure in the Genestack system, please file a bug report to" - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - tags: - - Files as User - get: - description: |+ - Download a file by its accession. - operationId: getFileAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - name: Range - in: header - required: false - schema: - type: string - example: bytes=0- - description: | - Request a specific range of bytes to support partial downloads. - Example: `bytes=0-1024` to download the first 1024 bytes. Supplying several - ranges is not supported. - responses: - "200": - description: File downloaded successfully - content: - application/octet-stream: - schema: - type: string - format: binary - "206": - description: Partial content downloaded successfully - content: - application/octet-stream: - schema: - type: string - format: binary - "400": - content: {} - description: File cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "406": - content: {} - description: File cannot be downloaded. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a file by ID (accession) - tags: - - Files as User - /api/v1/as-user/files/{id}: - get: - operationId: getFileMetadataByIdAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Select `true` in order to include file structure (contents) for .h5, .h5ad, .zip, .gz to the response. - in: query - name: includeContents - required: false - schema: - default: false - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/AFile" - description: The request was successful. The returned value is the object. - "400": - content: { } - description: Invalid data in the request. See the error message for details. - "401": - content: { } - description: |- - 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": - content: { } - description: Object with provided accession could not be found in ODM. - "500": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Retrieve file's metadata by ID (accession) - tags: - - Files as User - /api/v1/as-user/files: - get: - operationId: getFilesMetadataAsUser - description: |- - ## 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 (`\`). - - ## 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 by increasing the offset in multiples of limit (e.g., `offset = n * limit`), until all results have been retrieved. The total number of pages can be calculated by dividing the total number of results by the limit. - - ## List operation - - This endpoint can be called without any query parameters. When called this way, it returns a list of all files metadata objects. - parameters: - - in: query - name: filter - description: Filter by files metadata (key-value metadata pair(s)). - schema: - type: string - - in: query - name: query - description: Search for files via a full-text query over all file metadata. - schema: - type: string - - in: query - name: includeContents - description: Select `true` in order to include file structure (contents) for .h5, .h5ad, .zip, .gz to the response. - required: false - schema: - default: false - type: boolean - - in: query - name: pageLimit - description: Maximum number of results to return per page (see Paging above). This value must be - between 0 and 2000 (inclusive). The default is 2000. - schema: - format: int32 - type: integer - - in: query - name: pageOffset - description: 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. - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of objects. - "400": - content: { } - description: Invalid data in the request. See the error message for details. - "401": - content: { } - description: |- - 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": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Retrieve file's metadata by its fields - tags: - - Files as User -components: - schemas: - AFile: - $ref: "./schemas/afile/AFile.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/flowCytometryCurator.yaml b/openapi/v1/flowCytometryCurator.yaml deleted file mode 100644 index 3bc7c13d..00000000 --- a/openapi/v1/flowCytometryCurator.yaml +++ /dev/null @@ -1,747 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the flowCytometryCurator API endpoints for ODM. These are typically used to find and retrieve flow cytometry data and metadata as well as update metadata. - The APIs can be used for gated flow cytometry data in FACS format. For flow cytometry data in FCS format use expression endpoints. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Flow Cytometry SPoT as Curator -paths: - /api/v1/as-curator/flow-cytometries: - get: - description: |+ - 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. - - operationId: getFlowCytometryDataAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by flow cytometry metadata (key-value metadata pair(s)). - E.g. `Organ=blood`. - in: query - name: filter - schema: - type: string - - description: 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. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: 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. - in: query - name: runFilter - schema: - $ref: "#/components/schemas/RunFilter" - style: form - - description: Sample name from the file which allows retrieval of all the rows related to the sample. Multiple values can be provided as a list. - explode: true - in: query - name: runSourceFilter - schema: - items: - type: string - example: Run Source ID - type: array - style: form - - description: "Required value of \"Readout type\" column. E.g.: `Count`, `Median`" - in: query - name: readoutType - schema: - type: string - - description: |- - 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`. - in: query - name: population - schema: - type: string - - description: "Marker value. E.g.: `PD1`, `BV786`" - in: query - name: marker - schema: - type: string - - description: Minimum threshold (inclusive) for returned expression values. - in: query - name: minValue - schema: - type: number - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlowCytometryResponse" - description: Retrieved Flow Cytometry data. - "400": - content: {} - description: Flow Cytometry data cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve multiple flow cytometry data and metadata objects - tags: - - Flow Cytometry SPoT as Curator - /api/v1/as-curator/flow-cytometries/group: - get: - description: |- - 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. - operationId: searchFlowCytometryGroupsAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by flow cytometry metadata (key-value metadata pair(s)). - E.g. `Organ=blood`. - in: query - name: filter - schema: - type: string - - description: 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. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve groups that match a query - tags: - - Flow Cytometry SPoT as Curator - /api/v1/as-curator/flow-cytometries/group/by/run/{id}: - get: - operationId: getFlowCytometryGroupByRunAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataWithId" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single group object by run ID (accession) - tags: - - Flow Cytometry SPoT as Curator - /api/v1/as-curator/flow-cytometries/group/{id}: - get: - operationId: getFlowCytometryGroupAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataWithId" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single group object by ID (accession) - tags: - - Flow Cytometry SPoT as Curator - /api/v1/as-curator/flow-cytometries/runs/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: searchFlowCytometryRunsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve run objects related to the given group - tags: - - Flow Cytometry SPoT as Curator - /api/v1/as-curator/flow-cytometries/{id}: - get: - operationId: getFlowCytometryAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlowCytometryItem" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single sample flow cytometry by ID (accession) - tags: - - Flow Cytometry SPoT as Curator - patch: - description: |- - ## 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. - operationId: updateFlowCytometryAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataContent" - description: "Metadata in the form of `{key: value, key2: value2, ...}`" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SignalRun" - description: "The objects was successfully created. The returned value is\ - \ the updated object, along with any warnings." - "400": - content: {} - description: The supplied object ID or metadata is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Update object metadata - tags: - - Flow Cytometry SPoT as Curator - x-codegen-request-body-name: body - /api/v1/as-curator/flow-cytometries/{id}/versions: - get: - operationId: getFlowCytometryVersionsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of object versions by ID - tags: - - Flow Cytometry SPoT as Curator - /api/v1/as-curator/flow-cytometries/{id}/versions/{version}: - get: - operationId: getFlowCytometryByVersionAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SignalRun" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single sample flow cytometry by ID (accession) - tags: - - Flow Cytometry SPoT as Curator -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - FlowCytometryItem: - $ref: "./schemas/flow-cytometry/FlowCytometryItem.yaml" - FlowCytometryResponse: - $ref: "./schemas/flow-cytometry/FlowCytometryResponse.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - MetadataContent: - $ref: "./schemas/common/MetadataContent.yaml" - MetadataWithId: - $ref: "./schemas/common/MetadataWithId.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - RunFilter: - $ref: "./schemas/common/RunFilter.yaml" - RunsResponse: - $ref: "./schemas/common/RunsResponse.yaml" - SignalRun: - $ref: "./schemas/common/SignalRun.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/flowCytometryUser.yaml b/openapi/v1/flowCytometryUser.yaml deleted file mode 100644 index 35ce875c..00000000 --- a/openapi/v1/flowCytometryUser.yaml +++ /dev/null @@ -1,689 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the flowCytometryUser API endpoints for ODM. These are typically used to find and retrieve flow cytometry data and metadata. - The APIs can be used for gated flow cytometry data in FACS format. For flow cytometry data in FCS format use expression endpoints. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Flow Cytometry SPoT as User -paths: - /api/v1/as-user/flow-cytometries: - get: - description: |+ - 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. - - operationId: getFlowCytometryDataAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by flow cytometry metadata (key-value metadata pair(s)). - E.g. `Organ=blood`. - in: query - name: filter - schema: - type: string - - description: 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. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: 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. - in: query - name: runFilter - schema: - $ref: "#/components/schemas/RunFilter" - style: form - - description: Sample name from the file which allows retrieval of all the rows related to the sample. Multiple values can be provided as a list. - explode: true - in: query - name: runSourceFilter - schema: - items: - type: string - example: Run Source ID - type: array - style: form - - description: "Required value of \"Readout type\" column. E.g.: `Count`, `Median`" - in: query - name: readoutType - schema: - type: string - - description: |- - 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`. - in: query - name: population - schema: - type: string - - description: "Marker value. E.g.: `PD1`, `BV786`" - in: query - name: marker - schema: - type: string - - description: Minimum threshold (inclusive) for returned expression values. - in: query - name: minValue - schema: - type: number - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlowCytometryResponse" - description: Retrieved Flow Cytometry data. - "400": - content: {} - description: Flow Cytometry data cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve multiple flow cytometry data and metadata objects - tags: - - Flow Cytometry SPoT as User - /api/v1/as-user/flow-cytometries/group: - get: - description: |- - 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. - operationId: searchFlowCytometryGroupsAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by flow cytometry metadata (key-value metadata pair(s)). - E.g. `Organ=blood`. - in: query - name: filter - schema: - type: string - - description: 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. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve groups that match a query - tags: - - Flow Cytometry SPoT as User - /api/v1/as-user/flow-cytometries/group/by/run/{id}: - get: - operationId: getFlowCytometryGroupByRunAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataWithId" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single group object by run ID (accession) - tags: - - Flow Cytometry SPoT as User - /api/v1/as-user/flow-cytometries/group/{id}: - get: - operationId: getFlowCytometryGroupAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataWithId" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single group object by ID (accession) - tags: - - Flow Cytometry SPoT as User - /api/v1/as-user/flow-cytometries/runs/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: searchFlowCytometryRunsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve run objects related to the given group - tags: - - Flow Cytometry SPoT as User - /api/v1/as-user/flow-cytometries/{id}: - get: - operationId: getFlowCytometryAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlowCytometryItem" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single sample flow cytometry by ID (accession) - tags: - - Flow Cytometry SPoT as User - /api/v1/as-user/flow-cytometries/{id}/versions: - get: - operationId: getFlowCytometryVersionsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of object versions by ID - tags: - - Flow Cytometry SPoT as User - /api/v1/as-user/flow-cytometries/{id}/versions/{version}: - get: - operationId: getFlowCytometryByVersionAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SignalRun" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single sample flow cytometry by ID (accession) - tags: - - Flow Cytometry SPoT as User -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - FlowCytometryItem: - $ref: "./schemas/flow-cytometry/FlowCytometryItem.yaml" - FlowCytometryResponse: - $ref: "./schemas/flow-cytometry/FlowCytometryResponse.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - MetadataContent: - $ref: "./schemas/common/MetadataContent.yaml" - MetadataWithId: - $ref: "./schemas/common/MetadataWithId.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - RunFilter: - $ref: "./schemas/common/RunFilter.yaml" - SignalRun: - $ref: "./schemas/common/SignalRun.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/integrationCurator.yaml b/openapi/v1/integrationCurator.yaml deleted file mode 100644 index cb1ce90d..00000000 --- a/openapi/v1/integrationCurator.yaml +++ /dev/null @@ -1,6837 +0,0 @@ -openapi: 3.1.0 -info: - description: | - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - The server response will be in the section that follows. - title: ODM Integration API - version: default-released -tags: -- name: Cell integration as Curator -- name: Expression integration as Curator -- name: Files integration as Curator -- name: Flow Cytometry (FACS) integration as Curator -- name: Library integration as Curator -- name: Linkage as Curator -- name: Metadata versioning as Curator -- name: Omics queries as Curator -- name: Preparation integration as Curator -- name: Sample integration as Curator -- name: Study integration as Curator -- name: Validation summary as Curator -- name: Variant integration as Curator -paths: - /api/v1/as-curator/data-types: - get: - description: This endpoint is for instructional uses and can be used to get - the latest list of Data Types. - operationId: getDataTypesAsCurator - responses: - "200": - content: - application/json: - schema: - items: - type: string - type: array - uniqueItems: true - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Lists all available data types. - tags: - - Linkage as Curator - /api/v1/as-curator/data-types/links: - get: - description: "This endpoint should be used for instructional needs, and can\ - \ be used in order to get the links between the Data Types." - operationId: getDataTypesLinksAsCurator - parameters: - - description: Return only links with the specified data type. - in: query - name: type - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/SourceTypePair" - type: array - uniqueItems: true - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: List all possible links between data types that match the specified - criteria. - tags: - - Linkage as Curator - /api/v1/as-curator/integration/link/expression/by/library/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionByLibraryAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve expression run-level data by querying related library ID (accession) - tags: - - Expression integration as Curator - /api/v1/as-curator/integration/link/expression/by/preparation/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionByPreparation - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve expression run-level data by querying related preparation - ID (accession) - tags: - - Expression integration as Curator - /api/v1/as-curator/integration/link/expression/by/sample/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionBySampleAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve expression run-level data by querying related sample ID (accession) - tags: - - Expression integration as Curator - /api/v1/as-curator/integration/link/expression/group/by/study/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionGroupsByStudyAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/MetadataWithId" - type: array - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group metadata by querying study ID (accession) - tags: - - Expression integration as Curator - ? /api/v1/as-curator/integration/link/expression/group/{sourceId}/to/library/group/{targetId} - : delete: - description: Delete link between a group of expression objects and a group of - library objects - operationId: deleteExpressionGroupLibraryGroupLinkAsCurator - parameters: - - description: The ID (accession) of the group of run-level objects (corresponding - to a GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the library group object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete link between a group of expression objects and a group of library - objects - tags: - - Expression integration as Curator - post: - description: |- - Create a link between a group of expression objects and a group of library objects. - - An expression object can be linked to one object only. If an expression object is already linked to another object, this link will be deleted and a new link with the specified object will be created. - Expression objects of the same group can only be linked to objects of the same study. - operationId: createExpressionGroupLibraryGroupLinkAsCurator - parameters: - - description: The ID (accession) of the group of run-level objects (corresponding - to a GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the library group object - in: path - name: targetId - required: true - schema: - type: string - responses: - "200": - content: {} - description: Some (not all) sample links created. - "204": - content: {} - description: Link created. - "400": - content: {} - description: "Library group, signal group or libraries to link not found" - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between a group of expression objects and a group of - library objects - tags: - - Expression integration as Curator - ? /api/v1/as-curator/integration/link/expression/group/{sourceId}/to/preparation/group/{targetId} - : delete: - description: Delete link between a group of expression objects and a group of - preparation objects - operationId: deleteExpressionGroupPreparationGroupLinkAsCurator - parameters: - - description: The ID (accession) of the group of run-level objects (corresponding - to a GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the preparation group object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete link between a group of expression objects and a group of preparation - objects - tags: - - Expression integration as Curator - post: - description: |- - Create a link between a group of expression objects and a group of preparation objects. - - An expression object can be linked to one object only. If an expression object is already linked to another object, this link will be deleted and a new link with the specified object will be created. - Expression objects of the same group can only be linked to objects of the same study. - operationId: createExpressionGroupPreparationGroupLinkAsCurator - parameters: - - description: The ID (accession) of the group of run-level objects (corresponding - to a GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the preparation group object - in: path - name: targetId - required: true - schema: - type: string - responses: - "200": - content: {} - description: Some (not all) sample links created. - "204": - content: {} - description: Link created. - "400": - content: {} - description: "Preparation group, signal group or preparations to link not\ - \ found" - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between a group of expression objects and a group of - preparation objects - tags: - - Expression integration as Curator - ? /api/v1/as-curator/integration/link/expression/group/{sourceId}/to/sample/group/{targetId} - : delete: - description: Delete link between a group of expression objects and a group of - sample objects - operationId: deleteExpressionGroupSampleGroupLinkAsCurator - parameters: - - description: The ID (accession) of the group of run-level objects (corresponding - to a GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample group object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete link between a group of expression objects and a group of sample - objects - tags: - - Expression integration as Curator - post: - description: |- - Create a link between a group of expression objects and a group of sample objects. - - An expression object can be linked to one object only. If an expression object is already linked to another object, this link will be deleted and a new link with the specified object will be created. - Expression objects of the same group can only be linked to objects of the same study. - - Users can specify a custom metadata field for linking omics data to samples via the “linkingAttribute” parameter, if not specified the “Sample Source ID“ sample metadata attribute will be used by default. - operationId: createExpressionGroupSampleGroupLinkAsCurator - parameters: - - description: The ID (accession) of the group of run-level objects (corresponding - to a GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample group object - in: path - name: targetId - required: true - schema: - type: string - - description: Metadata field containing sample IDs to link omics data to samples. - The template applied to the study must contain this field in the sample - section. - in: query - name: linkingAttribute - schema: - type: string - responses: - "200": - content: {} - description: Not all signal data were linked to the samples. - "204": - content: {} - description: All signal data were linked to the samples from the specified - sample group. - "400": - content: {} - description: "Sample group, signal group or samples to the link were not\ - \ found, or the specified linking attribute was not found." - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between a group of expression objects and a group of - sample objects - tags: - - Expression integration as Curator - /api/v1/as-curator/integration/link/expression/run-to-libraries/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionRunToLibraryPairsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve run-library pairs by group id. Pagination is based on unique\ - \ runs, not unique pairs." - tags: - - Expression integration as Curator - /api/v1/as-curator/integration/link/expression/run-to-preparations/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionRunToPreparationPairsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve run-preparation pairs by group id. Pagination is based on\ - \ unique runs, not unique pairs." - tags: - - Expression integration as Curator - /api/v1/as-curator/integration/link/expression/run-to-samples/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionRunToSamplePairsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ - \ runs, not unique pairs." - tags: - - Expression integration as Curator - /api/v1/as-curator/integration/link/expression/{sourceId}/to/library/{targetId}: - delete: - description: Delete link between an expression object and a library - operationId: deleteExpressionLibraryLinkAsCurator - parameters: - - description: The ID (accession) of the run-level object (corresponding to - the column in a VCG/GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the library object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete link between an expression object and a library - tags: - - Expression integration as Curator - post: - description: |- - Create a link between an expression object and a library. - - An expression object can be linked to one object only. If an expression object is already linked to another object, this link will be deleted and a new link with the specified object will be created. - Expression objects of the same group can only be linked to objects of the same study. - operationId: createExpressionLibraryLinkAsCurator - parameters: - - description: The ID (accession) of the run-level object (corresponding to - the column in a VCG/GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the library object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link created. - "400": - content: {} - description: Link cannot be created. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between an expression object and a library - tags: - - Expression integration as Curator - /api/v1/as-curator/integration/link/expression/{sourceId}/to/preparation/{targetId}: - delete: - description: Delete link between an expression object and a preparation - operationId: deleteExpressionPreparationLinkAsCurator - parameters: - - description: The ID (accession) of the run-level object (corresponding to - the column in a VCG/GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the preparation object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete link between an expression object and a preparation - tags: - - Expression integration as Curator - post: - description: |- - Create a link between an expression object and a preparation. - - An expression object can be linked to one object only. If an expression object is already linked to another object, this link will be deleted and a new link with the specified object will be created. - Expression objects of the same group can only be linked to objects of the same study. - operationId: createExpressionPreparationLinkAsCurator - parameters: - - description: The ID (accession) of the run-level object (corresponding to - the column in a VCG/GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the preparation object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link created. - "400": - content: {} - description: Link cannot be created. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between an expression object and a preparation - tags: - - Expression integration as Curator - /api/v1/as-curator/integration/link/expression/{sourceId}/to/sample/{targetId}: - delete: - description: Delete link between an expression object and a sample - operationId: deleteExpressionSampleLinkAsCurator - parameters: - - description: The ID (accession) of the run-level object (corresponding to - the column in a VCG/GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete link between an expression object and a sample - tags: - - Expression integration as Curator - post: - description: |- - Create a link between an expression object and a sample. - - An expression object can be linked to one object only. If an expression object is already linked to another object, this link will be deleted and a new link with the specified object will be created. - Expression objects of the same group can only be linked to objects of the same study. - operationId: createExpressionSampleLinkAsCurator - parameters: - - description: The ID (accession) of the run-level object (corresponding to - the column in a VCG/GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link created. - "400": - content: {} - description: Link cannot be created. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between an expression object and a sample - tags: - - Expression integration as Curator - /api/v1/as-curator/integration/link/flow-cytometry/by/sample/{id}: - get: - description: |+ - ## 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. - - operationId: getFlowCytometryBySampleAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve flow cytometry run-level data by querying related sample ID - (accession) - tags: - - Flow Cytometry (FACS) integration as Curator - /api/v1/as-curator/integration/link/flow-cytometry/group/by/study/{id}: - get: - description: |+ - ## 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. - - operationId: getFlowCytometryGroupsByStudyAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/MetadataWithId" - type: array - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group metadata by querying study ID (accession) - tags: - - Flow Cytometry (FACS) integration as Curator - ? /api/v1/as-curator/integration/link/flow-cytometry/group/{sourceId}/to/sample/group/{targetId} - : delete: - description: Delete link between a group of flow-cytometry objects and a group - of sample objects - operationId: deleteFlowCytometryGroupSampleGroupLinkAsCurator - parameters: - - description: The ID (accession) of the group of run-level objects (corresponding - to the column in a FACS file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete link between a group of flow-cytometry objects and a group of - sample objects - tags: - - Flow Cytometry (FACS) integration as Curator - post: - description: |- - Create a link between a group of flow-cytometry objects and a group of sample objects. - - A flow-cytometry object can be linked to one object only. If a flow-cytometry object is already linked to another object, this link will be deleted and a new link with the specified object will be created. - Flow-cytometry objects of the same group can only be linked to objects of the same study. - - Users can specify a custom metadata field for linking omics data to samples via the “linkingAttribute” parameter, if not specified the “Sample Source ID“ sample metadata attribute will be used by default. - operationId: createFlowCytometryGroupSampleGroupLinkAsCurator - parameters: - - description: The ID (accession) of the group of run-level objects (corresponding - to the column in a FACS file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample object - in: path - name: targetId - required: true - schema: - type: string - - description: Metadata field containing sample IDs to link omics data to samples. - The template applied to the study must contain this field in the sample - section. - in: query - name: linkingAttribute - schema: - type: string - responses: - "200": - content: {} - description: Not all signal data were linked to the samples. - "204": - content: {} - description: All signal data were linked to the samples from the specified - sample group. - "401": - content: {} - description: |- - 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": - content: {} - description: "Sample group, signal group or samples to the link were not\ - \ found, or the specified linking attribute was not found." - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between a group of flow-cytometry objects and a group - of sample objects - tags: - - Flow Cytometry (FACS) integration as Curator - /api/v1/as-curator/integration/link/flow-cytometry/run-to-samples/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getFlowCytometryRunToSamplePairsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ - \ runs, not unique pairs." - tags: - - Flow Cytometry (FACS) integration as Curator - /api/v1/as-curator/integration/link/flow-cytometry/{sourceId}/to/sample/{targetId}: - delete: - description: Delete link between a flow-cytometry object and a sample - operationId: deleteFlowCytometrySampleLinkAsCurator - parameters: - - description: The ID (accession) of the run-level data block - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete link between a flow-cytometry object and a sample - tags: - - Flow Cytometry (FACS) integration as Curator - post: - description: |- - Create a link between a flow-cytometry object and a sample. - - A flow-cytometry object can be linked to one object only. If a flow-cytometry object is already linked to another object, this link will be deleted and a new link with the specified object will be created. - Flow-cytometry objects of the same group can only be linked to objects of the same study. - operationId: createFlowCytometrySampleLinkAsCurator - parameters: - - description: The ID (accession) of the run-level data block - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link created. - "400": - content: {} - description: Link cannot be created. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between a flow-cytometry object and a sample - tags: - - Flow Cytometry (FACS) integration as Curator - /api/v1/as-curator/integration/link/libraries/by/samples: - get: - description: |+ - Retrieve library metadata objects whose linked sample metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getLibrariesBySamplesAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: filter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve library metadata by querying related samples - tags: - - Library integration as Curator - /api/v1/as-curator/integration/link/library/by/sample/{id}: - get: - operationId: getLibraryBySampleAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/Library" - type: array - text/tab-separated-values: - schema: - items: - $ref: "#/components/schemas/Library" - type: array - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve library metadata by querying related sample ID (accession) - tags: - - Library integration as Curator - /api/v1/as-curator/integration/link/library/group/by/study/{id}: - get: - operationId: getLibraryGroupsByStudyAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/MetadataWithId" - type: array - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group metadata by querying study ID (accession) - tags: - - Library integration as Curator - /api/v1/as-curator/integration/link/library/group/{sourceId}/to/sample/group/{targetId}: - delete: - description: Delete links between samples and libraries related to the specified - group - operationId: deleteLibraryGroupSampleGroupLinkAsCurator - parameters: - - description: The ID (accession) of the library group object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample group object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete links between samples and libraries related to the specified - group - tags: - - Library integration as Curator - post: - description: |- - Create links between samples and libraries. - - Library objects of the same group can only be linked to objects of the same study. - operationId: createLibraryGroupSampleGroupLinkAsCurator - parameters: - - description: The ID (accession) of the library group object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample group object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link created. - "400": - content: {} - description: Link cannot be created. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create links between samples and libraries - tags: - - Library integration as Curator - /api/v1/as-curator/integration/link/library/libraries-to-samples/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getLibraryLinksToSamplesAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve library-samples pairs by group id. Pagination is based on\ - \ unique libraries, not unique pairs." - tags: - - Library integration as Curator - /api/v1/as-curator/integration/link/library/{sourceId}/to/sample/{targetId}: - delete: - description: Delete a link between a library and a sample - operationId: deleteLibrarySampleLinkAsCurator - parameters: - - description: The ID (accession) of the library object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete a link between a library and a sample - tags: - - Library integration as Curator - post: - description: |- - Create a link between a library and a sample. - - Library objects of the same group can only be linked to objects of the same study. - operationId: createLibrarySampleLinkAsCurator - parameters: - - description: The ID (accession) of the library object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link created. - "400": - content: {} - description: Link cannot be created. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between a library and a sample - tags: - - Library integration as Curator - /api/v1/as-curator/integration/link/preparation/by/sample/{id}: - get: - operationId: getPreparationBySampleAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/Preparation" - type: array - text/tab-separated-values: - schema: - items: - $ref: "#/components/schemas/Preparation" - type: array - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve preparation metadata by querying related sample ID (accession) - tags: - - Preparation integration as Curator - /api/v1/as-curator/integration/link/preparation/group/by/study/{id}: - get: - operationId: getPreparationGroupsByStudyAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/MetadataWithId" - type: array - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group metadata by querying study ID (accession) - tags: - - Preparation integration as Curator - ? /api/v1/as-curator/integration/link/preparation/group/{sourceId}/to/sample/group/{targetId} - : delete: - description: Delete links between samples and preparations related to the specified - group - operationId: deletePreparationGroupSampleGroupLinkAsCurator - parameters: - - description: The ID (accession) of the preparation group object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample group object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete links between samples and preparations related to the specified - group - tags: - - Preparation integration as Curator - post: - description: |- - Create links between samples and preparations. - - Preparation objects of the same group can only be linked to objects of the same study. - operationId: createPreparationGroupSampleGroupLinkAsCurator - parameters: - - description: The ID (accession) of the preparation group object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample group object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link created. - "400": - content: {} - description: Link cannot be created. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create links between samples and preparations - tags: - - Preparation integration as Curator - /api/v1/as-curator/integration/link/preparation/preparations-to-samples/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getPreparationLinksToSamplesAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ - \ preparations, not unique pairs." - tags: - - Preparation integration as Curator - /api/v1/as-curator/integration/link/preparation/{sourceId}/to/sample/{targetId}: - delete: - description: Delete a link between a preparation and a sample - operationId: deletePreparationSampleLinkAsCurator - parameters: - - description: The ID (accession) of the preparation object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete a link between a preparation and a sample - tags: - - Preparation integration as Curator - post: - description: |- - Create a link between a preparation and a sample. - - Preparation objects of the same group can only be linked to objects of the same study. - operationId: createPreparationSampleLinkAsCurator - parameters: - - description: The ID (accession) of the preparation object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link created. - "400": - content: {} - description: Link cannot be created. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between a preparation and a sample - tags: - - Preparation integration as Curator - /api/v1/as-curator/integration/link/preparations/by/samples: - get: - description: |+ - Retrieve preparation metadata objects whose linked sample metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getPreparationsBySamplesAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: filter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve preparation metadata by querying related samples - tags: - - Preparation integration as Curator - /api/v1/as-curator/integration/link/sample/group/{sourceId}/to/study/{targetId}: - delete: - description: Delete link between a group of sample objects and a study - operationId: deleteSampleGroupStudyLinkAsCurator - parameters: - - description: The ID (accession) of the sample group object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the study object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete link between a group of sample objects and a study - tags: - - Sample integration as Curator - post: - description: |- - Create a link between a group of sample objects and a study. - - Sample objects of the same group can only be linked to the same study. - operationId: createSampleGroupStudyLinkAsCurator - parameters: - - description: The ID (accession) of the sample group object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the study object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link created. - "400": - content: {} - description: Link cannot be created. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between a group of sample objects and a study - tags: - - Sample integration as Curator - /api/v1/as-curator/integration/link/sample/{sourceId}/to/study/{targetId}: - delete: - description: Delete link between a sample and a study - operationId: deleteSampleStudyLinkAsCurator - parameters: - - description: The ID (accession) of the sample object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the study object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete link between a sample and a study - tags: - - Sample integration as Curator - post: - description: |- - Create a link between a sample and a study. - - Sample objects of the same group can only be linked to the same study. - operationId: createSampleStudyLinkAsCurator - parameters: - - description: The ID (accession) of the sample object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the study object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link created. - "400": - content: {} - description: Link cannot be created. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between a sample and a study - tags: - - Sample integration as Curator - /api/v1/as-curator/integration/link/samples/by/libraries: - get: - description: |+ - Retrieve sample metadata objects whose linked library metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getSamplesByLibrariesAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: filter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve sample metadata by querying related libraries - tags: - - Sample integration as Curator - /api/v1/as-curator/integration/link/samples/by/preparations: - get: - description: |+ - Retrieve sample metadata objects whose linked preparation metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getSamplesByPreparationsAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: filter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve sample metadata by querying related preparations - tags: - - Sample integration as Curator - /api/v1/as-curator/integration/link/samples/by/study/{id}: - get: - description: |+ - ## 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. - - operationId: getSamplesByStudyAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve sample metadata by querying related study ID (accession) - tags: - - Sample integration as Curator - /api/v1/as-curator/integration/link/studies/by/libraries: - get: - description: |+ - Retrieve study metadata objects whose linked library metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getStudiesByLibrariesAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: filter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve study metadata objects by querying related libraries - tags: - - Study integration as Curator - /api/v1/as-curator/integration/link/studies/by/preparations: - get: - description: |+ - Retrieve study metadata objects whose linked preparation metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getStudiesByPreparationsAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: filter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve study metadata objects by querying related preparations - tags: - - Study integration as Curator - /api/v1/as-curator/integration/link/studies/by/samples: - get: - description: |+ - Retrieve study metadata objects whose linked sample metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getStudiesBySamplesAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by sample metadata (key-value metadata pair(s)). E.g. - "Species or strain"="Homo sapiens" - in: query - name: filter - schema: - type: string - - description: Search for study metadata objects via a full-text query over - all sample metadata fields. E.g. "RNA-Seq of human dendritic cells". Queries - matching dictionary terms are automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve study metadata objects by querying related samples - tags: - - Study integration as Curator - /api/v1/as-curator/integration/link/study/by/sample/{id}: - get: - operationId: getStudyBySampleAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Study" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve study metadata by querying sample ID (accession) - tags: - - Study integration as Curator - /api/v1/as-curator/integration/link/studies/by/files: - get: - description: |+ - Retrieve study metadata objects whose linked attached files metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Attachment files (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - - ## 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. - - ## 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. - - operationId: getStudiesByFilesAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by attachment file metadata (key-value metadata pair(s)). E.g. - "Species or strain"="Homo sapiens" - in: query - name: filter - schema: - type: string - - description: Search for study metadata objects via a full-text query over - all attached files metadata fields. E.g. "RNA-Seq of human dendritic cells". Queries - matching dictionary terms are automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve study metadata objects by querying related attachment files - tags: - - Study integration as Curator - /api/v1/as-curator/integration/link/study/by/file/{id}: - get: - operationId: getStudyByFileAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Study" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve study metadata by querying attachment file ID (accession) - tags: - - Study integration as Curator - /api/v1/as-curator/integration/link/variant/by/sample/{id}: - get: - description: |+ - ## 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. - - operationId: getVariantBySampleAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve variant run-level data by querying related sample ID (accession) - tags: - - Variant integration as Curator - /api/v1/as-curator/integration/link/variant/group/by/study/{id}: - get: - description: |+ - ## 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. - - operationId: getVariantGroupsByStudyAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/MetadataWithId" - type: array - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group metadata by querying study ID (accession) - tags: - - Variant integration as Curator - /api/v1/as-curator/integration/link/variant/group/{sourceId}/to/sample/group/{targetId}: - delete: - description: Delete link between a group of variant objects and a group of sample - objects - operationId: deleteVariantGroupSampleGroupLinkAsCurator - parameters: - - description: The ID (accession) of the group of run-level objects (corresponding - to the column in a VCF file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample group object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete link between a group of variant objects and a group of sample - objects - tags: - - Variant integration as Curator - post: - description: |- - Create a link between a group of variant objects and a group of sample objects. - - A variant object can be linked to one object only. If a variant object is already linked to another object, this link will be deleted and a new link with the specified object will be created. - Variant objects of the same group can only be linked to objects of the same study. - - Users can specify a custom metadata field for linking omics data to samples via the “linkingAttribute” parameter, if not specified the “Sample Source ID“ sample metadata attribute will be used by default. - operationId: createVariantGroupSampleGroupLinkAsCurator - parameters: - - description: The ID (accession) of the group of run-level objects (corresponding - to the column in a VCF file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample group object - in: path - name: targetId - required: true - schema: - type: string - - description: Metadata field containing sample IDs to link omics data to samples. - The template applied to the study must contain this field in the sample - section. - in: query - name: linkingAttribute - schema: - type: string - responses: - "200": - content: {} - description: Not all signal data were linked to the samples. - "204": - content: {} - description: All signal data were linked to the samples from the specified - sample group. - "401": - content: {} - description: |- - 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": - content: {} - description: "Sample group, signal group or samples to the link were not\ - \ found, or the specified linking attribute was not found." - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between a group of variant objects and a group of sample - objects - tags: - - Variant integration as Curator - /api/v1/as-curator/integration/link/variant/run-to-samples/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getVariantRunToSamplePairsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ - \ runs, not unique pairs." - tags: - - Variant integration as Curator - /api/v1/as-curator/integration/link/variant/{sourceId}/to/sample/{targetId}: - delete: - description: Delete link between a variant object and a sample - operationId: deleteVariantSampleLinkAsCurator - parameters: - - description: The ID (accession) of the run-level object (corresponding to - the column in a VCG/GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link deleted. - "400": - content: {} - description: Link cannot be deleted. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete link between a variant object and a sample - tags: - - Variant integration as Curator - post: - description: |- - Create a link between a variant object and a sample. - - A variant object can be linked to one object only. If a variant object is already linked to another object, this link will be deleted and a new link with the specified object will be created. - Variant objects of the same group can only be linked to objects of the same study. - operationId: createVariantSampleLinkAsCurator - parameters: - - description: The ID (accession) of the run-level object (corresponding to - the column in a VCG/GCT file) - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample object - in: path - name: targetId - required: true - schema: - type: string - responses: - "204": - content: {} - description: Link created. - "400": - content: {} - description: Link cannot be created. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Create a link between a variant object and a sample - tags: - - Variant integration as Curator - /api/v1/as-curator/integration/fulltext/search/studies: - post: - description: |- - Find studies and retrieve their data using full-text search or facet search by metadata of study itself or child object (samples, libraries, preparations, signal groups). Only studies available to that users are returned. - - The endpoint returns: - - a list of studies with their metadata summary; - - a list of filter objects with counts; filter list is the same for all users in an and can be configured in “Study Browser” application via "Configure facets" (by a user with corresponding permission); for each filter object, only the first 5 most popular facets are returned, the facts are sorted by the count value in descending order; only studies available to user are counted. - - Filter attributes for fulltext search: - - `"type": "FULL_TEXT"` - - `"match"` - - `"mode"` - - For details on two latter ones, see the request body model. Only one filter with `"type=": "FULL_TEXT"` can be passed in the request body. - - To filter studies via facets, the filter attributes are necessary: type = SELECT, filterOptionId. For details, use the request body model. filterOptionId can be obtained from the response body when the endpoint is first called without filters. Multiple filters with type = SELECT can be passed in the request body. Filters within the same attribute are automatically used with the OR operator. Filters of different attributes are automatically used with the AND operator. This behaviour can not be changed. - - It is possible to call the endpoint without any filters, then all the studies available to the user are returned. - - The endpoint searches by staging version of the object metadata. - operationId: searchStudiesByFilterAsCurator - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SearchStudyRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FindObjectsResponse" - description: The request was successful. Retrieved studies and filters. - "400": - content: {} - description: Invalid request body - "401": - content: {} - description: User is not authenticated. Please supply a valid Genestack - API token in the `Genestack-API-Token` HTTP header (this token may be - obtained from the Genestack UI _Profile_ page). - "500": - content: {} - description: "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." - security: - - Genestack-API-Token: [] - summary: Find and retrieve studies by full-text or facet query - tags: - - Study integration as Curator - x-codegen-request-body-name: request - /api/v1/as-curator/links: - delete: - description: "This method should be used in case you want to delete the links\ - \ of an object. Please, keep in mind that deleting a link between Study and\ - \ Sample will not delete a link between corresponding Sample and it’s signal." - operationId: deleteLinkAsCurator - parameters: - - description: Object ID (accession) (e.g. accession of study) - in: query - name: firstId - required: true - schema: - type: string - - description: Type of the object (e.g. study) - in: query - name: firstType - schema: - type: string - - description: Object ID (accession) (e.g. accession of study) - in: query - name: secondId - required: true - schema: - type: string - - description: Type of the object (e.g. study) - in: query - name: secondType - schema: - type: string - responses: - "204": - content: {} - description: Link has been successfully deleted. - "400": - content: {} - description: Invalid data in request. - "401": - content: {} - description: |- - 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": - content: {} - description: No links were found. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Deletes existing links matching the specified criteria. - tags: - - Linkage as Curator - get: - description: Please make sure that this endpoint should be used only for getting - all links to a specific object. In case you specify both firstId and secondId - an expected answer would be true for existing links and false for no link - between the objects. - operationId: getLinksByParamsAsCurator - parameters: - - description: Object ID (accession) (e.g. accession of study) - in: query - name: firstId - required: true - schema: - type: string - - description: Type of the object (e.g. study) - in: query - name: firstType - schema: - type: string - - description: Object ID (accession) (e.g. accession of study) - in: query - name: secondId - schema: - type: string - - description: Type of the object (e.g. study) - in: query - name: secondType - schema: - type: string - - description: Param says to skip that many links before beginning to return - links. - in: query - name: offset - schema: - default: 0 - format: int32 - type: integer - - description: Param says to limit the count of returned links. - in: query - name: limit - schema: - default: 1000 - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Finds existing links matching the specified criteria. - tags: - - Linkage as Curator - post: - description: "This method should be used only in case you need to create links\ - \ between 2 objects. Links are created both ways (e.g. when linking Object\ - \ A to Object B it can be done both ways, by linking firstType to secondType\ - \ and vice versa)." - operationId: saveLinksAsCurator - requestBody: - content: - application/json: - schema: - items: - $ref: "#/components/schemas/Link" - type: array - required: false - responses: - "200": - content: {} - description: Links were updated or not modified. - "201": - content: {} - description: At least one new link has been created.Some other links might - have been updated or not modified. - "400": - content: {} - description: Invalid data in request. - "401": - content: {} - description: |- - 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). - "409": - content: {} - description: Link cannot be created due to conflict with existing link - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Creates new links between objects. - tags: - - Linkage as Curator - x-codegen-request-body-name: links - /api/v1/as-curator/links/get-batch: - post: - description: Please make sure to use that endpoint for batch calls only. You - are not allowed to pass 'mixed' objects. e.g. Studies and Samples at the same - time. Please always specify firstType. - operationId: getLinksByIdsAsCurator - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/BatchOfIds" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Finds existing links by passing many IDs. \nPagination goes through\ - \ all links matched the criteria." - tags: - - Linkage as Curator - x-codegen-request-body-name: request - /api/v1/as-curator/omics/expression/data: - get: - description: "Retrieve any data objects whose linked data matches all supplied\ - \ conditions. \n\nNote: An expression data query must be supplied.\n\n## Conditions\n\ - It is possible to supply conditions for:\n\n1. Samples (full-text or metadata\ - \ key-value pair)\n2. Parent studies (full-text or metadata key-value pair)\n\ - 3. Linked variant objects (list of data key-value pairs)\n4. Linked flow cytometry\ - \ objects (list of data key-value pairs)\n5. Linked any data (except variant\ - \ and flow cytometry) objects (list of data key-value pairs)\n\n## Metadata\ - \ full-text queries\nSingle 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 (`\\\ - `).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Data\ - \ queries\nData queries must be a list of key-value pairs, separated by whitespace.\ - \ The set of valid keys depends on the specific query type, and is documented\ - \ in the query parameter summary. The values can be simple non-whitespace\ - \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ - \ the value may be be a comma-delimited list of string values. Others require\ - \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ - \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ - \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ - useVersions=v2 (query the second version. If there is no second version then\ - \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ - \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ - \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ - \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ - \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ - \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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. To return all results iterate through pages using \ - \ cursor values until the `resultsExhausted` response field is true.\n\n" - operationId: omicsSearchExpressionDataAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve data objects by searching across multiple data types - tags: - - Omics queries as Curator - /api/v1/as-curator/omics/expression/group: - get: - description: |+ - Retrieve group objects whose linked data matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. To return all results iterate through pages using cursor values until the `resultsExhausted` response field is true. - - operationId: omicsSearchExpressionGroupsAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group objects by searching across multiple data types - tags: - - Omics queries as Curator - /api/v1/as-curator/omics/expression/streamed-data: - get: - description: |+ - Stream data from a given group for a tabular file that matches a sample/library/preparations query/filter. If no query/filters are supplied all expression data is returned. If a metadata filter is specified, this endpoint will only return expression data that is associated with a sample via the Sample Source ID attribute. - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Libraries (full-text or metadata key-value pair) - 3. Preparations (full-text or metadata key-value pair) - ## 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. - - operationId: omicsSearchStreamedExpressionDataAsCurator - parameters: - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `features.NAME=1007_s_at`\ - \ or `features.\"Average Mz\"=2.218`. As in the case of sample metadata\ - \ queries, single words can be supplied as is; otherwise, use speech marks\ - \ (`\"`) to quote queries that include whitespace. \n2. It is possible to\ - \ specify a set of possible values, separated by comma: `features.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`features.Name_1 > 3`: Select all rows where the\ - \ feature attribute Name_1 values are greater than 3. \n`features.Name_2\ - \ >= 6`: Select all rows where the feature attribute Name_2 values are greater\ - \ than or equal to 6. \n`-3 < features.Name_3 < 3`: Select all rows where\ - \ the feature attribute Name_3 values lie within the interval between -3\ - \ and 3. \n4. Use substring search to get the records where the attribute\ - \ field contains the provided substring: `features.attribute1 =~ \"some\ - \ text\"`. \n5. The first column for each original data file is identified\ - \ as feature accession (typically, it contains gene or protein names, accession\ - \ IDs, etc.). Searching by such feature accession would significantly outperform\ - \ more complex queries by combining the other feature attributes. To enable\ - \ such a search, use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`values.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < values.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`) logical operators and parentheses: \n\ - * `features.Name_1!=A`: Select all rows where Name_1 is not A. \n* `features.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `features.Name_1=A\ - \ AND features.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `features.Name_1=A && features.Name_2=B`: Equivalent to the example\ - \ above. \n* `features.Name_1=A OR features.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `features.Name_1=A || features.Name_2=B`:\ - \ Equivalent to the example above. \n* `features.Name_1=A AND (features.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Deprecated; use `exQuery` parameter instead. Filters results\ - \ by the feature column (e.g., Gene ID). The feature parameter value must\ - \ match the name of the identifier in the GCT file (under the NAME column).\ - \ Example: `ENSG00000077044`" - explode: true - in: query - name: featureList - schema: - items: - type: string - example: KRAS - type: array - style: form - - description: Accession of the expression group object (GCT) - in: query - name: groupAccession - required: true - schema: - type: string - - description: The number of digits after the decimal point for floating-point - values. The final value is rounded up. Must be non-negative. The default - is 4. - in: query - name: roundDigits - schema: - default: 4 - format: int32 - type: integer - responses: - "200": - content: - text/csv: - schema: - $ref: "#/components/schemas/StreamingOutput" - description: Stream of retrieved Expression data. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Stream data from a given tabular file - tags: - - Omics queries as Curator - /api/v1/as-curator/omics/flow-cytometry/data: - get: - description: |+ - Retrieve flow cytometry data objects whose linked data matches all supplied conditions. - - Note: A flow cytometry data query must be supplied. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. To return all results iterate through pages using cursor values until the `resultsExhausted` response field is true. - - operationId: omicsSearchFlowCytometryDataAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve flow cytometry data objects by searching across multiple data - types - tags: - - Omics queries as Curator - /api/v1/as-curator/omics/flow-cytometry/group: - get: - description: |+ - Retrieve group objects whose linked data matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. To return all results iterate through pages using cursor values until the `resultsExhausted` response field is true. - - operationId: omicsSearchFlowCytometryGroupsAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group objects by searching across multiple data types - tags: - - Omics queries as Curator - /api/v1/as-curator/omics/samples: - get: - description: |+ - Retrieve sample metadata objects whose linked data matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. To return all results iterate through pages using cursor values until the `resultsExhausted` response field is true. - - operationId: omicsSearchSamplesAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve sample metadata objects by searching across multiple data - types - tags: - - Omics queries as Curator - /api/v1/as-curator/omics/variant/data: - get: - description: |+ - Retrieve variant data objects whose linked data matches all supplied conditions. - - Note: A variant data query must be supplied. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked expression objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. To return all results iterate through pages using cursor values until the `resultsExhausted` response field is true. - - operationId: omicsSearchVariantDataAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve variant data objects by searching across multiple data types - tags: - - Omics queries as Curator - /api/v1/as-curator/omics/variant/group: - get: - description: |+ - Retrieve group objects whose linked data matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. To return all results iterate through pages using cursor values until the `resultsExhausted` response field is true. - - operationId: omicsSearchVariantGroupsAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: "Unique identifier (accession) of Reference Genome object." - in: query - name: referenceGenomeId - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group objects by searching across multiple data types - tags: - - Omics queries as Curator - /api/v1/as-curator/omics/variant/streamed-data: - get: - description: |+ - Stream data from a given group for a VCF file that matches a sample query/filter. If no query/filters are supplied all variant data is returned. If a metadata filter is specified, this endpoint will only return variant data that is associated with a sample via metadata attribute. - - ## Conditions - It is possible to supply conditions for Samples (full-text or metadata key-value pair) - - ## 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. - - operationId: omicsSearchStreamedVariantDataAsCurator - parameters: - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `features.NAME=1007_s_at`\ - \ or `features.\"Average Mz\"=2.218`. As in the case of sample metadata\ - \ queries, single words can be supplied as is; otherwise, use speech marks\ - \ (`\"`) to quote queries that include whitespace. \n2. It is possible to\ - \ specify a set of possible values, separated by comma: `features.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`features.Name_1 > 3`: Select all rows where the\ - \ feature attribute Name_1 values are greater than 3. \n`features.Name_2\ - \ >= 6`: Select all rows where the feature attribute Name_2 values are greater\ - \ than or equal to 6. \n`-3 < features.Name_3 < 3`: Select all rows where\ - \ the feature attribute Name_3 values lie within the interval between -3\ - \ and 3. \n4. Use substring search to get the records where the attribute\ - \ field contains the provided substring: `features.attribute1 =~ \"some\ - \ text\"`. \n5. The first column for each original data file is identified\ - \ as feature accession (typically, it contains gene or protein names, accession\ - \ IDs, etc.). Searching by such feature accession would significantly outperform\ - \ more complex queries by combining the other feature attributes. To enable\ - \ such a search, use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`values.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < values.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`) logical operators and parentheses: \n\ - * `features.Name_1!=A`: Select all rows where Name_1 is not A. \n* `features.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `features.Name_1=A\ - \ AND features.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `features.Name_1=A && features.Name_2=B`: Equivalent to the example\ - \ above. \n* `features.Name_1=A OR features.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `features.Name_1=A || features.Name_2=B`:\ - \ Equivalent to the example above. \n* `features.Name_1=A AND (features.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: Accession of the variant group object (VCF) - in: query - name: groupAccession - required: true - schema: - type: string - responses: - "200": - content: - text/tab-separated-values: - schema: - $ref: "#/components/schemas/StreamingOutput" - description: Stream of retrieved Variant data. - "400": - content: { } - description: Invalid data in request. See error message for details. - "401": - content: { } - description: |- - 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": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Stream data from a given VCF file - tags: - - Omics queries as Curator - /api/v1/as-curator/integration/studies/{id}/tasks/publish-versions: - post: - description: This endpoint publishes information from staging and creates new - metadata versions for the specified study and all associated objects. The - version name is set to “Auto-published by API call”. Only curators with access - to the specified studies can use this method. - operationId: publishStudyByAccessionAsCurator - parameters: - - description: Supply the accession of the study to be published - in: path - name: id - required: true - schema: - type: string - - description: Supply text to name this version. If not supplied the version - name is set to “Auto-published by API call” - in: query - name: versionMessage - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/TaskInfo" - description: Task information. - "401": - content: {} - description: |- - 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). - "403": - content: {} - description: Forbidden - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Asynchronous task that publishes all pending versions for a single - study. - tags: - - Metadata versioning as Curator - /api/v1/as-curator/integration/studies/{id}/validation-summary: - get: - operationId: getStudyValidationSummary - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/StudyValidationSummary" - description: Study validation result. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve validation summary by querying study ID (accession) - tags: - - Validation summary as Curator - /api/v1/as-curator/integration/link/files/by/study/{id}: - get: - operationId: getFilesByStudyAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Select `true` in order to include file structure (contents) for .h5, .h5ad, .zip, .gz to the response. - in: query - name: includeContents - required: false - schema: - default: false - type: boolean - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/AFile" - type: array - text/tab-separated-values: - schema: - items: - $ref: "#/components/schemas/AFile" - type: array - description: The request was successful. The returned value is a list of objects. - "400": - content: { } - description: Invalid data in the request. See the error message for details. - "401": - content: { } - description: |- - 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": - content: { } - description: Object with provided accession could not be found in ODM. - "500": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Retrieve file's metadata by study ID - tags: - - Files integration as Curator - /api/v1/as-curator/integration/link/cell/group/{sourceId}/to/sample/group/{targetId}: - post: - description: |- - Create links between cells and samples. - - Cell objects of the same group can be linked to sample objects from multiple sample groups, but only within the same study. - operationId: createCellGroupSampleGroupLinkAsCurator - parameters: - - description: The ID (accession) of the cell group object - in: path - name: sourceId - required: true - schema: - type: string - - description: The ID (accession) of the sample group object - in: path - name: targetId - required: true - schema: - type: string - responses: - "200": - content: { } - description: Cell objects have been partially linked to samples. - "204": - content: { } - description: Cell objects have been fully linked to samples. - "400": - content: { } - description: Sample group, cell group or samples to the link were not found. - "401": - content: { } - description: |- - 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": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Create links between cells and samples - tags: - - Cell integration as Curator -components: - schemas: - AttributeInvalidValue: - $ref: "./schemas/integration/AttributeInvalidValue.yaml" - AttributeValidationSummary: - $ref: "./schemas/integration/AttributeValidationSummary.yaml" - BatchOfIds: - $ref: "./schemas/integration/BatchOfIds.yaml" - DataItem: - $ref: "./schemas/integration/DataItem.yaml" - DataPresentation: - $ref: "./schemas/integration/DataPresentation.yaml" - GroupValidationSummary: - $ref: "./schemas/integration/GroupValidationSummary.yaml" - IMetadata: - $ref: "./schemas/integration/IMetadata.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - Library: - $ref: "./schemas/library/Library.yaml" - Link: - $ref: "./schemas/integration/Link.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - MetadataContent: - $ref: "./schemas/common/MetadataContent.yaml" - MetadataPresentation: - $ref: "./schemas/integration/MetadataPresentation.yaml" - MetadataWithId: - $ref: "./schemas/common/MetadataWithId.yaml" - OmicsResponse: - $ref: "./schemas/integration/OmicsResponse.yaml" - OmicsResponseDataPresentation: - $ref: "./schemas/integration/OmicsResponseDataPresentation.yaml" - OmicsResponseMetadataPresentation: - $ref: "./schemas/integration/OmicsResponseMetadataPresentation.yaml" - OmicsResponseMetadataWithId: - $ref: "./schemas/integration/OmicsResponseMetadataWithId.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - Preparation: - $ref: "./schemas/preparation/Preparation.yaml" - Relationships: - $ref: "./schemas/integration/Relationships.yaml" - SourceTypePair: - $ref: "./schemas/integration/SourceTypePair.yaml" - StreamingOutput: - $ref: "./schemas/integration/StreamingOutput.yaml" - Study: - $ref: "./schemas/study/Study.yaml" - StudyValidationSummary: - $ref: "./schemas/integration/StudyValidationSummary.yaml" - TaskInfo: - $ref: "./schemas/tasks/TaskInfo.yaml" - ValidationError: - $ref: "./schemas/integration/ValidationError.yaml" - SearchStudyRequest: - $ref: "./schemas/integration/SearchStudyRequest.yaml" - AppliedFilter: - $ref: "./schemas/integration/AppliedFilter.yaml" - PageRequest: - $ref: "./schemas/integration/PageRequest.yaml" - FindObjectsResponse: - $ref: "./schemas/integration/FindObjectsResponse.yaml" - ObjectsPage: - $ref: "./schemas/integration/ObjectsPage.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - StudySearchInfo: - $ref: "./schemas/integration/StudySearchInfo.yaml" - MetainfoKeyForSummary: - $ref: "./schemas/integration/MetainfoKeyForSummary.yaml" - FilterOptionGroup: - $ref: "./schemas/integration/FilterOptionGroup.yaml" - FilterOption: - $ref: "./schemas/integration/FilterOption.yaml" - AFile: - $ref: "./schemas/afile/AFile.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/integrationUser.yaml b/openapi/v1/integrationUser.yaml deleted file mode 100644 index 547c191c..00000000 --- a/openapi/v1/integrationUser.yaml +++ /dev/null @@ -1,5194 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the integrationUser APIs for ODM. These are typically used to find and retrieve study, sample and processed (signal) data and metadata for a given query. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - - The server response will be in the section that follows. - title: ODM Integration API - version: default-released -tags: -- name: Expression integration as User -- name: Files integration as User -- name: Flow Cytometry (FACS) integration as User -- name: Library integration as User -- name: Linkage as User -- name: Omics queries as User -- name: Preparation integration as User -- name: Sample integration as User -- name: Study integration as User -- name: Variant integration as User -paths: - /api/v1/as-user/data-types: - get: - description: This endpoint is for instructional uses and can be used to get - the latest list of Data Types. - operationId: getDataTypesAsUser - responses: - "200": - content: - application/json: - schema: - items: - type: string - type: array - uniqueItems: true - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Lists all available data types. - tags: - - Linkage as User - /api/v1/as-user/data-types/links: - get: - description: "This endpoint should be used for instructional needs, and can\ - \ be used in order to get the links between the Data Types." - operationId: getDataTypesLinksAsUser - parameters: - - description: Return only links with the specified data type. - in: query - name: type - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/SourceTypePair" - type: array - uniqueItems: true - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: List all possible links between data types that match the specified - criteria. - tags: - - Linkage as User - /api/v1/as-user/integration/link/expression/by/library/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionByLibraryAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve expression run-level data by querying related library ID (accession) - tags: - - Expression integration as User - /api/v1/as-user/integration/link/expression/by/preparation/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionByPreparationAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve expression run-level data by querying related preparation - ID (accession) - tags: - - Expression integration as User - /api/v1/as-user/integration/link/expression/by/sample/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionBySampleAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve expression run-level data by querying related sample ID (accession) - tags: - - Expression integration as User - /api/v1/as-user/integration/link/expression/group/by/study/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionGroupsByStudyAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/MetadataWithId" - type: array - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group metadata by querying study ID (accession) - tags: - - Expression integration as User - /api/v1/as-user/integration/link/expression/run-to-libraries/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionRunToLibraryPairsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve run-library pairs by group id. Pagination is based on unique\ - \ runs, not unique pairs." - tags: - - Expression integration as User - /api/v1/as-user/integration/link/expression/run-to-preparations/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionRunToPreparationPairsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve run-preparation pairs by group id. Pagination is based on\ - \ unique runs, not unique pairs." - tags: - - Expression integration as User - /api/v1/as-user/integration/link/expression/run-to-samples/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getExpressionRunToSamplePairsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ - \ runs, not unique pairs." - tags: - - Expression integration as User - /api/v1/as-user/integration/link/flow-cytometry/by/sample/{id}: - get: - description: |+ - ## 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. - - operationId: getFlowCytometryBySampleAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve flow cytometry run-level data by querying related sample ID - (accession) - tags: - - Flow Cytometry (FACS) integration as User - /api/v1/as-user/integration/link/flow-cytometry/group/by/study/{id}: - get: - description: |+ - ## 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. - - operationId: getFlowCytometryGroupsByStudyAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/MetadataWithId" - type: array - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group metadata by querying study ID (accession) - tags: - - Flow Cytometry (FACS) integration as User - /api/v1/as-user/integration/link/flow-cytometry/run-to-samples/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getFlowCytometryRunToSamplePairsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ - \ runs, not unique pairs." - tags: - - Flow Cytometry (FACS) integration as User - /api/v1/as-user/integration/link/libraries/by/samples: - get: - description: |+ - Retrieve library metadata objects whose linked sample metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getLibrariesBySamplesAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: filter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve library metadata by querying related samples - tags: - - Library integration as User - /api/v1/as-user/integration/link/library/by/sample/{id}: - get: - operationId: getLibraryBySampleAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/Library" - type: array - text/tab-separated-values: - schema: - items: - $ref: "#/components/schemas/Library" - type: array - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve library metadata by querying related sample ID (accession) - tags: - - Library integration as User - /api/v1/as-user/integration/link/library/group/by/study/{id}: - get: - operationId: getLibraryGroupsByStudyAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/MetadataWithId" - type: array - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group metadata by querying study ID (accession) - tags: - - Library integration as User - /api/v1/as-user/integration/link/library/libraries-to-samples/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getLibraryLinksToSamplesAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve library-samples pairs by group id. Pagination is based on\ - \ unique libraries, not unique pairs." - tags: - - Library integration as User - /api/v1/as-user/integration/link/preparation/by/sample/{id}: - get: - operationId: getPreparationBySampleAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/Preparation" - type: array - text/tab-separated-values: - schema: - items: - $ref: "#/components/schemas/Preparation" - type: array - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve preparation metadata by querying related sample ID (accession) - tags: - - Preparation integration as User - /api/v1/as-user/integration/link/preparation/group/by/study/{id}: - get: - operationId: getPreparationGroupsByStudyAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/MetadataWithId" - type: array - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group metadata by querying study ID (accession) - tags: - - Preparation integration as User - /api/v1/as-user/integration/link/preparation/preparations-to-samples/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getPreparationLinksToSamplesAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ - \ preparations, not unique pairs." - tags: - - Preparation integration as User - /api/v1/as-user/integration/link/preparations/by/samples: - get: - description: |+ - Retrieve preparation metadata objects whose linked sample metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getPreparationsBySamplesAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: filter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve preparation metadata by querying related samples - tags: - - Preparation integration as User - /api/v1/as-user/integration/link/samples/by/libraries: - get: - description: |+ - Retrieve sample metadata objects whose linked library metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getSamplesByLibrariesAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: filter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve sample metadata by querying related libraries - tags: - - Sample integration as User - /api/v1/as-user/integration/link/samples/by/preparations: - get: - description: |+ - Retrieve sample metadata objects whose linked preparation metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getSamplesByPreparationsAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: filter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve sample metadata by querying related preparations - tags: - - Sample integration as User - /api/v1/as-user/integration/link/samples/by/study/{id}: - get: - description: |+ - ## 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. - - operationId: getSamplesByStudyAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve sample metadata by querying related study ID (accession) - tags: - - Sample integration as User - /api/v1/as-user/integration/link/studies/by/libraries: - get: - description: |+ - Retrieve study metadata objects whose linked library metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getStudiesByLibrariesAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: filter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve study metadata objects by querying related libraries - tags: - - Study integration as User - /api/v1/as-user/integration/link/studies/by/preparations: - get: - description: |+ - Retrieve study metadata objects whose linked preparation metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getStudiesByPreparationsAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: filter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve study metadata objects by querying related preparations - tags: - - Study integration as User - /api/v1/as-user/integration/link/studies/by/samples: - get: - description: |+ - Retrieve study metadata objects whose linked sample metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. - - operationId: getStudiesBySamplesAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by sample metadata (key-value metadata pair(s)). E.g. - "Species or strain"="Homo sapiens" - in: query - name: filter - schema: - type: string - - description: Search for study metadata objects via a full-text query over - all sample metadata fields. E.g. "RNA-Seq of human dendritic cells". Queries - matching dictionary terms are automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve study metadata objects by querying related samples - tags: - - Study integration as User - /api/v1/as-user/integration/link/study/by/sample/{id}: - get: - operationId: getStudyBySampleAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Study" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve study metadata by querying sample ID (accession) - tags: - - Study integration as User - /api/v1/as-user/integration/link/studies/by/files: - get: - description: |+ - Retrieve study metadata objects whose linked attached files metadata matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Attachment files (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - - ## 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. - - ## 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. - - operationId: getStudiesByFilesAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by attachment file metadata (key-value metadata pair(s)). E.g. - "Species or strain"="Homo sapiens" - in: query - name: filter - schema: - type: string - - description: Search for study metadata objects via a full-text query over - all attached files metadata fields. E.g. "RNA-Seq of human dendritic cells". Queries - matching dictionary terms are automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve study metadata objects by querying related attachment files - tags: - - Study integration as User - /api/v1/as-user/integration/link/study/by/file/{id}: - get: - operationId: getStudyByFileAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Study" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve study metadata by querying attachment file ID (accession) - tags: - - Study integration as User - /api/v1/as-user/integration/fulltext/search/studies: - post: - description: |- - Find studies and retrieve their data using full-text search or facet search by metadata of study itself or child object (samples, libraries, preparations, signal groups). Only studies available to that users are returned. - - The endpoint returns: - - a list of studies with their metadata summary; - - a list of filter objects with counts; filter list is the same for all users in an and can be configured in “Study Browser” application via "Configure facets" (by a user with corresponding permission); for each filter object, only the first 5 most popular facets are returned, the facts are sorted by the count value in descending order; only studies available to user are counted. - - Filter attributes for fulltext search: - - `"type": "FULL_TEXT"` - - `"match"` - - `"mode"` - - For details on two latter ones, see the request body model. Only one filter with `"type=": "FULL_TEXT"` can be passed in the request body. - - To filter studies via facets, the filter attributes are necessary: type = SELECT, filterOptionId. For details, use the request body model. filterOptionId can be obtained from the response body when the endpoint is first called without filters. Multiple filters with type = SELECT can be passed in the request body. Filters within the same attribute are automatically used with the OR operator. Filters of different attributes are automatically used with the AND operator. This behaviour can not be changed. - - It is possible to call the endpoint without any filters, then all the studies available to the user are returned. - - The endpoint searches by staging version of the object metadata. - operationId: searchStudiesByFilterAsUser - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SearchStudyRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FindObjectsResponse" - description: The request was successful. Retrieved studies and filters. - "400": - content: {} - description: Invalid request body - "401": - content: {} - description: User is not authenticated. Please supply a valid Genestack - API token in the `Genestack-API-Token` HTTP header (this token may be - obtained from the Genestack UI _Profile_ page). - "500": - content: {} - description: "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." - security: - - Genestack-API-Token: [] - summary: Find and retrieve studies by full-text or facet query - tags: - - Study integration as User - x-codegen-request-body-name: request - /api/v1/as-user/integration/link/variant/by/sample/{id}: - get: - description: |+ - ## 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. - - operationId: getVariantBySampleAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve variant run-level data by querying related sample ID (accession) - tags: - - Variant integration as User - /api/v1/as-user/integration/link/variant/group/by/study/{id}: - get: - description: |+ - ## 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. - - operationId: getVariantGroupsByStudyAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/MetadataWithId" - type: array - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group metadata by querying study ID (accession) - tags: - - Variant integration as User - /api/v1/as-user/integration/link/variant/run-to-samples/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: getVariantRunToSamplePairsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ - \ runs, not unique pairs." - tags: - - Variant integration as User - /api/v1/as-user/links: - get: - description: Please make sure that this endpoint should be used only for getting - all links to a specific object. In case you specify both firstId and secondId - an expected answer would be true for existing links and false for no link - between the objects. - operationId: getLinksByParamsAsUser - parameters: - - description: Object ID (accession) (e.g. accession of study) - in: query - name: firstId - required: true - schema: - type: string - - description: Type of the object (e.g. study) - in: query - name: firstType - schema: - type: string - - description: Object ID (accession) (e.g. accession of study) - in: query - name: secondId - schema: - type: string - - description: Type of the object (e.g. study) - in: query - name: secondType - schema: - type: string - - description: Param says to skip that many links before beginning to return - links. - in: query - name: offset - schema: - default: 0 - format: int32 - type: integer - - description: Param says to limit the count of returned links. - in: query - name: limit - schema: - default: 1000 - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Finds existing links matching the specified criteria. - tags: - - Linkage as User - /api/v1/as-user/links/get-batch: - post: - description: Please make sure to use that endpoint for batch calls only. You - are not allowed to pass 'mixed' objects. e.g. Studies and Samples at the same - time. Please always specify firstType. - operationId: getLinksByIdsAsUser - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/BatchOfIds" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: Entities cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: "Finds existing links by passing many IDs. \nPagination goes through\ - \ all links matched the criteria." - tags: - - Linkage as User - x-codegen-request-body-name: request - /api/v1/as-user/omics/expression/data: - get: - description: "Retrieve any data objects whose linked data matches all supplied\ - \ conditions. \n\nNote: An expression data query must be supplied.\n\n## Conditions\n\ - It is possible to supply conditions for:\n\n1. Samples (full-text or metadata\ - \ key-value pair)\n2. Parent studies (full-text or metadata key-value pair)\n\ - 3. Linked variant objects (list of data key-value pairs)\n4. Linked flow cytometry\ - \ objects (list of data key-value pairs)\n5. Linked any data (except variant\ - \ and flow cytometry) objects (list of data key-value pairs)\n\n## Metadata\ - \ full-text queries\nSingle 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 (`\\\ - `).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Data\ - \ queries\nData queries must be a list of key-value pairs, separated by whitespace.\ - \ The set of valid keys depends on the specific query type, and is documented\ - \ in the query parameter summary. The values can be simple non-whitespace\ - \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ - \ the value may be be a comma-delimited list of string values. Others require\ - \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ - \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ - \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ - useVersions=v2 (query the second version. If there is no second version then\ - \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ - \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ - \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ - \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ - \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ - \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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. To return all results iterate through pages using cursor \ - \ values until the `resultsExhausted` response field is true.\n\n" - operationId: omicsSearchExpressionDataAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve data objects by searching across multiple data types - tags: - - Omics queries as User - /api/v1/as-user/omics/expression/group: - get: - description: |+ - Retrieve group objects whose linked data matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. To return all results iterate through pages using cursor values until the `resultsExhausted` response field is true. - - operationId: omicsSearchExpressionGroupsAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group objects by searching across multiple data types - tags: - - Omics queries as User - /api/v1/as-user/omics/expression/streamed-data: - get: - description: "Stream data from a given group for a tabular file that matches\ - \ a sample/library/preparations query/filter. If no query/filters are supplied\ - \ all expression data is returned. If a metadata filter is specified, this\ - \ endpoint will only return expression data that is associated with a sample\ - \ via the Sample Source ID attribute.\n## Conditions\nIt is possible to supply\ - \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ - \ Libraries (full-text or metadata key-value pair)\n3. Preparations (full-text\ - \ or metadata key-value pair)\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata\ - \ 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 (`\"`).\n\n## Combinations\nMetadata 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.\n \n\n## Error Handling\n In case\ - \ of unexpected internal error during data retrieval, the last line of the\ - \ body will contain an error message, prefixed by the `#` character \n\n" - operationId: omicsSearchStreamedExpressionDataAsUser - parameters: - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g.`"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `features.NAME=1007_s_at`\ - \ or `features.\"Average Mz\"=2.218`. As in the case of sample metadata\ - \ queries, single words can be supplied as is; otherwise, use speech marks\ - \ (`\"`) to quote queries that include whitespace. \n2. It is possible to\ - \ specify a set of possible values, separated by comma: `features.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`features.Name_1 > 3`: Select all rows where the\ - \ feature attribute Name_1 values are greater than 3. \n`features.Name_2\ - \ >= 6`: Select all rows where the feature attribute Name_2 values are greater\ - \ than or equal to 6. \n`-3 < features.Name_3 < 3`: Select all rows where\ - \ the feature attribute Name_3 values lie within the interval between -3\ - \ and 3. \n4. Use substring search to get the records where the attribute\ - \ field contains the provided substring: `features.attribute1 =~ \"some\ - \ text\"`. \n5. The first column for each original data file is identified\ - \ as feature accession (typically, it contains gene or protein names, accession\ - \ IDs, etc.). Searching by such feature accession would significantly outperform\ - \ more complex queries by combining the other feature attributes. To enable\ - \ such a search, use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`values.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < values.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`) logical operators and parentheses: \n\ - * `features.Name_1!=A`: Select all rows where Name_1 is not A. \n* `features.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `features.Name_1=A\ - \ AND features.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `features.Name_1=A && features.Name_2=B`: Equivalent to the example\ - \ above. \n* `features.Name_1=A OR features.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `features.Name_1=A || features.Name_2=B`:\ - \ Equivalent to the example above. \n* `features.Name_1=A AND (features.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Deprecated; use `exQuery` parameter instead. Filters results\ - \ by the feature column (e.g., Gene ID). The feature parameter value must\ - \ match the name of the identifier in the GCT file (under the NAME column).\ - \ Example: `ENSG00000077044`" - explode: true - in: query - name: featureList - schema: - items: - type: string - example: KRAS - type: array - style: form - - description: Accession of the expression group object (GCT) - in: query - name: groupAccession - required: true - schema: - type: string - - description: The number of digits after the decimal point for floating-point - values. The final value is rounded up. Must be non-negative. The default - is 4. - in: query - name: roundDigits - schema: - default: 4 - format: int32 - type: integer - responses: - "200": - content: - text/csv: - schema: - $ref: "#/components/schemas/StreamingOutput" - description: Stream of retrieved Expression data. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Stream data from a given tabular file - tags: - - Omics queries as User - /api/v1/as-user/omics/flow-cytometry/data: - get: - description: |+ - Retrieve flow cytometry data objects whose linked data matches all supplied conditions. - - Note: A flow cytometry data query must be supplied. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. To return all results iterate through pages using cursor values until the `resultsExhausted` response field is true. - - operationId: omicsSearchFlowCytometryDataAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve flow cytometry data objects by searching across multiple data - types - tags: - - Omics queries as User - /api/v1/as-user/omics/flow-cytometry/group: - get: - description: |+ - Retrieve group objects whose linked data matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. To return all results iterate through pages using cursor values until the `resultsExhausted` response field is true. - - operationId: omicsSearchFlowCytometryGroupsAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group objects by searching across multiple data types - tags: - - Omics queries as User - /api/v1/as-user/omics/samples: - get: - description: |+ - Retrieve sample metadata objects whose linked data matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. To return all results iterate through pages using cursor values until the `resultsExhausted` response field is true. - - operationId: omicsSearchSamplesAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve sample metadata objects by searching across multiple data - types - tags: - - Omics queries as User - /api/v1/as-user/omics/variant/data: - get: - description: |+ - Retrieve variant data objects whose linked data matches all supplied conditions. - - Note: A variant data query must be supplied. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked expression objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. To return all results iterate through pages using cursor values until the `resultsExhausted` response field is true. - - operationId: omicsSearchVariantDataAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve variant data objects by searching across multiple data types - tags: - - Omics queries as User - /api/v1/as-user/omics/variant/group: - get: - description: |+ - Retrieve group objects whose linked data matches all supplied conditions. - - ## Conditions - It is possible to supply conditions for: - - 1. Samples (full-text or metadata key-value pair) - 2. Parent studies (full-text or metadata key-value pair) - 3. Linked variant objects (list of data key-value pairs) - 4. Linked flow cytometry objects (list of data key-value pairs) - 5. Linked any data (except variant and flow cytometry) objects (list of data key-value pairs) - - ## 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 (`"`). - - ## Data queries - Data queries must be a list of key-value pairs, separated by whitespace. The set of valid keys depends on the specific query type, and is documented in the query parameter summary. The values can be simple non-whitespace strings, or strings enclosed by speech marks (`"`). Depending on the key, the value may be be a comma-delimited list of string values. Others require numerical values. Ranges can be supplied with `(0:1)` syntax, OR values 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. To return all results iterate through pages using cursor values until the `resultsExhausted` response field is true. - - operationId: omicsSearchVariantGroupsAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: | - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - in: query - name: studyFilter - schema: - type: string - - description: Search for objects via a full-text query over all study metadata - fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: studyQuery - schema: - type: string - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: libraryFilter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: libraryQuery - schema: - type: string - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: preparationFilter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: preparationQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ - \ `\"Variant Source\"=dbSNP`." - in: query - name: vxFilter - schema: - type: string - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ - \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ - \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ - \ to quote queries that include whitespace. \n2. It is possible to specify\ - \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ - \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ - \ all rows where the feature attribute Name_2 values are greater than or\ - \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ - \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ - \ Use substring search to get the records where the attribute field contains\ - \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ - \ first column for each original data file is identified as feature accession\ - \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ - \ by such feature accession would significantly outperform more complex\ - \ queries by combining the other feature attributes. To enable such a search,\ - \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses: \n\ - * `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n* `feature.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `feature.Name_1=A\ - \ AND feature.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `feature.Name_1=A && feature.Name_2=B`: Equivalent to the example\ - \ above. \n* `feature.Name_1=A OR feature.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `feature.Name_1=A || feature.Name_2=B`:\ - \ Equivalent to the example above. \n* `feature.Name_1=A AND (feature.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Filter by expression metadata (key-value metadata pair(s)).\ - \ E.g. `\"Genome Version\"=hg19-BROAD`." - in: query - name: exFilter - schema: - type: string - - description: "Search for objects linked to flow cytometry data via data query\ - \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ - CD45+, live\"` `MinValue=3.5`" - in: query - name: fxQuery - schema: - type: string - - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ - \ E.g. `Organ=blood`." - in: query - name: fxFilter - schema: - type: string - - description: "Unique identifier (accession) of Reference Genome object." - in: query - name: referenceGenomeId - schema: - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OmicsResponse" - description: Omics query result. - "400": - content: {} - description: Invalid data in request. See error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve group objects by searching across multiple data types - tags: - - Omics queries as User - /api/v1/as-user/omics/variant/streamed-data: - get: - description: |+ - Stream data from a given group for a VCF file that matches a sample query/filter. If no query/filters are supplied all variant data is returned. If a metadata filter is specified, this endpoint will only return variant data that is associated with a sample via metadata attribute. - - ## Conditions - It is possible to supply conditions for Samples (full-text or metadata key-value pair) - - ## 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. - - operationId: omicsSearchStreamedVariantDataAsUser - parameters: - - description: | - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - in: query - name: sampleFilter - schema: - type: string - - description: Search for objects via a full-text query over all sample metadata - fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: sampleQuery - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: "Search for objects linked to expression data and originally\ - \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ - \ value>=1.50`\n For the case when the original data is represented by multiple\ - \ attributes per feature scenarios, extended filtering syntax is as follows:\ - \ \n1. By feature attribute value for numeric and string attributes: `features.NAME=1007_s_at`\ - \ or `features.\"Average Mz\"=2.218`. As in the case of sample metadata\ - \ queries, single words can be supplied as is; otherwise, use speech marks\ - \ (`\"`) to quote queries that include whitespace. \n2. It is possible to\ - \ specify a set of possible values, separated by comma: `features.NAME=1007_s_at,121_at`.\ - \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ - \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ - \ ranges as follows: \n`features.Name_1 > 3`: Select all rows where the\ - \ feature attribute Name_1 values are greater than 3. \n`features.Name_2\ - \ >= 6`: Select all rows where the feature attribute Name_2 values are greater\ - \ than or equal to 6. \n`-3 < features.Name_3 < 3`: Select all rows where\ - \ the feature attribute Name_3 values lie within the interval between -3\ - \ and 3. \n4. Use substring search to get the records where the attribute\ - \ field contains the provided substring: `features.attribute1 =~ \"some\ - \ text\"`. \n5. The first column for each original data file is identified\ - \ as feature accession (typically, it contains gene or protein names, accession\ - \ IDs, etc.). Searching by such feature accession would significantly outperform\ - \ more complex queries by combining the other feature attributes. To enable\ - \ such a search, use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ - \ \nThe `value` keyword can be used to select rows where the sample (library\ - \ or preparation) measurements has values from a certain range. Examples:\ - \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ - \ multiple measurements for a single item, such as a sample (library or\ - \ preparation), use the measurement name to specify the exact column type,\ - \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ - \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ - \ rows where the measurement attribute intensity is not equal 2 and is not\ - \ an empty value. \n`values.p_value > 3`: Selects all rows where the measurement\ - \ attribute 'p_value' values are greater than 3. \n`-3 < values.FC < 3`:\ - \ Selects all rows where the measurement attribute 'FC' values lie within\ - \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ - \ been deprecated and should be replaced with the aforementioned comparisons.\n\ - \ \nCombine multiple filters for different feature attributes and measurements\ - \ using `AND` (`&&`), `OR` (`||`) logical operators and parentheses: \n\ - * `features.Name_1!=A`: Select all rows where Name_1 is not A. \n* `features.Name_1!=A,B,C`:\ - \ Select all rows where Name_1 is not A, B, or C. \n* `features.Name_1=A\ - \ AND features.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ - \ B. \n* `features.Name_1=A && features.Name_2=B`: Equivalent to the example\ - \ above. \n* `features.Name_1=A OR features.Name_2=B`: Select all rows where\ - \ Name_1 is A or Name_2 is B. \n* `features.Name_1=A || features.Name_2=B`:\ - \ Equivalent to the example above. \n* `features.Name_1=A AND (features.Name_2=B\ - \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ - \ B or minimal possible measurement value is 1.0." - in: query - name: exQuery - schema: - type: string - - description: "Search for objects linked to variant data by SNPs properties. Filtering is currently supported by `filter`, `id`, `region` and `info` keywords, - as well as `exists` keyword for `INFO` field and their logical combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators with standard boolean precedence. Keyword case is ignored.\n - * `filter` corresponds to the `FILTER` column in the original vcf file. Could be either equals or not equals to `PASS` : `filter = PASS` - or `filter != pass`.\n - * `id` is a string value that corresponds to the `ID` column. Multiple values could be added via a comma. Expression `id = rs3214,rg1234` is equivalent - to `id = rs3214 or id = rg1234`.\n - * `region` corresponds to CHROM and POS columns. Supports querying by the whole chromosome `region = chr1` , by interval within a chromosome - `region = chr1:4567-9876543` by exact position `region = chr1:456789` or by indefinite ranges like `region = x:3456789-*` . Multiple regions could be - separated via comma, e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767 or region = chr3`.\n - * `feature` is the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. - By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`, variants located within the same genomic region as the specified gene(s) will be retrieved.\n - * Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. Due to the limits of precision in floating point numbers, - we use a small range of 0.0000001 to identify close matches. This means any differences smaller than that won't be detected. For more precise results, please use range queries." - in: query - name: vxQuery - schema: - type: string - - description: Accession of the variant group object (VCF) - in: query - name: groupAccession - required: true - schema: - type: string - responses: - "200": - content: - text/tab-separated-values: - schema: - $ref: "#/components/schemas/StreamingOutput" - description: Stream of retrieved Variant data. - "400": - content: { } - description: Invalid data in request. See error message for details. - "401": - content: { } - description: |- - 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": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Stream data from a given VCF file - tags: - - Omics queries as User - /api/v1/as-user/integration/link/files/by/study/{id}: - get: - operationId: getFilesByStudyAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Select `true` in order to include file structure (contents) for .h5, .h5ad, .zip, .gz to the response. - in: query - name: includeContents - required: false - schema: - default: false - type: boolean - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/AFile" - type: array - text/tab-separated-values: - schema: - items: - $ref: "#/components/schemas/AFile" - type: array - description: The request was successful. The returned value is a list of objects. - "400": - content: { } - description: Invalid data in the request. See the error message for details. - "401": - content: { } - description: |- - 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": - content: { } - description: Object with provided accession could not be found in ODM. - "500": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Retrieve file's metadata by study ID - tags: - - Files integration as User -components: - schemas: - BatchOfIds: - $ref: "./schemas/integration/BatchOfIds.yaml" - DataItem: - $ref: "./schemas/integration/DataItem.yaml" - DataPresentation: - $ref: "./schemas/integration/DataPresentation.yaml" - IMetadata: - $ref: "./schemas/integration/IMetadata.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - Library: - $ref: "./schemas/library/Library.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - MetadataContent: - $ref: "./schemas/common/MetadataContent.yaml" - MetadataPresentation: - $ref: "./schemas/integration/MetadataPresentation.yaml" - MetadataWithId: - $ref: "./schemas/common/MetadataWithId.yaml" - OmicsResponse: - $ref: "./schemas/integration/OmicsResponse.yaml" - OmicsResponseDataPresentation: - $ref: "./schemas/integration/OmicsResponseDataPresentation.yaml" - OmicsResponseMetadataPresentation: - $ref: "./schemas/integration/OmicsResponseMetadataPresentation.yaml" - OmicsResponseMetadataWithId: - $ref: "./schemas/integration/OmicsResponseMetadataWithId.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - Preparation: - $ref: "./schemas/preparation/Preparation.yaml" - Relationships: - $ref: "./schemas/integration/Relationships.yaml" - SourceTypePair: - $ref: "./schemas/integration/SourceTypePair.yaml" - StreamingOutput: - $ref: "./schemas/integration/StreamingOutput.yaml" - Study: - $ref: "./schemas/study/Study.yaml" - SearchStudyRequest: - $ref: "./schemas/integration/SearchStudyRequest.yaml" - AppliedFilter: - $ref: "./schemas/integration/AppliedFilter.yaml" - PageRequest: - $ref: "./schemas/integration/PageRequest.yaml" - FindObjectsResponse: - $ref: "./schemas/integration/FindObjectsResponse.yaml" - ObjectsPage: - $ref: "./schemas/integration/ObjectsPage.yaml" - StudySearchInfo: - $ref: "./schemas/integration/StudySearchInfo.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - MetainfoKeyForSummary: - $ref: "./schemas/integration/MetainfoKeyForSummary.yaml" - FilterOptionGroup: - $ref: "./schemas/integration/FilterOptionGroup.yaml" - FilterOption: - $ref: "./schemas/integration/FilterOption.yaml" - AFile: - $ref: "./schemas/afile/AFile.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/job.yaml b/openapi/v1/job.yaml deleted file mode 100644 index f92f5296..00000000 --- a/openapi/v1/job.yaml +++ /dev/null @@ -1,827 +0,0 @@ -openapi: 3.1.0 -info: - description: | - - These API endpoints serve to start, control, monitor and retrieve results for a set of available Genestack jobs. - - A job is an arbitrary process that, once started, runs asynchronously in the background. - Upon starting a job the user receives a job execution identifier (`jobExecId`) that they can use to control and monitor the job and to retrieve the job result (output). - - #### Basic workflow: - - Start a job (POST endpoints) to return a `jobExecId` - Periodically poll the `GET /{jobExecId}/output` endpoint to get the job status for a given `jobExecId` - When the status is `COMPLETED` or `FAILED`, queries to the `GET /{jobExecId}/output` endpoint will also contain any output (result/errors) - - To retrieve more information about a job, such as start time etc., use the `GET /{jobExecId}/info` endpoint. - - #### Available statuses: - - - `STARTING`: initial job status - - `RUNNING`: the job has successfully started and is running - - `COMPLETED` (terminal): the job has completed and the result is available in the `GET /{jobExecId}/output` response - - `FAILED` (terminal): the job has failed, you can extract errors from the `GET /{jobExecId}/output` response - - `STOPPING`: a stop request has been initiated, the job is in the process of stopping - - `STOPPED` (terminal): the job has been stopped (it may be able to be restarted) - - `ABANDONED` (terminal): the job has been abandoned for an unknown reason, please contact your system administrator. - - `UNKNOWN`: the job status is unknown, please contact your system administrator. - title: Job API - version: default-released -tags: -- name: Data import jobs -- name: Data import via direct file upload -- name: Job operations -paths: - /api/v1/jobs/import/study: - post: - description: |2 - - When job finishes successfully the following **result** object can be obtained using `GET /job/{id}/output` request: - - ``` - { - "groupAccession": "GSF1234567" - } - ``` - operationId: startImportStudy - parameters: - - description: "Load duplicate data: the data from the link(s) has already been\ - \ previously loaded into ODM, and for **testing purposes**, you need to\ - \ load this data again." - in: query - name: allow_dups - schema: - default: false - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ImportMetadataRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Import study metadata from a TSV file - tags: - - Data import jobs - x-codegen-request-body-name: body - /api/v1/jobs/import/samples: - post: - description: |2 - - When job finishes successfully the following **result** object can be obtained using `GET /job/{id}/output` request: - - ``` - { - "groupAccession": "GSF1234567" - } - ``` - operationId: startImportSamples - parameters: - - description: "Load duplicate data: the data from the link(s) has already been\ - \ previously loaded into ODM, and for **testing purposes**, you need to\ - \ load this data again." - in: query - name: allow_dups - schema: - default: false - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ImportMetadataRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Import a group of sample metadata objects from a TSV file - tags: - - Data import jobs - x-codegen-request-body-name: body - /api/v1/jobs/import/samples/multipart: - post: - description: |2 - - When job finishes successfully the following **result** object can be obtained using `GET /job/{id}/output` request: - - ``` - { - "groupAccession": "GSF1234567" - } - ``` - operationId: startImportSamplesMultipart - requestBody: - content: - multipart/form-data: - schema: - $ref: "#/components/schemas/ImportMetadataFromMultipartRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Import a group of sample metadata objects from a TSV file via multipart/form-data upload - tags: - - Data import via direct file upload - x-codegen-request-body-name: body - /api/v1/jobs/import/libraries: - post: - description: |2 - - When job finishes successfully the following **result** object can be obtained using `GET /job/{id}/output` request: - - ``` - { - "groupAccession": "GSF1234567" - } - ``` - operationId: startImportLibraries - parameters: - - description: "Load duplicate data: the data from the link(s) has already been\ - \ previously loaded into ODM, and for **testing purposes**, you need to\ - \ load this data again." - in: query - name: allow_dups - schema: - default: false - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ImportMetadataRequest" - multipart/form-data: - schema: - $ref: "#/components/schemas/ImportMetadataFromMultipartRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Import a group of library metadata objects from a TSV file - tags: - - Data import jobs - x-codegen-request-body-name: body - /api/v1/jobs/import/libraries/multipart: - post: - description: |2 - - When job finishes successfully the following **result** object can be obtained using `GET /job/{id}/output` request: - - ``` - { - "groupAccession": "GSF1234567" - } - ``` - operationId: startImportLibrariesMultipart - requestBody: - content: - multipart/form-data: - schema: - $ref: "#/components/schemas/ImportMetadataFromMultipartRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Import a group of library metadata objects from a TSV file via multipart/form-data upload - tags: - - Data import via direct file upload - x-codegen-request-body-name: body - /api/v1/jobs/import/preparations: - post: - description: |2 - - When job finishes successfully the following **result** object can be obtained using `GET /job/{id}/output` request: - - ``` - { - "groupAccession": "GSF1234567" - } - ``` - operationId: startImportPreparations - parameters: - - description: "Load duplicate data: the data from the link(s) has already been\ - \ previously loaded into ODM, and for **testing purposes**, you need to\ - \ load this data again." - in: query - name: allow_dups - schema: - default: false - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ImportMetadataRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Import a group of preparation metadata objects from a TSV file - tags: - - Data import jobs - x-codegen-request-body-name: body - /api/v1/jobs/import/preparations/multipart: - post: - description: |2 - - When job finishes successfully the following **result** object can be obtained using `GET /job/{id}/output` request: - - ``` - { - "groupAccession": "GSF1234567" - } - ``` - operationId: startImportPreparationsMultipart - requestBody: - content: - multipart/form-data: - schema: - $ref: "#/components/schemas/ImportMetadataFromMultipartRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Import a group of preparation metadata objects from a TSV file via multipart/form-data upload - tags: - - Data import via direct file upload - x-codegen-request-body-name: body - /api/v1/jobs/import/cells: - post: - description: |2 - - The endpoint initiates a job to import cell data and creates a Cell Group to manage it. - - When job finishes successfully the following **result** object can be obtained using `GET /job/{id}/output` request: - - ``` - { - "groupAccession": "GSF1234567" - } - ``` - operationId: startImportCells - parameters: - - description: "Load duplicate data: the data from the link(s) has already been\ - \ previously loaded into ODM, and for **testing purposes**, you need to\ - \ load this data again." - in: query - name: allow_dups - schema: - default: false - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ImportCellsRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Import a group of cell data objects from a TSV file - tags: - - Data import jobs - x-codegen-request-body-name: body - /api/v1/jobs/import/cells/multipart: - post: - description: |2 - - The endpoint initiates a job to import cell data and creates a Cell Group to manage it. - - When job finishes successfully the following **result** object can be obtained using `GET /job/{id}/output` request: - - ``` - { - "groupAccession": "GSF1234567" - } - ``` - operationId: startImportCellsMultipart - requestBody: - content: - multipart/form-data: - schema: - $ref: "#/components/schemas/ImportCellsFromMultipartRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Import a group of cell data objects from a TSV file via multipart/form-data upload - tags: - - Data import via direct file upload - x-codegen-request-body-name: body - /api/v1/jobs/import/expression: - post: - description: |- - ## Data - This operation necessitates the URL of a tabular data file, which must be either in TSV or GCT 1.2 format. Consult the user guide for a comprehensive understanding of the file content requirements. The endpoint is capable of handling uploads of any data type, which can be detailed in the parameters section, not only Gene Expression data. - - ## Metadata - It is also possible to optionally supply the URL of a metadata file. This metadata will be used as the original metadata for the created objects. The file is expected to contain single record with metadata describing the uploaded signal file. - ## Metadata file format - * Extension: any, `.zip` and `.gz` extensions are treated as archives and get decompressed - * Format: plain text, Tab-separated format (TSV), attribute names and record values are separated with tabs (`U+0009`), lines are separated with `CRLF` sequence (`U+000D U+000A`) - * Header: the first line is treated as table header that contains attribute names - * Records: the second line contains the values for each of the attributes described in the header line. Values represent single string or list of strings. List values are separated using the "pipe" `|` (`U+007C`) separator. Values are trimmed of whitespace before parsing, and a literal `|` (`U+007C`) character may be escaped by repeating it twice. - * Skip zeros in original data file: If this option is selected, zeros in the file will be ignored, thus conserving time and space. This option is particularly useful for handling very sparse data such as Single Cell data. - operationId: startImportExpression - parameters: - - description: "Load duplicate data: the data from the link(s) has already been\ - \ previously loaded into ODM, and for **testing purposes**, you need to\ - \ load this data again." - in: query - name: allow_dups - schema: - default: false - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ImportExpressionSignalRunRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Import any tabular data from TSV or GCT files - tags: - - Data import jobs - x-codegen-request-body-name: body - /api/v1/jobs/import/expression/multipart: - post: - description: |- - ## Data - This operation necessitates the URL of a tabular data file, which must be either in TSV or GCT 1.2 format. Consult the user guide for a comprehensive understanding of the file content requirements. The endpoint is capable of handling uploads of any data type, which can be detailed in the parameters section, not only Gene Expression data. - - ## Metadata - It is also possible to optionally supply the URL of a metadata file. This metadata will be used as the original metadata for the created objects. The file is expected to contain single record with metadata describing the uploaded signal file. - ## Metadata file format - * Extension: any, `.zip` and `.gz` extensions are treated as archives and get decompressed - * Format: plain text, Tab-separated format (TSV), attribute names and record values are separated with tabs (`U+0009`), lines are separated with `CRLF` sequence (`U+000D U+000A`) - * Header: the first line is treated as table header that contains attribute names - * Records: the second line contains the values for each of the attributes described in the header line. Values represent single string or list of strings. List values are separated using the "pipe" `|` (`U+007C`) separator. Values are trimmed of whitespace before parsing, and a literal `|` (`U+007C`) character may be escaped by repeating it twice. - * Skip zeros in original data file: If this option is selected, zeros in the file will be ignored, thus conserving time and space. This option is particularly useful for handling very sparse data such as Single Cell data. - operationId: startImportExpressionMultipart - requestBody: - content: - multipart/form-data: - schema: - $ref: "#/components/schemas/ImportExpressionSignalRunFromMultipartRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Import any tabular data from TSV or GCT files via multipart/form-data upload - tags: - - Data import via direct file upload - x-codegen-request-body-name: body - /api/v1/jobs/import/variant: - post: - description: "\nWhen job finishes successfully the following **result** object\ - \ can be obtained using `GET /job/{id}/output` request:\n\n```\n{\n \"\ - groupAccession\": \"GSF1234567\"\n}\n```\n " - operationId: startImportVariant - parameters: - - description: "Load duplicate data: the data from the link(s) has already been\ - \ previously loaded into ODM, and for **testing purposes**, you need to\ - \ load this data again." - in: query - name: allow_dups - schema: - default: false - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ImportSignalRunRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Import variation data and metadata from VCF and TSV files - tags: - - Data import jobs - x-codegen-request-body-name: body - /api/v1/jobs/import/variant/multipart: - post: - description: "\nWhen job finishes successfully the following **result** object\ - \ can be obtained using `GET /job/{id}/output` request:\n\n```\n{\n \"\ - groupAccession\": \"GSF1234567\"\n}\n```\n " - operationId: startImportVariantMultipart - requestBody: - content: - multipart/form-data: - schema: - $ref: "#/components/schemas/ImportSignalRunFomMultipartRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Import variation data and metadata from VCF and TSV files via multipart/form-data upload - tags: - - Data import via direct file upload - x-codegen-request-body-name: body - /api/v1/jobs/import/flow-cytometry: - post: - description: |- - This operation necessitates the URL of a gated flow cytometry data file, which must be in FACS format. - Consult the user guide for a comprehensive understanding of the file content requirements. - For flow cytometry data in FCS format use expression endpoint. - - When job finishes successfully the following **result** object - can be obtained using `GET /job/{id}/output` request: - - ``` - { - "groupAccession": "GSF1234567" - } - ``` - operationId: startImportFlowCytometry - parameters: - - description: "Load duplicate data: the data from the link(s) has already been\ - \ previously loaded into ODM, and for **testing purposes**, you need to\ - \ load this data again." - in: query - name: allow_dups - schema: - default: false - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ImportSignalRunRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Import flow-cytometry data and metadata from FACS and TSV files - tags: - - Data import jobs - x-codegen-request-body-name: body - /api/v1/jobs/import/flow-cytometry/multipart: - post: - description: |- - This operation necessitates the URL of a gated flow cytometry data file, which must be in FACS format. - Consult the user guide for a comprehensive understanding of the file content requirements. - For flow cytometry data in FCS format use expression endpoint. - - When job finishes successfully the following **result** object - can be obtained using `GET /job/{id}/output` request: - - ``` - { - "groupAccession": "GSF1234567" - } - ``` - operationId: startImportFlowCytometryMultipart - requestBody: - content: - multipart/form-data: - schema: - $ref: "#/components/schemas/ImportSignalRunFomMultipartRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Import flow-cytometry data and metadata from FACS and TSV files via multipart/form-data upload - tags: - - Data import via direct file upload - x-codegen-request-body-name: body - /api/v1/jobs/import/file: - post: - description: |- - In order to import a file as an attachment to a study, please fill in the following fields: - - * `source` - The source parameter is ignored and will be removed in version 1.61. The source is automatically extracted from the link. - * `dataLink` - a link to a file to import as an attachment. - The file will be associated with a study and will be searchable by its name and metadata. - * `metadataLink` - an optional URL of a metadata file to be used as the original metadata - for the created objects. The file must contain a single record describing the uploaded attachment. - * `studyAccession` - an accession of a study the file will be associated with. - * `dataClass` - file data class with the following possible values: `Bulk - transcriptomics`, `Single-cell transcriptomics`, `Differential abundance (FC, - pval, etc.)`, `Pathway analysis`, `Proteomics`, `Single-cell proteomics`, `Metabolomics`, - `Lipidomics`, `Epigenomics`, `DNA methylation`, `Chemoinformatics`, `Imaging features`, - `Gene panel data`, `Biomarker data`, `Physical measures`, `Blood counts`, `Other body - fluid counts`, `Nanopore`, `Flow Cytometry (FCS)`, `Document`, `Other`. - - When job finishes successfully the following **result** object can be obtained using `GET /job/{id}/output` request: - - ``` - { - "accession": "GSF1234567" - } - ``` - operationId: startImportAFile - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ImportAFileRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Import file as an attachment - tags: - - Data import jobs - x-codegen-request-body-name: body - /api/v1/jobs/import/file/multipart: - post: - description: |- - In order to import a file as an attachment to a study, please fill in the following fields: - - * `data` - a file to import as an attachment. - The file will be associated with a study and will be searchable by its name and metadata. - * `metadata` - an optional metadata file to be used as the original metadata - for the created objects. The file must contain a single record describing the uploaded attachment. - * `studyAccession` - an accession of a study the file will be associated with. - * `dataClass` - file data class with the following possible values: `Bulk - transcriptomics`, `Single-cell transcriptomics`, `Differential abundance (FC, - pval, etc.)`, `Pathway analysis`, `Proteomics`, `Single-cell proteomics`, `Metabolomics`, - `Lipidomics`, `Epigenomics`, `DNA methylation`, `Chemoinformatics`, `Imaging features`, - `Gene panel data`, `Biomarker data`, `Physical measures`, `Blood counts`, `Other body - fluid counts`, `Nanopore`, `Flow Cytometry (FCS)`, `Document`, `Other`. - - When job finishes successfully the following **result** object can be obtained using `GET /job/{id}/output` request: - - ``` - { - "accession": "GSF1234567" - } - ``` - operationId: startImportAFileMultipart - requestBody: - content: - multipart/form-data: - schema: - $ref: "#/components/schemas/ImportAFileFromMultipartRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - summary: Import file as an attachment via multipart/form-data upload - tags: - - Data import via direct file upload - x-codegen-request-body-name: body - /api/v1/jobs/{jobExecId}/info: - get: - operationId: info - parameters: - - in: path - name: jobExecId - required: true - schema: - format: int64 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: get information about one particular job execution - tags: - - Job operations - /api/v1/jobs/{jobExecId}/output: - get: - operationId: output - parameters: - - in: path - name: jobExecId - required: true - schema: - format: int64 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Output" - description: successful operation - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: retrieve job output (result) - tags: - - Job operations - /api/v1/jobs/{jobExecId}/restart: - put: - operationId: restart - parameters: - - in: path - name: jobExecId - required: true - schema: - format: int64 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: restart stopped (failed) job - tags: - - Job operations - /api/v1/jobs/{jobExecId}/stop: - put: - operationId: stop - parameters: - - in: path - name: jobExecId - required: true - schema: - format: int64 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Info" - description: successful operation - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: stop running job - tags: - - Job operations -components: - parameters: - AllowDuplicates: - description: "Load duplicate data: the data from the link(s) has already been\ - \ previously loaded into ODM, and for **testing purposes**, you need to load\ - \ this data again." - in: query - name: allow_dups - schema: - default: false - type: boolean - schemas: - ExceptionTypeAndMessage: - $ref: "./schemas/job/ExceptionTypeAndMessage.yaml" - ImportCellsRequest: - $ref: "./schemas/job/ImportCellsRequest.yaml" - ImportCellsFromMultipartRequest: - $ref: "./schemas/job/ImportCellsFromMultipartRequest.yaml" - ImportMetadataRequest: - $ref: "./schemas/job/ImportMetadataRequest.yaml" - ImportMetadataFromMultipartRequest: - $ref: "./schemas/job/ImportMetadataFromMultipartRequest.yaml" - ImportSignalRunRequest: - $ref: "./schemas/job/ImportSignalRunRequest.yaml" - ImportSignalRunFomMultipartRequest: - $ref: "./schemas/job/ImportSignalRunFomMultipartRequest.yaml" - ImportExpressionSignalRunRequest: - $ref: "./schemas/job/ImportExpressionSignalRunRequest.yaml" - ImportExpressionSignalRunFromMultipartRequest: - $ref: "./schemas/job/ImportExpressionSignalRunFromMultipartRequest.yaml" - ImportAFileRequest: - $ref: "./schemas/job/ImportAFileRequest.yaml" - ImportAFileFromMultipartRequest: - $ref: "./schemas/job/ImportAFileFromMultipartRequest.yaml" - Info: - $ref: "./schemas/job/Info.yaml" - JobRuntimeError: - $ref: "./schemas/job/JobRuntimeError.yaml" - Output: - $ref: "./schemas/job/Output.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/libraryCurator.yaml b/openapi/v1/libraryCurator.yaml deleted file mode 100644 index 832d2ccd..00000000 --- a/openapi/v1/libraryCurator.yaml +++ /dev/null @@ -1,470 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the libraryCurator APIs. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Library SPoT as Curator -paths: - /api/v1/as-curator/libraries: - get: - description: |- - Retrieve library metadata objects by searching/listing library metadata. - - ## 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. - - ## 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 variant objects. - operationId: searchLibrariesAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: filter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: |- - Attribute to sort by, with optional ascending/descending marker, of the form `"[+|-]"`. - - No marker or `"+"` indicates ascending sort, and `"-"` indicates descending sort. - - *Default:* sort by ID in ascending order. - in: query - name: sort - schema: - enum: - - id - - creation - - last_update - - name - - +id - - +creation - - +last_update - - +name - - -id - - -creation - - -last_update - - -name - type: string - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: List or search for library metadata objects - tags: - - Library SPoT as Curator - /api/v1/as-curator/libraries/by/group/{id}: - get: - operationId: getLibrariesByGroupAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve libraries related to the given group - tags: - - Library SPoT as Curator - /api/v1/as-curator/libraries/{id}: - get: - operationId: getLibraryAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Library" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single library object by ID (accession) - tags: - - Library SPoT as Curator - patch: - description: |- - ## 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. - operationId: updateLibraryAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataContent" - description: "Metadata in the form of `{key: value, key2: value2, ...}`" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Library" - description: "The objects was successfully created. The returned value is\ - \ the updated object, along with any warnings." - "400": - content: {} - description: The supplied object ID or metadata is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Update a library object - tags: - - Library SPoT as Curator - x-codegen-request-body-name: body - /api/v1/as-curator/libraries/{id}/versions: - get: - operationId: getLibraryVersionsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of object versions by ID - tags: - - Library SPoT as Curator - /api/v1/as-curator/libraries/{id}/versions/{version}: - get: - operationId: getLibraryByVersionAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Library" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single library object by ID (accession) - tags: - - Library SPoT as Curator -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - Library: - $ref: "./schemas/library/Library.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - MetadataContent: - $ref: "./schemas/common/MetadataContent.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/libraryUser.yaml b/openapi/v1/libraryUser.yaml deleted file mode 100644 index d5ed6482..00000000 --- a/openapi/v1/libraryUser.yaml +++ /dev/null @@ -1,413 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the libraryUser API endpoints for ODM. These are typically used to find and retrieve library metadata. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Library SPoT as User -paths: - /api/v1/as-user/libraries: - get: - description: |- - Retrieve library metadata objects by searching/listing library metadata. - - ## 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. - - ## 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 variant objects. - operationId: searchLibrariesAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by library metadata (key-value metadata pair(s)). E.g. - `"Library Type"=RNA-Seq-1` - in: query - name: filter - schema: - type: string - - description: Search for library objects via a full-text query over all library - metadata fields. E.g. `"illumina HiSeq500"`. Queries matching dictionary - terms are automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: |- - Attribute to sort by, with optional ascending/descending marker, of the form `"[+|-]"`. - - No marker or `"+"` indicates ascending sort, and `"-"` indicates descending sort. - - *Default:* sort by ID in ascending order. - in: query - name: sort - schema: - enum: - - id - - creation - - last_update - - name - - +id - - +creation - - +last_update - - +name - - -id - - -creation - - -last_update - - -name - type: string - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: List or search for library metadata objects - tags: - - Library SPoT as User - /api/v1/as-user/libraries/by/group/{id}: - get: - operationId: getLibrariesByGroupAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve libraries related to the given group - tags: - - Library SPoT as User - /api/v1/as-user/libraries/{id}: - get: - operationId: getLibraryAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Library" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single library object by ID (accession) - tags: - - Library SPoT as User - /api/v1/as-user/libraries/{id}/versions: - get: - operationId: getLibraryVersionsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of object versions by ID - tags: - - Library SPoT as User - /api/v1/as-user/libraries/{id}/versions/{version}: - get: - operationId: getLibraryByVersionAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Library" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single library object by ID (accession) - tags: - - Library SPoT as User -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - Library: - $ref: "./schemas/library/Library.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/manageData.yaml b/openapi/v1/manageData.yaml deleted file mode 100644 index ebc052b5..00000000 --- a/openapi/v1/manageData.yaml +++ /dev/null @@ -1,184 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the manageData APIs. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Manage Data -paths: - /api/v1/manage-data/detached-objects: - get: - description: |+ - Retrieve various types of detached data objects. An object is defined as 'detached' if it lacks any direct or indirect link to a root-level object, which in this context is referred to as 'study'. - Study is considered as detached object itself in case there are no links to objects at a lower level. - Data with specific `detachedObjectType` can be retrieved by specifying the types in `detachedObjectType` parameter. - The detached objects are sorted according to their `detachedObjectType` and `genestack:accession`. - Specific ordering can be observed in the list of supported detached types found below. - Pagination of the results can be conveniently managed using the `cursor` and `limit` parameters. - Supported types of detached objects (listed in the order of retrieval) include: - * `STUDY` - * `SAMPLE_GROUP` - * `LIBRARY_GROUP` - * `PREPARATION_GROUP` - * `CELL_GROUP` - * `TABULAR_DATA` - * `GENE_VARIANT` - * `FLOW_CYTOMETRY` - - operationId: getDetachedObjects - parameters: - - description: Filter by detached object type. Multiple values can be used to - filter the data. - explode: true - in: query - name: detachedObjectType - schema: - items: - type: string - type: array - style: form - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: limit - schema: - format: int32 - type: integer - - description: |- - This parameter enables retrieval of objects starting from a specific point. - Currently, it represents the accession of the last obtained object. However, please note that its functionality might change over time, so it is advisable to consider the cursor's content as a general string. - in: query - name: cursor - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/DetachedCollection" - description: Retrieved detached data. - "400": - content: {} - description: Detached data cannot be retrieved due to Bad Request. - "401": - content: {} - description: |- - 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). - "403": - content: {} - description: Not enough permissions to call method. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of detached objects - tags: - - Manage Data - /api/v1/manage-data/data: - delete: - description: |- - The objects will be marked for deletion. In case the selected object has more than one version, the endpoint deletes all of them. The following object types can be deleted by the endpoint: - * `STUDY` - * `SAMPLE_GROUP` - * `LIBRARY_GROUP` - * `PREPARATION_GROUP` - * `TABULAR_DATA` - * `GENE_VARIANT` - * `FLOW_CYTOMETRY` - * `REFERENCE_GENOME` - * `FILE` - - Moreover, if the selected object is linked to any other data, the endpoint will also delete the linked data associated with it according to the specified rules: - * If you delete a `STUDY`, the entire study with all the listed group types and files, will be removed. - * Deleting a `SAMPLE_GROUP` will result in the removal of all samples associated with this sample group, along with any linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`/`LIBRARY_GROUP`/`PREPARATION_GROUP`. The linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY` will be deleted, even if it is linked to another metadata group. - * If you delete `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`, all associated data, such as links and runs will be removed from ODM. - * If you delete `REFERENCE_GENOME`, searching for variant by variantFeature (genes) won't be available for linked VCF groups. - * If you delete `FILE`, the file will be removed from ODM. - operationId: deleteData - parameters: - - description: Accessions files to be deleted. - explode: false - in: query - name: accessions - schema: - items: - type: string - type: array - style: form - responses: - "202": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/ManagedObject" - type: array - description: The deletion of the following files and all linked data has - started. - "400": - content: {} - description: Deletion could not be performed due to Bad Request. - "401": - content: {} - description: |- - 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). - "403": - content: {} - description: Not enough permissions to call method or the file is not meant to be deleted. - "404": - content: {} - description: Some of the provided accessions could not be found in ODM. - Deletion will not be preformed. Please review your list and repeat the - attempt. - "406": - content: {} - description: Some of the provided accessions do not belong to the supported - object types. Deletion will not be performed. Please review your list - and repeat the attempt. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Delete objects from ODM - tags: - - Manage Data -components: - schemas: - DetachedCollection: - $ref: "./schemas/manage-data/DetachedCollection.yaml" - DetachedObject: - $ref: "./schemas/manage-data/DetachedObject.yaml" - ManagedObject: - $ref: "./schemas/manage-data/ManagedObject.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/odm.yaml b/openapi/v1/odm.yaml new file mode 100644 index 00000000..e2552d75 --- /dev/null +++ b/openapi/v1/odm.yaml @@ -0,0 +1,24810 @@ +--- +openapi: "3.0.3" +info: + description: "This swagger page describes the variantUser API endpoints for ODM.\ + \ These are typically used to find and retrieve variant data and metadata.\n\n\ + Before carrying out any API calls you will need an API token. API tokens can be\ + \ obtained under your profile within the Genestack software.\n\nTo try out calls\ + \ in this swagger page:\n\n1. Click the 'Authorize' button below to enter your\ + \ API token\n2. Scroll to the 'Parameters' section for the method you wish to\ + \ try out and click the 'Try it out' button\n3. Enter parameter values that you\ + \ wish to try\n4. Scroll to the bottom of the Parameters section and click the\ + \ 'Execute' bar that appears\n\n\n The server response will be in the section\ + \ that follows." + title: "ODM API" + version: "default-released" +tags: +- name: "Cells as Curator" +- name: "Cells as User" +- name: "Expression SPoT as Curator" +- name: "Expression SPoT as User" +- name: "Files as Curator" +- name: "Files as User" +- name: "Flow Cytometry SPoT as Curator" +- name: "Flow Cytometry SPoT as User" +- name: "Cell integration as Curator" +- name: "Expression integration as Curator" +- name: "Files integration as Curator" +- name: "Flow Cytometry (FACS) integration as Curator" +- name: "Library integration as Curator" +- name: "Linkage as Curator" +- name: "Metadata versioning as Curator" +- name: "Omics queries as Curator" +- name: "Preparation integration as Curator" +- name: "Sample integration as Curator" +- name: "Study integration as Curator" +- name: "Validation summary as Curator" +- name: "Variant integration as Curator" +- name: "Expression integration as User" +- name: "Files integration as User" +- name: "Flow Cytometry (FACS) integration as User" +- name: "Library integration as User" +- name: "Linkage as User" +- name: "Omics queries as User" +- name: "Preparation integration as User" +- name: "Sample integration as User" +- name: "Study integration as User" +- name: "Variant integration as User" +- name: "Data import jobs" +- name: "Data import via direct file upload" +- name: "Job operations" +- name: "Library SPoT as Curator" +- name: "Library SPoT as User" +- name: "Manage Data" +- name: "Preparation SPoT as Curator" +- name: "Preparation SPoT as User" +- name: "Xrefset queries" +- name: "Reference genome" +- name: "Sample SPoT as Curator" +- name: "Sample SPoT as User" +- name: "Groups" +- name: "Users" +- name: "Study SPoT as Curator" +- name: "Study SPoT as User" +- name: "Tasks API" +- name: "Variant SPoT as Curator" +- name: "Variant SPoT as User" +paths: + /api/v1/as-curator/cells/{id}: + get: + operationId: "getCellByIdAsCurator" + parameters: + - description: "Unique cell identifier. Consists of a cell group accession and\ + \ a cell barcode, separated by a hyphen, e.g. `GSF123456-AAACCTGAGCGCTCCA-1`." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Cell" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "Invalid data in the request. See the error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "Object with provided ID could not be found in ODM." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a cell by ID" + tags: + - "Cells as Curator" + /api/v1/as-curator/cells/by/group/{id}: + get: + description: "## Paging\nFor performance reasons this endpoint returns results\ + \ in \"pages\" of limited size together with a `cursor` tag.\nTo retrieve\ + \ the next page of results please supply this `cursor` tag to resume the query\ + \ from your previous result and get the next page.\nIf there are no more results\ + \ you will just retrieve an empty result.\n" + operationId: "getCellsByGroupAsCurator" + parameters: + - description: "Unique identifier (accession) of the cell group." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 10000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "The page tag to resume results from (see Paging above). Cell\ + \ ID is currently used as a cursor." + in: "query" + name: "cursor" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CellListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Cell data cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve cells from a given group" + tags: + - "Cells as Curator" + /api/v1/as-user/cells/{id}: + get: + operationId: "getCellByIdAsUser" + parameters: + - description: "Unique cell identifier. Consists of a cell group accession and\ + \ a cell barcode, separated by a hyphen, e.g. `GSF123456-AAACCTGAGCGCTCCA-1`." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Cell" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "Invalid data in the request. See the error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "Object with provided ID could not be found in ODM." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a cell by ID" + tags: + - "Cells as User" + /api/v1/as-user/cells/by/group/{id}: + get: + description: "## Paging\nFor performance reasons this endpoint returns results\ + \ in \"pages\" of limited size together with a `cursor` tag.\nTo retrieve\ + \ the next page of results please supply this `cursor` tag to resume the query\ + \ from your previous result and get the next page.\nIf there are no more results\ + \ you will just retrieve an empty result.\n" + operationId: "getCellsByGroupAsUser" + parameters: + - description: "Unique identifier (accession) of the cell group." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 10000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "The page tag to resume results from (see Paging above). Cell\ + \ ID is currently used as a cursor." + in: "query" + name: "cursor" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CellListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Cell data cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve cells from a given group" + tags: + - "Cells as User" + /api/v1/as-curator/expressions: + get: + description: "Retrieve all expression data and metadata objects that match a\ + \ query.\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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\ + \ (`\"`).\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\n" + operationId: "getExpressionDataAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Normalization Method\"=TPM`." + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for expression objects via a full text query over all\ + \ expression metadata. E.g. `TPM`. Queries matching dictionary terms are\ + \ automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Autogenerated numeric ID that corresponds to the column and\ + \ is used to link data from the same run to a sample, library or preparation.\ + \ Multiple values can be provided as a list." + in: "query" + name: "runFilter" + schema: + $ref: "#/components/schemas/RunFilter" + style: "form" + - description: "Column name from the file to which all data for a sample, library\ + \ or preparation is related. Multiple values can be provided as a list to\ + \ retrieve data from multiple columns." + explode: true + in: "query" + name: "runSourceFilter" + schema: + items: + type: "string" + example: "Run Source ID" + type: "array" + style: "form" + - description: "Minimum threshold (inclusive) for returned expression values." + in: "query" + name: "minExpressionLevel" + schema: + format: "double" + type: "number" + - description: "List of features to return. These features must match exactly\ + \ the probe IDs in the GCT file. Example: `1552269_at`" + explode: true + in: "query" + name: "featureList" + schema: + items: + type: "string" + example: "KRAS" + type: "array" + style: "form" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ExpressionResponse" + description: "Retrieved Expression data." + "400": + content: {} + description: "Expression data cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve multiple expression data and metadata objects" + tags: + - "Expression SPoT as Curator" + /api/v1/as-curator/expressions/group: + get: + description: "Retrieve all group metadata objects that match a query.\n\n##\ + \ Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Combinations\nMetadata 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.\n\ + \n## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=* (query all\ + \ versions, including those without CHAIN_IDs)\nuseVersions=v2 (query the\ + \ second version. If there is no second version then the data file is not\ + \ queried)\nuseVersions=v1,v0 (query the first version and any data files\ + \ without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files with\ + \ a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n## List operation\n\nThis endpoint can be called with no `query` parameter.\ + \ Doing so returns a list of all data objects." + operationId: "searchExpressionGroupsAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Normalization Method\"=TPM`." + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for expression objects via a full text query over all\ + \ expression metadata. E.g. `TPM`. Queries matching dictionary terms are\ + \ automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve groups that match a query" + tags: + - "Expression SPoT as Curator" + /api/v1/as-curator/expressions/group/by/run/{id}: + get: + operationId: "getExpressionGroupByRunAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (runId) of the run." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataWithId" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single group object by run ID (runId)" + tags: + - "Expression SPoT as Curator" + /api/v1/as-curator/expressions/group/{id}: + get: + operationId: "getExpressionGroupAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Expression group identifier (groupId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataWithId" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single expression group by ID (groupId)" + tags: + - "Expression SPoT as Curator" + /api/v1/as-curator/expressions/runs/by/group/{id}: + get: + description: "## Paging\nFor 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 return all results iterate through pages using pageOffset values\ + \ of `n * pageLimit` until the `resultsExhausted` response field is true.\n\ + \n" + operationId: "searchExpressionRunsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run objects related to the given group" + tags: + - "Expression SPoT as Curator" + /api/v1/as-curator/expressions/{id}: + get: + operationId: "getExpressionAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Expression object unique identifier (itemId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ExpressionItem" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single expression object by ID (itemId)" + tags: + - "Expression SPoT as Curator" + patch: + description: "## Basic operation\nThe object metadata is updated using the supplied\ + \ map of attribute names to attribute values. There are three cases:\n1. The\ + \ attribute name does not already exist in the object metadata. In this case,\ + \ the attribute and value are added to the object metadata.\n2. The attribute\ + \ name already exists in the object metadata. In this case, the value is updated.\n\ + 3. The attribute value is `null`.In this case, the attribute is removed from\ + \ the object metadata.\n\n## Attribute values\nThe attribute values are intelligently\ + \ parsed as booleans, integers, etc." + operationId: "updateExpressionRunAsCurator" + parameters: + - description: "Expression object run ID (runId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataContent" + description: "Metadata in the form of `{key: value, key2: value2, ...}`" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SignalRun" + description: "The objects was successfully created. The returned value is\ + \ the updated object, along with any warnings." + "400": + content: {} + description: "The supplied object ID or metadata is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Update metadata object by expression object run ID (runId)" + tags: + - "Expression SPoT as Curator" + x-codegen-request-body-name: "body" + /api/v1/as-curator/expressions/{id}/versions: + get: + operationId: "getExpressionVersionsAsCurator" + parameters: + - description: "Expression object run ID (runId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of expression object versions by run ID (runId)" + tags: + - "Expression SPoT as Curator" + /api/v1/as-curator/expressions/{id}/versions/{version}: + get: + operationId: "getExpressionByVersionAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Expression object run ID (runId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the expression object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SignalRun" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single expression object by run ID and its version" + tags: + - "Expression SPoT as Curator" + /api/v1/as-user/expressions: + get: + description: "Retrieve all expression data and metadata objects that match a\ + \ query.\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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\ + \ (`\"`).\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\n" + operationId: "getExpressionDataAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Normalization Method\"=TPM`." + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for expression objects via a full text query over all\ + \ expression metadata. E.g. `TPM`. Queries matching dictionary terms are\ + \ automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Autogenerated numeric ID that corresponds to the column and\ + \ is used to link data from the same run to a sample, library or preparation.\ + \ Multiple values can be provided as a list." + in: "query" + name: "runFilter" + schema: + $ref: "#/components/schemas/RunFilter" + style: "form" + - description: "Column name from the file to which all data for a sample, library\ + \ or preparation is related. Multiple values can be provided as a list to\ + \ retrieve data from multiple columns." + explode: true + in: "query" + name: "runSourceFilter" + schema: + items: + type: "string" + example: "Run Source ID" + type: "array" + style: "form" + - description: "Minimum threshold (inclusive) for returned expression values." + in: "query" + name: "minExpressionLevel" + schema: + format: "double" + type: "number" + - description: "List of features to return. These features must match exactly\ + \ the probe IDs in the GCT file. Example: `1552269_at`" + explode: true + in: "query" + name: "featureList" + schema: + items: + type: "string" + example: "KRAS" + type: "array" + style: "form" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ExpressionResponse" + description: "Retrieved Expression data." + "400": + content: {} + description: "Expression data cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve multiple expression data and metadata objects" + tags: + - "Expression SPoT as User" + /api/v1/as-user/expressions/group: + get: + description: "Retrieve all group metadata objects that match a query.\n\n##\ + \ Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Combinations\nMetadata 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.\n\ + \n## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=* (query all\ + \ versions, including those without CHAIN_IDs)\nuseVersions=v2 (query the\ + \ second version. If there is no second version then the data file is not\ + \ queried)\nuseVersions=v1,v0 (query the first version and any data files\ + \ without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files with\ + \ a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n## List operation\n\nThis endpoint can be called with no `query` parameter.\ + \ Doing so returns a list of all data objects." + operationId: "searchExpressionGroupsAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Normalization Method\"=TPM`." + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for expression objects via a full text query over all\ + \ expression metadata. E.g. `TPM`. Queries matching dictionary terms are\ + \ automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve groups that match a query" + tags: + - "Expression SPoT as User" + /api/v1/as-user/expressions/group/by/run/{id}: + get: + operationId: "getExpressionGroupByRunAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (runId) of the run." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataWithId" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single group object by run ID (runId)" + tags: + - "Expression SPoT as User" + /api/v1/as-user/expressions/group/{id}: + get: + operationId: "getExpressionGroupAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Expression group identifier (groupId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataWithId" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single expression group by ID (groupId)" + tags: + - "Expression SPoT as User" + /api/v1/as-user/expressions/runs/by/group/{id}: + get: + description: "## Paging\nFor 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 return all results iterate through pages using pageOffset values\ + \ of `n * pageLimit` until the `resultsExhausted` response field is true.\n\ + \n" + operationId: "searchExpressionRunsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run objects related to the given group" + tags: + - "Expression SPoT as User" + /api/v1/as-user/expressions/{id}: + get: + operationId: "getExpressionAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Expression object unique identifier (itemId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ExpressionItem" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single expression object by ID (itemId)" + tags: + - "Expression SPoT as User" + /api/v1/as-user/expressions/{id}/versions: + get: + operationId: "getExpressionVersionsAsUser" + parameters: + - description: "Expression object run ID (runId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of expression object versions by run ID (runId)" + tags: + - "Expression SPoT as User" + /api/v1/as-user/expressions/{id}/versions/{version}: + get: + operationId: "getExpressionByVersionAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Expression object run ID (runId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SignalRun" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single expression object by run ID and its version" + tags: + - "Expression SPoT as User" + /api/v1/as-curator/files/{id}/download: + head: + description: "Check if a file exists by its accession.\n\nThis endpoint can\ + \ be used to check if a file exists and accessible before downloading it.\n" + operationId: "headFileAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + description: "File exists. Additional metadata is provided in the response\ + \ headers." + "400": + content: {} + description: "File cannot be downloaded." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "406": + content: {} + description: "File cannot be downloaded." + "500": + content: {} + description: "An internal server error occurred. This indicates an unexpected\ + \ failure in the Genestack system, please file a bug report to" + security: + - Access-token: [] + - Genestack-API-Token: [] + tags: + - "Files as Curator" + get: + description: "Download a file by its accession.\n" + operationId: "getFileAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - name: "Range" + in: "header" + required: false + schema: + type: "string" + example: "bytes=0-" + description: "Request a specific range of bytes to support partial downloads.\n\ + Example: `bytes=0-1024` to download the first 1024 bytes. Supplying several\n\ + ranges is not supported.\n" + responses: + "200": + description: "File downloaded successfully" + content: + application/octet-stream: + schema: + type: "string" + format: "binary" + "206": + description: "Partial content downloaded successfully" + content: + application/octet-stream: + schema: + type: "string" + format: "binary" + "400": + content: {} + description: "File cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "406": + content: {} + description: "File cannot be downloaded." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a file by ID (accession)" + tags: + - "Files as Curator" + /api/v1/as-curator/files/{id}: + get: + operationId: "getFileMetadataByIdAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Select `true` in order to include file structure (contents)\ + \ for .h5, .h5ad, .zip, .gz to the response." + in: "query" + name: "includeContents" + required: false + schema: + default: false + type: "boolean" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/AFile" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "Invalid data in the request. See the error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "Object with provided accession could not be found in ODM." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve file's metadata by ID (accession)" + tags: + - "Files as Curator" + /api/v1/as-curator/files: + get: + operationId: "getFilesMetadataAsCurator" + description: "## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Paging\nFor 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 by increasing\ + \ the offset in multiples of limit (e.g., `offset = n * limit`), until all\ + \ results have been retrieved. The total number of pages can be calculated\ + \ by dividing the total number of results by the limit.\n\n## List operation\n\ + \nThis endpoint can be called without any query parameters. When called this\ + \ way, it returns a list of all files metadata objects." + parameters: + - in: "query" + name: "filter" + description: "Filter by files metadata (key-value metadata pair(s))." + schema: + type: "string" + - in: "query" + name: "query" + description: "Search for files via a full-text query over all file metadata." + schema: + type: "string" + - in: "query" + name: "includeContents" + description: "Select `true` in order to include file structure (contents)\ + \ for .h5, .h5ad, .zip, .gz to the response." + required: false + schema: + default: false + type: "boolean" + - in: "query" + name: "pageLimit" + description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + schema: + format: "int32" + type: "integer" + - in: "query" + name: "pageOffset" + description: "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." + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Invalid data in the request. See the error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve file's metadata by its fields" + tags: + - "Files as Curator" + /api/v1/as-user/files/{id}/download: + head: + description: "Check if a file exists by its accession.\n\nThis endpoint can\ + \ be used to check if a file exists and accessible before downloading it.\n" + operationId: "headFileAsUser" + summary: "Check if a file exists by ID (accession)." + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + description: "File exists. Additional metadata is provided in the response\ + \ headers." + "400": + content: {} + description: "File cannot be downloaded." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "406": + content: {} + description: "File cannot be downloaded." + "500": + content: {} + description: "An internal server error occurred. This indicates an unexpected\ + \ failure in the Genestack system, please file a bug report to" + security: + - Access-token: [] + - Genestack-API-Token: [] + tags: + - "Files as User" + get: + description: "Download a file by its accession.\n" + operationId: "getFileAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - name: "Range" + in: "header" + required: false + schema: + type: "string" + example: "bytes=0-" + description: "Request a specific range of bytes to support partial downloads.\n\ + Example: `bytes=0-1024` to download the first 1024 bytes. Supplying several\n\ + ranges is not supported.\n" + responses: + "200": + description: "File downloaded successfully" + content: + application/octet-stream: + schema: + type: "string" + format: "binary" + "206": + description: "Partial content downloaded successfully" + content: + application/octet-stream: + schema: + type: "string" + format: "binary" + "400": + content: {} + description: "File cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "406": + content: {} + description: "File cannot be downloaded." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a file by ID (accession)" + tags: + - "Files as User" + /api/v1/as-user/files/{id}: + get: + operationId: "getFileMetadataByIdAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Select `true` in order to include file structure (contents)\ + \ for .h5, .h5ad, .zip, .gz to the response." + in: "query" + name: "includeContents" + required: false + schema: + default: false + type: "boolean" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/AFile" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "Invalid data in the request. See the error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "Object with provided accession could not be found in ODM." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve file's metadata by ID (accession)" + tags: + - "Files as User" + /api/v1/as-user/files: + get: + operationId: "getFilesMetadataAsUser" + description: "## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Paging\nFor 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 by increasing\ + \ the offset in multiples of limit (e.g., `offset = n * limit`), until all\ + \ results have been retrieved. The total number of pages can be calculated\ + \ by dividing the total number of results by the limit.\n\n## List operation\n\ + \nThis endpoint can be called without any query parameters. When called this\ + \ way, it returns a list of all files metadata objects." + parameters: + - in: "query" + name: "filter" + description: "Filter by files metadata (key-value metadata pair(s))." + schema: + type: "string" + - in: "query" + name: "query" + description: "Search for files via a full-text query over all file metadata." + schema: + type: "string" + - in: "query" + name: "includeContents" + description: "Select `true` in order to include file structure (contents)\ + \ for .h5, .h5ad, .zip, .gz to the response." + required: false + schema: + default: false + type: "boolean" + - in: "query" + name: "pageLimit" + description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + schema: + format: "int32" + type: "integer" + - in: "query" + name: "pageOffset" + description: "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." + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Invalid data in the request. See the error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve file's metadata by its fields" + tags: + - "Files as User" + /api/v1/as-curator/flow-cytometries: + get: + description: "Retrieve all flow cytometry data and metadata objects that match\ + \ a query.\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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\ + \ (`\"`).\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\n" + operationId: "getFlowCytometryDataAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "filter" + schema: + type: "string" + - description: "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." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "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." + in: "query" + name: "runFilter" + schema: + $ref: "#/components/schemas/RunFilter" + style: "form" + - description: "Sample name from the file which allows retrieval of all the\ + \ rows related to the sample. Multiple values can be provided as a list." + explode: true + in: "query" + name: "runSourceFilter" + schema: + items: + type: "string" + example: "Run Source ID" + type: "array" + style: "form" + - description: "Required value of \"Readout type\" column. E.g.: `Count`, `Median`" + in: "query" + name: "readoutType" + schema: + type: "string" + - description: "Value of \"Cell Population\" column. E.g.: `\"total cells\"\ + `, `CD45+,live/CD45+`, `CD3+`.\n\nNote 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`." + in: "query" + name: "population" + schema: + type: "string" + - description: "Marker value. E.g.: `PD1`, `BV786`" + in: "query" + name: "marker" + schema: + type: "string" + - description: "Minimum threshold (inclusive) for returned expression values." + in: "query" + name: "minValue" + schema: + type: "number" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/FlowCytometryResponse" + description: "Retrieved Flow Cytometry data." + "400": + content: {} + description: "Flow Cytometry data cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve multiple flow cytometry data and metadata objects" + tags: + - "Flow Cytometry SPoT as Curator" + /api/v1/as-curator/flow-cytometries/group: + get: + description: "Retrieve all group metadata objects that match a query.\n\n##\ + \ Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Combinations\nMetadata 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.\n\ + \n## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=* (query all\ + \ versions, including those without CHAIN_IDs)\nuseVersions=v2 (query the\ + \ second version. If there is no second version then the data file is not\ + \ queried)\nuseVersions=v1,v0 (query the first version and any data files\ + \ without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files with\ + \ a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n## List operation\n\nThis endpoint can be called with no `query` parameter.\ + \ Doing so returns a list of all data objects." + operationId: "searchFlowCytometryGroupsAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "filter" + schema: + type: "string" + - description: "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." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve groups that match a query" + tags: + - "Flow Cytometry SPoT as Curator" + /api/v1/as-curator/flow-cytometries/group/by/run/{id}: + get: + operationId: "getFlowCytometryGroupByRunAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataWithId" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single group object by run ID (accession)" + tags: + - "Flow Cytometry SPoT as Curator" + /api/v1/as-curator/flow-cytometries/group/{id}: + get: + operationId: "getFlowCytometryGroupAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataWithId" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single group object by ID (accession)" + tags: + - "Flow Cytometry SPoT as Curator" + /api/v1/as-curator/flow-cytometries/runs/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "searchFlowCytometryRunsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run objects related to the given group" + tags: + - "Flow Cytometry SPoT as Curator" + /api/v1/as-curator/flow-cytometries/{id}: + get: + operationId: "getFlowCytometryAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/FlowCytometryItem" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single sample flow cytometry by ID (accession)" + tags: + - "Flow Cytometry SPoT as Curator" + patch: + description: "## Basic operation\nThe object metadata is updated using the supplied\ + \ map of attribute names to attribute values. There are three cases:\n1. The\ + \ attribute name does not already exist in the object metadata. In this case,\ + \ the attribute and value are added to the object metadata.\n2. The attribute\ + \ name already exists in the object metadata. In this case, the value is updated.\n\ + 3. The attribute value is `null`.In this case, the attribute is removed from\ + \ the object metadata.\n\n## Attribute values\nThe attribute values are intelligently\ + \ parsed as booleans, integers, etc." + operationId: "updateFlowCytometryAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataContent" + description: "Metadata in the form of `{key: value, key2: value2, ...}`" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SignalRun" + description: "The objects was successfully created. The returned value is\ + \ the updated object, along with any warnings." + "400": + content: {} + description: "The supplied object ID or metadata is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Update object metadata" + tags: + - "Flow Cytometry SPoT as Curator" + x-codegen-request-body-name: "body" + /api/v1/as-curator/flow-cytometries/{id}/versions: + get: + operationId: "getFlowCytometryVersionsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of object versions by ID" + tags: + - "Flow Cytometry SPoT as Curator" + /api/v1/as-curator/flow-cytometries/{id}/versions/{version}: + get: + operationId: "getFlowCytometryByVersionAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SignalRun" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single sample flow cytometry by ID (accession)" + tags: + - "Flow Cytometry SPoT as Curator" + /api/v1/as-user/flow-cytometries: + get: + description: "Retrieve all flow cytometry data and metadata objects that match\ + \ a query.\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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\ + \ (`\"`).\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\n" + operationId: "getFlowCytometryDataAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "filter" + schema: + type: "string" + - description: "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." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "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." + in: "query" + name: "runFilter" + schema: + $ref: "#/components/schemas/RunFilter" + style: "form" + - description: "Sample name from the file which allows retrieval of all the\ + \ rows related to the sample. Multiple values can be provided as a list." + explode: true + in: "query" + name: "runSourceFilter" + schema: + items: + type: "string" + example: "Run Source ID" + type: "array" + style: "form" + - description: "Required value of \"Readout type\" column. E.g.: `Count`, `Median`" + in: "query" + name: "readoutType" + schema: + type: "string" + - description: "Value of \"Cell Population\" column. E.g.: `\"total cells\"\ + `, `CD45+,live/CD45+`, `CD3+`.\n\nNote 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`." + in: "query" + name: "population" + schema: + type: "string" + - description: "Marker value. E.g.: `PD1`, `BV786`" + in: "query" + name: "marker" + schema: + type: "string" + - description: "Minimum threshold (inclusive) for returned expression values." + in: "query" + name: "minValue" + schema: + type: "number" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/FlowCytometryResponse" + description: "Retrieved Flow Cytometry data." + "400": + content: {} + description: "Flow Cytometry data cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve multiple flow cytometry data and metadata objects" + tags: + - "Flow Cytometry SPoT as User" + /api/v1/as-user/flow-cytometries/group: + get: + description: "Retrieve all group metadata objects that match a query.\n\n##\ + \ Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Combinations\nMetadata 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.\n\ + \n## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=* (query all\ + \ versions, including those without CHAIN_IDs)\nuseVersions=v2 (query the\ + \ second version. If there is no second version then the data file is not\ + \ queried)\nuseVersions=v1,v0 (query the first version and any data files\ + \ without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files with\ + \ a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n## List operation\n\nThis endpoint can be called with no `query` parameter.\ + \ Doing so returns a list of all data objects." + operationId: "searchFlowCytometryGroupsAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "filter" + schema: + type: "string" + - description: "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." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve groups that match a query" + tags: + - "Flow Cytometry SPoT as User" + /api/v1/as-user/flow-cytometries/group/by/run/{id}: + get: + operationId: "getFlowCytometryGroupByRunAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataWithId" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single group object by run ID (accession)" + tags: + - "Flow Cytometry SPoT as User" + /api/v1/as-user/flow-cytometries/group/{id}: + get: + operationId: "getFlowCytometryGroupAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataWithId" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single group object by ID (accession)" + tags: + - "Flow Cytometry SPoT as User" + /api/v1/as-user/flow-cytometries/runs/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "searchFlowCytometryRunsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run objects related to the given group" + tags: + - "Flow Cytometry SPoT as User" + /api/v1/as-user/flow-cytometries/{id}: + get: + operationId: "getFlowCytometryAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/FlowCytometryItem" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single sample flow cytometry by ID (accession)" + tags: + - "Flow Cytometry SPoT as User" + /api/v1/as-user/flow-cytometries/{id}/versions: + get: + operationId: "getFlowCytometryVersionsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of object versions by ID" + tags: + - "Flow Cytometry SPoT as User" + /api/v1/as-user/flow-cytometries/{id}/versions/{version}: + get: + operationId: "getFlowCytometryByVersionAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SignalRun" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single sample flow cytometry by ID (accession)" + tags: + - "Flow Cytometry SPoT as User" + /api/v1/as-curator/data-types: + get: + description: "This endpoint is for instructional uses and can be used to get\ + \ the latest list of Data Types." + operationId: "getDataTypesAsCurator" + responses: + "200": + content: + application/json: + schema: + items: + type: "string" + type: "array" + uniqueItems: true + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Lists all available data types." + tags: + - "Linkage as Curator" + /api/v1/as-curator/data-types/links: + get: + description: "This endpoint should be used for instructional needs, and can\ + \ be used in order to get the links between the Data Types." + operationId: "getDataTypesLinksAsCurator" + parameters: + - description: "Return only links with the specified data type." + in: "query" + name: "type" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/SourceTypePair" + type: "array" + uniqueItems: true + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "List all possible links between data types that match the specified\ + \ criteria." + tags: + - "Linkage as Curator" + /api/v1/as-curator/integration/link/expression/by/library/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getExpressionByLibraryAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve expression run-level data by querying related library ID\ + \ (accession)" + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/expression/by/preparation/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getExpressionByPreparation" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve expression run-level data by querying related preparation\ + \ ID (accession)" + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/expression/by/sample/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getExpressionBySampleAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve expression run-level data by querying related sample ID (accession)" + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/expression/group/by/study/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n" + operationId: "getExpressionGroupsByStudyAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/MetadataWithId" + type: "array" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group metadata by querying study ID (accession)" + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/expression/group/{sourceId}/to/library/group/{targetId}: + delete: + description: "Delete link between a group of expression objects and a group\ + \ of library objects" + operationId: "deleteExpressionGroupLibraryGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the group of run-level objects (corresponding\ + \ to a GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the library group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete link between a group of expression objects and a group of library\ + \ objects" + tags: + - "Expression integration as Curator" + post: + description: "Create a link between a group of expression objects and a group\ + \ of library objects.\n\nAn expression object can be linked to one object\ + \ only. If an expression object is already linked to another object, this\ + \ link will be deleted and a new link with the specified object will be created.\n\ + Expression objects of the same group can only be linked to objects of the\ + \ same study." + operationId: "createExpressionGroupLibraryGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the group of run-level objects (corresponding\ + \ to a GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the library group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "200": + content: {} + description: "Some (not all) sample links created." + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Library group, signal group or libraries to link not found" + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between a group of expression objects and a group of\ + \ library objects" + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/expression/group/{sourceId}/to/preparation/group/{targetId}: + delete: + description: "Delete link between a group of expression objects and a group\ + \ of preparation objects" + operationId: "deleteExpressionGroupPreparationGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the group of run-level objects (corresponding\ + \ to a GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the preparation group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete link between a group of expression objects and a group of preparation\ + \ objects" + tags: + - "Expression integration as Curator" + post: + description: "Create a link between a group of expression objects and a group\ + \ of preparation objects.\n\nAn expression object can be linked to one object\ + \ only. If an expression object is already linked to another object, this\ + \ link will be deleted and a new link with the specified object will be created.\n\ + Expression objects of the same group can only be linked to objects of the\ + \ same study." + operationId: "createExpressionGroupPreparationGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the group of run-level objects (corresponding\ + \ to a GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the preparation group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "200": + content: {} + description: "Some (not all) sample links created." + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Preparation group, signal group or preparations to link not\ + \ found" + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between a group of expression objects and a group of\ + \ preparation objects" + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/expression/group/{sourceId}/to/sample/group/{targetId}: + delete: + description: "Delete link between a group of expression objects and a group\ + \ of sample objects" + operationId: "deleteExpressionGroupSampleGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the group of run-level objects (corresponding\ + \ to a GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete link between a group of expression objects and a group of sample\ + \ objects" + tags: + - "Expression integration as Curator" + post: + description: "Create a link between a group of expression objects and a group\ + \ of sample objects.\n\nAn expression object can be linked to one object only.\ + \ If an expression object is already linked to another object, this link will\ + \ be deleted and a new link with the specified object will be created.\nExpression\ + \ objects of the same group can only be linked to objects of the same study.\n\ + \n Users can specify a custom metadata field for linking omics data to samples\ + \ via the “linkingAttribute” parameter, if not specified the “Sample Source\ + \ ID“ sample metadata attribute will be used by default." + operationId: "createExpressionGroupSampleGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the group of run-level objects (corresponding\ + \ to a GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + - description: "Metadata field containing sample IDs to link omics data to samples.\ + \ The template applied to the study must contain this field in the sample\ + \ section." + in: "query" + name: "linkingAttribute" + schema: + type: "string" + responses: + "200": + content: {} + description: "Not all signal data were linked to the samples." + "204": + content: {} + description: "All signal data were linked to the samples from the specified\ + \ sample group." + "400": + content: {} + description: "Sample group, signal group or samples to the link were not\ + \ found, or the specified linking attribute was not found." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between a group of expression objects and a group of\ + \ sample objects" + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/expression/run-to-libraries/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getExpressionRunToLibraryPairsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run-library pairs by group id. Pagination is based on unique\ + \ runs, not unique pairs." + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/expression/run-to-preparations/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getExpressionRunToPreparationPairsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run-preparation pairs by group id. Pagination is based on\ + \ unique runs, not unique pairs." + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/expression/run-to-samples/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getExpressionRunToSamplePairsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ + \ runs, not unique pairs." + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/expression/{sourceId}/to/library/{targetId}: + delete: + description: "Delete link between an expression object and a library" + operationId: "deleteExpressionLibraryLinkAsCurator" + parameters: + - description: "The ID (accession) of the run-level object (corresponding to\ + \ the column in a VCG/GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the library object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete link between an expression object and a library" + tags: + - "Expression integration as Curator" + post: + description: "Create a link between an expression object and a library.\n\n\ + An expression object can be linked to one object only. If an expression object\ + \ is already linked to another object, this link will be deleted and a new\ + \ link with the specified object will be created.\nExpression objects of the\ + \ same group can only be linked to objects of the same study." + operationId: "createExpressionLibraryLinkAsCurator" + parameters: + - description: "The ID (accession) of the run-level object (corresponding to\ + \ the column in a VCG/GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the library object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Link cannot be created." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between an expression object and a library" + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/expression/{sourceId}/to/preparation/{targetId}: + delete: + description: "Delete link between an expression object and a preparation" + operationId: "deleteExpressionPreparationLinkAsCurator" + parameters: + - description: "The ID (accession) of the run-level object (corresponding to\ + \ the column in a VCG/GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the preparation object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete link between an expression object and a preparation" + tags: + - "Expression integration as Curator" + post: + description: "Create a link between an expression object and a preparation.\n\ + \nAn expression object can be linked to one object only. If an expression\ + \ object is already linked to another object, this link will be deleted and\ + \ a new link with the specified object will be created.\nExpression objects\ + \ of the same group can only be linked to objects of the same study." + operationId: "createExpressionPreparationLinkAsCurator" + parameters: + - description: "The ID (accession) of the run-level object (corresponding to\ + \ the column in a VCG/GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the preparation object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Link cannot be created." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between an expression object and a preparation" + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/expression/{sourceId}/to/sample/{targetId}: + delete: + description: "Delete link between an expression object and a sample" + operationId: "deleteExpressionSampleLinkAsCurator" + parameters: + - description: "The ID (accession) of the run-level object (corresponding to\ + \ the column in a VCG/GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete link between an expression object and a sample" + tags: + - "Expression integration as Curator" + post: + description: "Create a link between an expression object and a sample.\n\nAn\ + \ expression object can be linked to one object only. If an expression object\ + \ is already linked to another object, this link will be deleted and a new\ + \ link with the specified object will be created.\nExpression objects of the\ + \ same group can only be linked to objects of the same study." + operationId: "createExpressionSampleLinkAsCurator" + parameters: + - description: "The ID (accession) of the run-level object (corresponding to\ + \ the column in a VCG/GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Link cannot be created." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between an expression object and a sample" + tags: + - "Expression integration as Curator" + /api/v1/as-curator/integration/link/flow-cytometry/by/sample/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getFlowCytometryBySampleAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve flow cytometry run-level data by querying related sample\ + \ ID (accession)" + tags: + - "Flow Cytometry (FACS) integration as Curator" + /api/v1/as-curator/integration/link/flow-cytometry/group/by/study/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n" + operationId: "getFlowCytometryGroupsByStudyAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/MetadataWithId" + type: "array" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group metadata by querying study ID (accession)" + tags: + - "Flow Cytometry (FACS) integration as Curator" + /api/v1/as-curator/integration/link/flow-cytometry/group/{sourceId}/to/sample/group/{targetId}: + delete: + description: "Delete link between a group of flow-cytometry objects and a group\ + \ of sample objects" + operationId: "deleteFlowCytometryGroupSampleGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the group of run-level objects (corresponding\ + \ to the column in a FACS file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete link between a group of flow-cytometry objects and a group\ + \ of sample objects" + tags: + - "Flow Cytometry (FACS) integration as Curator" + post: + description: "Create a link between a group of flow-cytometry objects and a\ + \ group of sample objects.\n\nA flow-cytometry object can be linked to one\ + \ object only. If a flow-cytometry object is already linked to another object,\ + \ this link will be deleted and a new link with the specified object will\ + \ be created.\nFlow-cytometry objects of the same group can only be linked\ + \ to objects of the same study.\n\nUsers can specify a custom metadata field\ + \ for linking omics data to samples via the “linkingAttribute” parameter,\ + \ if not specified the “Sample Source ID“ sample metadata attribute will be\ + \ used by default." + operationId: "createFlowCytometryGroupSampleGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the group of run-level objects (corresponding\ + \ to the column in a FACS file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + - description: "Metadata field containing sample IDs to link omics data to samples.\ + \ The template applied to the study must contain this field in the sample\ + \ section." + in: "query" + name: "linkingAttribute" + schema: + type: "string" + responses: + "200": + content: {} + description: "Not all signal data were linked to the samples." + "204": + content: {} + description: "All signal data were linked to the samples from the specified\ + \ sample group." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "Sample group, signal group or samples to the link were not\ + \ found, or the specified linking attribute was not found." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between a group of flow-cytometry objects and a group\ + \ of sample objects" + tags: + - "Flow Cytometry (FACS) integration as Curator" + /api/v1/as-curator/integration/link/flow-cytometry/run-to-samples/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getFlowCytometryRunToSamplePairsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ + \ runs, not unique pairs." + tags: + - "Flow Cytometry (FACS) integration as Curator" + /api/v1/as-curator/integration/link/flow-cytometry/{sourceId}/to/sample/{targetId}: + delete: + description: "Delete link between a flow-cytometry object and a sample" + operationId: "deleteFlowCytometrySampleLinkAsCurator" + parameters: + - description: "The ID (accession) of the run-level data block" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete link between a flow-cytometry object and a sample" + tags: + - "Flow Cytometry (FACS) integration as Curator" + post: + description: "Create a link between a flow-cytometry object and a sample.\n\n\ + A flow-cytometry object can be linked to one object only. If a flow-cytometry\ + \ object is already linked to another object, this link will be deleted and\ + \ a new link with the specified object will be created.\nFlow-cytometry objects\ + \ of the same group can only be linked to objects of the same study." + operationId: "createFlowCytometrySampleLinkAsCurator" + parameters: + - description: "The ID (accession) of the run-level data block" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Link cannot be created." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between a flow-cytometry object and a sample" + tags: + - "Flow Cytometry (FACS) integration as Curator" + /api/v1/as-curator/integration/link/libraries/by/samples: + get: + description: "Retrieve library metadata objects whose linked sample metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Parent studies (full-text or metadata key-value pair)\n3. Linked variant\ + \ objects (list of data key-value pairs)\n4. Linked flow cytometry objects\ + \ (list of data key-value pairs)\n5. Linked any data (except variant and flow\ + \ cytometry) objects (list of data key-value pairs)\n\n## Metadata full-text\ + \ queries\nSingle 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 (`\\`).\n\n\ + ## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\n\ + Data queries must be a list of key-value pairs, separated by whitespace. The\ + \ set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getLibrariesBySamplesAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve library metadata by querying related samples" + tags: + - "Library integration as Curator" + /api/v1/as-curator/integration/link/library/by/sample/{id}: + get: + operationId: "getLibraryBySampleAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/Library" + type: "array" + text/tab-separated-values: + schema: + items: + $ref: "#/components/schemas/Library" + type: "array" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve library metadata by querying related sample ID (accession)" + tags: + - "Library integration as Curator" + /api/v1/as-curator/integration/link/library/group/by/study/{id}: + get: + operationId: "getLibraryGroupsByStudyAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/MetadataWithId" + type: "array" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group metadata by querying study ID (accession)" + tags: + - "Library integration as Curator" + /api/v1/as-curator/integration/link/library/group/{sourceId}/to/sample/group/{targetId}: + delete: + description: "Delete links between samples and libraries related to the specified\ + \ group" + operationId: "deleteLibraryGroupSampleGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the library group object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete links between samples and libraries related to the specified\ + \ group" + tags: + - "Library integration as Curator" + post: + description: "Create links between samples and libraries.\n\nLibrary objects\ + \ of the same group can only be linked to objects of the same study." + operationId: "createLibraryGroupSampleGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the library group object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Link cannot be created." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create links between samples and libraries" + tags: + - "Library integration as Curator" + /api/v1/as-curator/integration/link/library/libraries-to-samples/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getLibraryLinksToSamplesAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve library-samples pairs by group id. Pagination is based on\ + \ unique libraries, not unique pairs." + tags: + - "Library integration as Curator" + /api/v1/as-curator/integration/link/library/{sourceId}/to/sample/{targetId}: + delete: + description: "Delete a link between a library and a sample" + operationId: "deleteLibrarySampleLinkAsCurator" + parameters: + - description: "The ID (accession) of the library object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete a link between a library and a sample" + tags: + - "Library integration as Curator" + post: + description: "Create a link between a library and a sample.\n\nLibrary objects\ + \ of the same group can only be linked to objects of the same study." + operationId: "createLibrarySampleLinkAsCurator" + parameters: + - description: "The ID (accession) of the library object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Link cannot be created." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between a library and a sample" + tags: + - "Library integration as Curator" + /api/v1/as-curator/integration/link/preparation/by/sample/{id}: + get: + operationId: "getPreparationBySampleAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/Preparation" + type: "array" + text/tab-separated-values: + schema: + items: + $ref: "#/components/schemas/Preparation" + type: "array" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve preparation metadata by querying related sample ID (accession)" + tags: + - "Preparation integration as Curator" + /api/v1/as-curator/integration/link/preparation/group/by/study/{id}: + get: + operationId: "getPreparationGroupsByStudyAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/MetadataWithId" + type: "array" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group metadata by querying study ID (accession)" + tags: + - "Preparation integration as Curator" + /api/v1/as-curator/integration/link/preparation/group/{sourceId}/to/sample/group/{targetId}: + delete: + description: "Delete links between samples and preparations related to the specified\ + \ group" + operationId: "deletePreparationGroupSampleGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the preparation group object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete links between samples and preparations related to the specified\ + \ group" + tags: + - "Preparation integration as Curator" + post: + description: "Create links between samples and preparations.\n\nPreparation\ + \ objects of the same group can only be linked to objects of the same study." + operationId: "createPreparationGroupSampleGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the preparation group object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Link cannot be created." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create links between samples and preparations" + tags: + - "Preparation integration as Curator" + /api/v1/as-curator/integration/link/preparation/preparations-to-samples/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getPreparationLinksToSamplesAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ + \ preparations, not unique pairs." + tags: + - "Preparation integration as Curator" + /api/v1/as-curator/integration/link/preparation/{sourceId}/to/sample/{targetId}: + delete: + description: "Delete a link between a preparation and a sample" + operationId: "deletePreparationSampleLinkAsCurator" + parameters: + - description: "The ID (accession) of the preparation object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete a link between a preparation and a sample" + tags: + - "Preparation integration as Curator" + post: + description: "Create a link between a preparation and a sample.\n\nPreparation\ + \ objects of the same group can only be linked to objects of the same study." + operationId: "createPreparationSampleLinkAsCurator" + parameters: + - description: "The ID (accession) of the preparation object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Link cannot be created." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between a preparation and a sample" + tags: + - "Preparation integration as Curator" + /api/v1/as-curator/integration/link/preparations/by/samples: + get: + description: "Retrieve preparation metadata objects whose linked sample metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Parent studies (full-text or metadata key-value pair)\n3. Linked variant\ + \ objects (list of data key-value pairs)\n4. Linked flow cytometry objects\ + \ (list of data key-value pairs)\n5. Linked any data (except variant and flow\ + \ cytometry) objects (list of data key-value pairs)\n\n## Metadata full-text\ + \ queries\nSingle 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 (`\\`).\n\n\ + ## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\n\ + Data queries must be a list of key-value pairs, separated by whitespace. The\ + \ set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getPreparationsBySamplesAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve preparation metadata by querying related samples" + tags: + - "Preparation integration as Curator" + /api/v1/as-curator/integration/link/sample/group/{sourceId}/to/study/{targetId}: + delete: + description: "Delete link between a group of sample objects and a study" + operationId: "deleteSampleGroupStudyLinkAsCurator" + parameters: + - description: "The ID (accession) of the sample group object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the study object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete link between a group of sample objects and a study" + tags: + - "Sample integration as Curator" + post: + description: "Create a link between a group of sample objects and a study.\n\ + \nSample objects of the same group can only be linked to the same study." + operationId: "createSampleGroupStudyLinkAsCurator" + parameters: + - description: "The ID (accession) of the sample group object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the study object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Link cannot be created." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between a group of sample objects and a study" + tags: + - "Sample integration as Curator" + /api/v1/as-curator/integration/link/sample/{sourceId}/to/study/{targetId}: + delete: + description: "Delete link between a sample and a study" + operationId: "deleteSampleStudyLinkAsCurator" + parameters: + - description: "The ID (accession) of the sample object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the study object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete link between a sample and a study" + tags: + - "Sample integration as Curator" + post: + description: "Create a link between a sample and a study.\n\nSample objects\ + \ of the same group can only be linked to the same study." + operationId: "createSampleStudyLinkAsCurator" + parameters: + - description: "The ID (accession) of the sample object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the study object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Link cannot be created." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between a sample and a study" + tags: + - "Sample integration as Curator" + /api/v1/as-curator/integration/link/samples/by/libraries: + get: + description: "Retrieve sample metadata objects whose linked library metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Parent studies (full-text or metadata key-value pair)\n3. Linked variant\ + \ objects (list of data key-value pairs)\n4. Linked flow cytometry objects\ + \ (list of data key-value pairs)\n5. Linked any data (except variant and flow\ + \ cytometry) objects (list of data key-value pairs)\n\n## Metadata full-text\ + \ queries\nSingle 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 (`\\`).\n\n\ + ## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\n\ + Data queries must be a list of key-value pairs, separated by whitespace. The\ + \ set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getSamplesByLibrariesAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve sample metadata by querying related libraries" + tags: + - "Sample integration as Curator" + /api/v1/as-curator/integration/link/samples/by/preparations: + get: + description: "Retrieve sample metadata objects whose linked preparation metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Parent studies (full-text or metadata key-value pair)\n3. Linked variant\ + \ objects (list of data key-value pairs)\n4. Linked flow cytometry objects\ + \ (list of data key-value pairs)\n5. Linked any data (except variant and flow\ + \ cytometry) objects (list of data key-value pairs)\n\n## Metadata full-text\ + \ queries\nSingle 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 (`\\`).\n\n\ + ## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\n\ + Data queries must be a list of key-value pairs, separated by whitespace. The\ + \ set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getSamplesByPreparationsAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve sample metadata by querying related preparations" + tags: + - "Sample integration as Curator" + /api/v1/as-curator/integration/link/samples/by/study/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getSamplesByStudyAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve sample metadata by querying related study ID (accession)" + tags: + - "Sample integration as Curator" + /api/v1/as-curator/integration/link/studies/by/libraries: + get: + description: "Retrieve study metadata objects whose linked library metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Parent studies (full-text or metadata key-value pair)\n3. Linked variant\ + \ objects (list of data key-value pairs)\n4. Linked flow cytometry objects\ + \ (list of data key-value pairs)\n5. Linked any data (except variant and flow\ + \ cytometry) objects (list of data key-value pairs)\n\n## Metadata full-text\ + \ queries\nSingle 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 (`\\`).\n\n\ + ## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\n\ + Data queries must be a list of key-value pairs, separated by whitespace. The\ + \ set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getStudiesByLibrariesAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve study metadata objects by querying related libraries" + tags: + - "Study integration as Curator" + /api/v1/as-curator/integration/link/studies/by/preparations: + get: + description: "Retrieve study metadata objects whose linked preparation metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Parent studies (full-text or metadata key-value pair)\n3. Linked variant\ + \ objects (list of data key-value pairs)\n4. Linked flow cytometry objects\ + \ (list of data key-value pairs)\n5. Linked any data (except variant and flow\ + \ cytometry) objects (list of data key-value pairs)\n\n## Metadata full-text\ + \ queries\nSingle 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 (`\\`).\n\n\ + ## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\n\ + Data queries must be a list of key-value pairs, separated by whitespace. The\ + \ set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getStudiesByPreparationsAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve study metadata objects by querying related preparations" + tags: + - "Study integration as Curator" + /api/v1/as-curator/integration/link/studies/by/samples: + get: + description: "Retrieve study metadata objects whose linked sample metadata matches\ + \ all supplied conditions.\n\n## Conditions\nIt is possible to supply conditions\ + \ for:\n\n1. Samples (full-text or metadata key-value pair)\n2. Parent studies\ + \ (full-text or metadata key-value pair)\n3. Linked variant objects (list\ + \ of data key-value pairs)\n4. Linked flow cytometry objects (list of data\ + \ key-value pairs)\n5. Linked any data (except variant and flow cytometry)\ + \ objects (list of data key-value pairs)\n\n## Metadata full-text queries\n\ + 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 (`\\`).\n\n## Metadata\ + \ filters\nMetadata 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 (`\"`).\n\n## Data queries\nData queries\ + \ must be a list of key-value pairs, separated by whitespace. The set of valid\ + \ keys depends on the specific query type, and is documented in the query\ + \ parameter summary. The values can be simple non-whitespace strings, or strings\ + \ enclosed by speech marks (`\"`). Depending on the key, the value may be\ + \ be a comma-delimited list of string values. Others require numerical values.\ + \ Ranges can be supplied with `(0:1)` syntax, OR values with `|`.\n\n## Combinations\n\ + 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.\n\n\ + ## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=* (query all\ + \ versions, including those without CHAIN_IDs)\nuseVersions=v2 (query the\ + \ second version. If there is no second version then the data file is not\ + \ queried)\nuseVersions=v1,v0 (query the first version and any data files\ + \ without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files with\ + \ a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getStudiesBySamplesAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ \"Species or strain\"=\"Homo sapiens\"" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for study metadata objects via a full-text query over\ + \ all sample metadata fields. E.g. \"RNA-Seq of human dendritic cells\"\ + . Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve study metadata objects by querying related samples" + tags: + - "Study integration as Curator" + /api/v1/as-curator/integration/link/study/by/sample/{id}: + get: + operationId: "getStudyBySampleAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Study" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve study metadata by querying sample ID (accession)" + tags: + - "Study integration as Curator" + /api/v1/as-curator/integration/link/studies/by/files: + get: + description: "Retrieve study metadata objects whose linked attached files metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Attachment files (full-text or metadata key-value\ + \ pair)\n2. Parent studies (full-text or metadata key-value pair)\n\n## Metadata\ + \ full-text queries\nSingle 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 (`\\\ + `).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Combinations\n\ + 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.\n\n\ + ## Paging\nFor 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.\n\n" + operationId: "getStudiesByFilesAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by attachment file metadata (key-value metadata pair(s)).\ + \ E.g. \"Species or strain\"=\"Homo sapiens\"" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for study metadata objects via a full-text query over\ + \ all attached files metadata fields. E.g. \"RNA-Seq of human dendritic\ + \ cells\". Queries matching dictionary terms are automatically expanded\ + \ to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve study metadata objects by querying related attachment files" + tags: + - "Study integration as Curator" + /api/v1/as-curator/integration/link/study/by/file/{id}: + get: + operationId: "getStudyByFileAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Study" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve study metadata by querying attachment file ID (accession)" + tags: + - "Study integration as Curator" + /api/v1/as-curator/integration/link/variant/by/sample/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getVariantBySampleAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve variant run-level data by querying related sample ID (accession)" + tags: + - "Variant integration as Curator" + /api/v1/as-curator/integration/link/variant/group/by/study/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n" + operationId: "getVariantGroupsByStudyAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/MetadataWithId" + type: "array" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group metadata by querying study ID (accession)" + tags: + - "Variant integration as Curator" + /api/v1/as-curator/integration/link/variant/group/{sourceId}/to/sample/group/{targetId}: + delete: + description: "Delete link between a group of variant objects and a group of\ + \ sample objects" + operationId: "deleteVariantGroupSampleGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the group of run-level objects (corresponding\ + \ to the column in a VCF file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete link between a group of variant objects and a group of sample\ + \ objects" + tags: + - "Variant integration as Curator" + post: + description: "Create a link between a group of variant objects and a group of\ + \ sample objects.\n\nA variant object can be linked to one object only. If\ + \ a variant object is already linked to another object, this link will be\ + \ deleted and a new link with the specified object will be created.\nVariant\ + \ objects of the same group can only be linked to objects of the same study.\n\ + \n Users can specify a custom metadata field for linking omics data to samples\ + \ via the “linkingAttribute” parameter, if not specified the “Sample Source\ + \ ID“ sample metadata attribute will be used by default." + operationId: "createVariantGroupSampleGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the group of run-level objects (corresponding\ + \ to the column in a VCF file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + - description: "Metadata field containing sample IDs to link omics data to samples.\ + \ The template applied to the study must contain this field in the sample\ + \ section." + in: "query" + name: "linkingAttribute" + schema: + type: "string" + responses: + "200": + content: {} + description: "Not all signal data were linked to the samples." + "204": + content: {} + description: "All signal data were linked to the samples from the specified\ + \ sample group." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "Sample group, signal group or samples to the link were not\ + \ found, or the specified linking attribute was not found." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between a group of variant objects and a group of sample\ + \ objects" + tags: + - "Variant integration as Curator" + /api/v1/as-curator/integration/link/variant/run-to-samples/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getVariantRunToSamplePairsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ + \ runs, not unique pairs." + tags: + - "Variant integration as Curator" + /api/v1/as-curator/integration/link/variant/{sourceId}/to/sample/{targetId}: + delete: + description: "Delete link between a variant object and a sample" + operationId: "deleteVariantSampleLinkAsCurator" + parameters: + - description: "The ID (accession) of the run-level object (corresponding to\ + \ the column in a VCG/GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link deleted." + "400": + content: {} + description: "Link cannot be deleted." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete link between a variant object and a sample" + tags: + - "Variant integration as Curator" + post: + description: "Create a link between a variant object and a sample.\n\nA variant\ + \ object can be linked to one object only. If a variant object is already\ + \ linked to another object, this link will be deleted and a new link with\ + \ the specified object will be created.\nVariant objects of the same group\ + \ can only be linked to objects of the same study." + operationId: "createVariantSampleLinkAsCurator" + parameters: + - description: "The ID (accession) of the run-level object (corresponding to\ + \ the column in a VCG/GCT file)" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "Link created." + "400": + content: {} + description: "Link cannot be created." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create a link between a variant object and a sample" + tags: + - "Variant integration as Curator" + /api/v1/as-curator/integration/fulltext/search/studies: + post: + description: "Find studies and retrieve their data using full-text search or\ + \ facet search by metadata of study itself or child object (samples, libraries,\ + \ preparations, signal groups). Only studies available to that users are returned.\n\ + \nThe endpoint returns:\n- a list of studies with their metadata summary;\n\ + - a list of filter objects with counts; filter list is the same for all users\ + \ in an and can be configured in “Study Browser” application via \"Configure\ + \ facets\" (by a user with corresponding permission); for each filter object,\ + \ only the first 5 most popular facets are returned, the facts are sorted\ + \ by the count value in descending order; only studies available to user are\ + \ counted.\n\nFilter attributes for fulltext search:\n- `\"type\": \"FULL_TEXT\"\ + `\n- `\"match\"`\n- `\"mode\"`\n\nFor details on two latter ones, see the\ + \ request body model. Only one filter with `\"type=\": \"FULL_TEXT\"` can\ + \ be passed in the request body.\n\nTo filter studies via facets, the filter\ + \ attributes are necessary: type = SELECT, filterOptionId. For details, use\ + \ the request body model. filterOptionId can be obtained from the response\ + \ body when the endpoint is first called without filters. Multiple filters\ + \ with type = SELECT can be passed in the request body. Filters within the\ + \ same attribute are automatically used with the OR operator. Filters of different\ + \ attributes are automatically used with the AND operator. This behaviour\ + \ can not be changed.\n\nIt is possible to call the endpoint without any filters,\ + \ then all the studies available to the user are returned.\n\nThe endpoint\ + \ searches by staging version of the object metadata." + operationId: "searchStudiesByFilterAsCurator" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/SearchStudyRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/FindObjectsResponse" + description: "The request was successful. Retrieved studies and filters." + "400": + content: {} + description: "Invalid request body" + "401": + content: {} + description: "User is not authenticated. Please supply a valid Genestack\ + \ API token in the `Genestack-API-Token` HTTP header (this token may be\ + \ obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Genestack-API-Token: [] + summary: "Find and retrieve studies by full-text or facet query" + tags: + - "Study integration as Curator" + x-codegen-request-body-name: "request" + /api/v1/as-curator/links: + delete: + description: "This method should be used in case you want to delete the links\ + \ of an object. Please, keep in mind that deleting a link between Study and\ + \ Sample will not delete a link between corresponding Sample and it’s signal." + operationId: "deleteLinkAsCurator" + parameters: + - description: "Object ID (accession) (e.g. accession of study)" + in: "query" + name: "firstId" + required: true + schema: + type: "string" + - description: "Type of the object (e.g. study)" + in: "query" + name: "firstType" + schema: + type: "string" + - description: "Object ID (accession) (e.g. accession of study)" + in: "query" + name: "secondId" + required: true + schema: + type: "string" + - description: "Type of the object (e.g. study)" + in: "query" + name: "secondType" + schema: + type: "string" + responses: + "204": + content: {} + description: "Link has been successfully deleted." + "400": + content: {} + description: "Invalid data in request." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No links were found." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Deletes existing links matching the specified criteria." + tags: + - "Linkage as Curator" + get: + description: "Please make sure that this endpoint should be used only for getting\ + \ all links to a specific object. In case you specify both firstId and secondId\ + \ an expected answer would be true for existing links and false for no link\ + \ between the objects." + operationId: "getLinksByParamsAsCurator" + parameters: + - description: "Object ID (accession) (e.g. accession of study)" + in: "query" + name: "firstId" + required: true + schema: + type: "string" + - description: "Type of the object (e.g. study)" + in: "query" + name: "firstType" + schema: + type: "string" + - description: "Object ID (accession) (e.g. accession of study)" + in: "query" + name: "secondId" + schema: + type: "string" + - description: "Type of the object (e.g. study)" + in: "query" + name: "secondType" + schema: + type: "string" + - description: "Param says to skip that many links before beginning to return\ + \ links." + in: "query" + name: "offset" + schema: + default: 0 + format: "int32" + type: "integer" + - description: "Param says to limit the count of returned links." + in: "query" + name: "limit" + schema: + default: 1000 + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Finds existing links matching the specified criteria." + tags: + - "Linkage as Curator" + post: + description: "This method should be used only in case you need to create links\ + \ between 2 objects. Links are created both ways (e.g. when linking Object\ + \ A to Object B it can be done both ways, by linking firstType to secondType\ + \ and vice versa)." + operationId: "saveLinksAsCurator" + requestBody: + content: + application/json: + schema: + items: + $ref: "#/components/schemas/Link" + type: "array" + required: false + responses: + "200": + content: {} + description: "Links were updated or not modified." + "201": + content: {} + description: "At least one new link has been created.Some other links might\ + \ have been updated or not modified." + "400": + content: {} + description: "Invalid data in request." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "409": + content: {} + description: "Link cannot be created due to conflict with existing link" + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Creates new links between objects." + tags: + - "Linkage as Curator" + x-codegen-request-body-name: "links" + /api/v1/as-curator/links/get-batch: + post: + description: "Please make sure to use that endpoint for batch calls only. You\ + \ are not allowed to pass 'mixed' objects. e.g. Studies and Samples at the\ + \ same time. Please always specify firstType." + operationId: "getLinksByIdsAsCurator" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BatchOfIds" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Finds existing links by passing many IDs. \nPagination goes through\ + \ all links matched the criteria." + tags: + - "Linkage as Curator" + x-codegen-request-body-name: "request" + /api/v1/as-curator/omics/expression/data: + get: + description: "Retrieve any data objects whose linked data matches all supplied\ + \ conditions. \n\nNote: An expression data query must be supplied.\n\n## Conditions\n\ + It is possible to supply conditions for:\n\n1. Samples (full-text or metadata\ + \ key-value pair)\n2. Parent studies (full-text or metadata key-value pair)\n\ + 3. Linked variant objects (list of data key-value pairs)\n4. Linked flow cytometry\ + \ objects (list of data key-value pairs)\n5. Linked any data (except variant\ + \ and flow cytometry) objects (list of data key-value pairs)\n\n## Metadata\ + \ full-text queries\nSingle 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 (`\\\ + `).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Data\ + \ queries\nData queries must be a list of key-value pairs, separated by whitespace.\ + \ The set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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. To return all results iterate through pages using cursor\ + \ values until the `resultsExhausted` response field is true.\n\n" + operationId: "omicsSearchExpressionDataAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve data objects by searching across multiple data types" + tags: + - "Omics queries as Curator" + /api/v1/as-curator/omics/expression/group: + get: + description: "Retrieve group objects whose linked data matches all supplied\ + \ conditions.\n\n## Conditions\nIt is possible to supply conditions for:\n\ + \n1. Samples (full-text or metadata key-value pair)\n2. Parent studies (full-text\ + \ or metadata key-value pair)\n3. Linked variant objects (list of data key-value\ + \ pairs)\n4. Linked flow cytometry objects (list of data key-value pairs)\n\ + 5. Linked any data (except variant and flow cytometry) objects (list of data\ + \ key-value pairs)\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\nData queries must be a list of key-value\ + \ pairs, separated by whitespace. The set of valid keys depends on the specific\ + \ query type, and is documented in the query parameter summary. The values\ + \ can be simple non-whitespace strings, or strings enclosed by speech marks\ + \ (`\"`). Depending on the key, the value may be be a comma-delimited list\ + \ of string values. Others require numerical values. Ranges can be supplied\ + \ with `(0:1)` syntax, OR values with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\ + \nExample usage:\nuseVersions=* (query all versions, including those without\ + \ CHAIN_IDs)\nuseVersions=v2 (query the second version. If there is no second\ + \ version then the data file is not queried)\nuseVersions=v1,v0 (query the\ + \ first version and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3\ + \ (for omics data files with a CHAIN_ID of GSCV002 query the third version)\n\ + useVersions=GSVC002:GSF00494,GSF000496 (for omics data files with a CHAIN_ID\ + \ of GSCV002 query only the specific accessions GSF00494 and GSF000496)\n\n\ + Rules for multiple CHAIN_IDs can be supplied to the parameter using the ;\ + \ separator.\n\n## Paging\nFor 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. To return all results iterate through\ + \ pages using cursor values until the `resultsExhausted` response field is\ + \ true.\n\n" + operationId: "omicsSearchExpressionGroupsAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group objects by searching across multiple data types" + tags: + - "Omics queries as Curator" + /api/v1/as-curator/omics/expression/streamed-data: + get: + description: "Stream data from a given group for a tabular file that matches\ + \ a sample/library/preparations query/filter. If no query/filters are supplied\ + \ all expression data is returned. If a metadata filter is specified, this\ + \ endpoint will only return expression data that is associated with a sample\ + \ via the Sample Source ID attribute.\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Libraries (full-text or metadata key-value pair)\n3. Preparations (full-text\ + \ or metadata key-value pair)\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata\ + \ 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 (`\"`).\n\n## Combinations\nMetadata 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.\n\n" + operationId: "omicsSearchStreamedExpressionDataAsCurator" + parameters: + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `features.NAME=1007_s_at`\ + \ or `features.\"Average Mz\"=2.218`. As in the case of sample metadata\ + \ queries, single words can be supplied as is; otherwise, use speech marks\ + \ (`\"`) to quote queries that include whitespace. \n2. It is possible to\ + \ specify a set of possible values, separated by comma: `features.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`features.Name_1 > 3`: Select all rows where the\ + \ feature attribute Name_1 values are greater than 3. \n`features.Name_2\ + \ >= 6`: Select all rows where the feature attribute Name_2 values are greater\ + \ than or equal to 6. \n`-3 < features.Name_3 < 3`: Select all rows where\ + \ the feature attribute Name_3 values lie within the interval between -3\ + \ and 3. \n4. Use substring search to get the records where the attribute\ + \ field contains the provided substring: `features.attribute1 =~ \"some\ + \ text\"`. \n5. The first column for each original data file is identified\ + \ as feature accession (typically, it contains gene or protein names, accession\ + \ IDs, etc.). Searching by such feature accession would significantly outperform\ + \ more complex queries by combining the other feature attributes. To enable\ + \ such a search, use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`values.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < values.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`) logical operators and parentheses: \n\ + * `features.Name_1!=A`: Select all rows where Name_1 is not A. \n* `features.Name_1!=A,B,C`:\ + \ Select all rows where Name_1 is not A, B, or C. \n* `features.Name_1=A\ + \ AND features.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ + \ B. \n* `features.Name_1=A && features.Name_2=B`: Equivalent to the example\ + \ above. \n* `features.Name_1=A OR features.Name_2=B`: Select all rows where\ + \ Name_1 is A or Name_2 is B. \n* `features.Name_1=A || features.Name_2=B`:\ + \ Equivalent to the example above. \n* `features.Name_1=A AND (features.Name_2=B\ + \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ + \ B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Deprecated; use `exQuery` parameter instead. Filters results\ + \ by the feature column (e.g., Gene ID). The feature parameter value must\ + \ match the name of the identifier in the GCT file (under the NAME column).\ + \ Example: `ENSG00000077044`" + explode: true + in: "query" + name: "featureList" + schema: + items: + type: "string" + example: "KRAS" + type: "array" + style: "form" + - description: "Accession of the expression group object (GCT)" + in: "query" + name: "groupAccession" + required: true + schema: + type: "string" + - description: "The number of digits after the decimal point for floating-point\ + \ values. The final value is rounded up. Must be non-negative. The default\ + \ is 4." + in: "query" + name: "roundDigits" + schema: + default: 4 + format: "int32" + type: "integer" + responses: + "200": + content: + text/csv: + schema: + $ref: "#/components/schemas/StreamingOutput" + description: "Stream of retrieved Expression data." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Stream data from a given tabular file" + tags: + - "Omics queries as Curator" + /api/v1/as-curator/omics/flow-cytometry/data: + get: + description: "Retrieve flow cytometry data objects whose linked data matches\ + \ all supplied conditions.\n\nNote: A flow cytometry data query must be supplied.\n\ + \n## Conditions\nIt is possible to supply conditions for:\n\n1. Samples (full-text\ + \ or metadata key-value pair)\n2. Parent studies (full-text or metadata key-value\ + \ pair)\n3. Linked variant objects (list of data key-value pairs)\n4. Linked\ + \ flow cytometry objects (list of data key-value pairs)\n5. Linked any data\ + \ (except variant and flow cytometry) objects (list of data key-value pairs)\n\ + \n## Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Data queries\nData queries must be a list of key-value pairs, separated\ + \ by whitespace. The set of valid keys depends on the specific query type,\ + \ and is documented in the query parameter summary. The values can be simple\ + \ non-whitespace strings, or strings enclosed by speech marks (`\"`). Depending\ + \ on the key, the value may be be a comma-delimited list of string values.\ + \ Others require numerical values. Ranges can be supplied with `(0:1)` syntax,\ + \ OR values with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\ + \nExample usage:\nuseVersions=* (query all versions, including those without\ + \ CHAIN_IDs)\nuseVersions=v2 (query the second version. If there is no second\ + \ version then the data file is not queried)\nuseVersions=v1,v0 (query the\ + \ first version and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3\ + \ (for omics data files with a CHAIN_ID of GSCV002 query the third version)\n\ + useVersions=GSVC002:GSF00494,GSF000496 (for omics data files with a CHAIN_ID\ + \ of GSCV002 query only the specific accessions GSF00494 and GSF000496)\n\n\ + Rules for multiple CHAIN_IDs can be supplied to the parameter using the ;\ + \ separator.\n\n## Paging\nFor 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. To return all results iterate through\ + \ pages using cursor values until the `resultsExhausted` response field is\ + \ true.\n\n" + operationId: "omicsSearchFlowCytometryDataAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve flow cytometry data objects by searching across multiple\ + \ data types" + tags: + - "Omics queries as Curator" + /api/v1/as-curator/omics/flow-cytometry/group: + get: + description: "Retrieve group objects whose linked data matches all supplied\ + \ conditions.\n\n## Conditions\nIt is possible to supply conditions for:\n\ + \n1. Samples (full-text or metadata key-value pair)\n2. Parent studies (full-text\ + \ or metadata key-value pair)\n3. Linked variant objects (list of data key-value\ + \ pairs)\n4. Linked flow cytometry objects (list of data key-value pairs)\n\ + 5. Linked any data (except variant and flow cytometry) objects (list of data\ + \ key-value pairs)\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\nData queries must be a list of key-value\ + \ pairs, separated by whitespace. The set of valid keys depends on the specific\ + \ query type, and is documented in the query parameter summary. The values\ + \ can be simple non-whitespace strings, or strings enclosed by speech marks\ + \ (`\"`). Depending on the key, the value may be be a comma-delimited list\ + \ of string values. Others require numerical values. Ranges can be supplied\ + \ with `(0:1)` syntax, OR values with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\ + \nExample usage:\nuseVersions=* (query all versions, including those without\ + \ CHAIN_IDs)\nuseVersions=v2 (query the second version. If there is no second\ + \ version then the data file is not queried)\nuseVersions=v1,v0 (query the\ + \ first version and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3\ + \ (for omics data files with a CHAIN_ID of GSCV002 query the third version)\n\ + useVersions=GSVC002:GSF00494,GSF000496 (for omics data files with a CHAIN_ID\ + \ of GSCV002 query only the specific accessions GSF00494 and GSF000496)\n\n\ + Rules for multiple CHAIN_IDs can be supplied to the parameter using the ;\ + \ separator.\n\n## Paging\nFor 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. To return all results iterate through\ + \ pages using cursor values until the `resultsExhausted` response field is\ + \ true.\n\n" + operationId: "omicsSearchFlowCytometryGroupsAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group objects by searching across multiple data types" + tags: + - "Omics queries as Curator" + /api/v1/as-curator/omics/samples: + get: + description: "Retrieve sample metadata objects whose linked data matches all\ + \ supplied conditions.\n\n## Conditions\nIt is possible to supply conditions\ + \ for:\n\n1. Samples (full-text or metadata key-value pair)\n2. Parent studies\ + \ (full-text or metadata key-value pair)\n3. Linked variant objects (list\ + \ of data key-value pairs)\n4. Linked flow cytometry objects (list of data\ + \ key-value pairs)\n5. Linked any data (except variant and flow cytometry)\ + \ objects (list of data key-value pairs)\n\n## Metadata full-text queries\n\ + 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 (`\\`).\n\n## Metadata\ + \ filters\nMetadata 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 (`\"`).\n\n## Data queries\nData queries\ + \ must be a list of key-value pairs, separated by whitespace. The set of valid\ + \ keys depends on the specific query type, and is documented in the query\ + \ parameter summary. The values can be simple non-whitespace strings, or strings\ + \ enclosed by speech marks (`\"`). Depending on the key, the value may be\ + \ be a comma-delimited list of string values. Others require numerical values.\ + \ Ranges can be supplied with `(0:1)` syntax, OR values with `|`.\n\n## Combinations\n\ + 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.\n\n\ + ## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=* (query all\ + \ versions, including those without CHAIN_IDs)\nuseVersions=v2 (query the\ + \ second version. If there is no second version then the data file is not\ + \ queried)\nuseVersions=v1,v0 (query the first version and any data files\ + \ without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files with\ + \ a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\ + \ To return all results iterate through pages using cursor values until the\ + \ `resultsExhausted` response field is true.\n\n" + operationId: "omicsSearchSamplesAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve sample metadata objects by searching across multiple data\ + \ types" + tags: + - "Omics queries as Curator" + /api/v1/as-curator/omics/variant/data: + get: + description: "Retrieve variant data objects whose linked data matches all supplied\ + \ conditions.\n\nNote: A variant data query must be supplied.\n\n## Conditions\n\ + It is possible to supply conditions for:\n\n1. Samples (full-text or metadata\ + \ key-value pair)\n2. Parent studies (full-text or metadata key-value pair)\n\ + 3. Linked variant objects (list of data key-value pairs)\n4. Linked expression\ + \ objects (list of data key-value pairs)\n5. Linked any data (except variant\ + \ and flow cytometry) objects (list of data key-value pairs)\n\n## Metadata\ + \ full-text queries\nSingle 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 (`\\\ + `).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Data\ + \ queries\nData queries must be a list of key-value pairs, separated by whitespace.\ + \ The set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\ + \ To return all results iterate through pages using cursor values until the\ + \ `resultsExhausted` response field is true.\n\n" + operationId: "omicsSearchVariantDataAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve variant data objects by searching across multiple data types" + tags: + - "Omics queries as Curator" + /api/v1/as-curator/omics/variant/group: + get: + description: "Retrieve group objects whose linked data matches all supplied\ + \ conditions.\n\n## Conditions\nIt is possible to supply conditions for:\n\ + \n1. Samples (full-text or metadata key-value pair)\n2. Parent studies (full-text\ + \ or metadata key-value pair)\n3. Linked variant objects (list of data key-value\ + \ pairs)\n4. Linked flow cytometry objects (list of data key-value pairs)\n\ + 5. Linked any data (except variant and flow cytometry) objects (list of data\ + \ key-value pairs)\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\nData queries must be a list of key-value\ + \ pairs, separated by whitespace. The set of valid keys depends on the specific\ + \ query type, and is documented in the query parameter summary. The values\ + \ can be simple non-whitespace strings, or strings enclosed by speech marks\ + \ (`\"`). Depending on the key, the value may be be a comma-delimited list\ + \ of string values. Others require numerical values. Ranges can be supplied\ + \ with `(0:1)` syntax, OR values with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\ + \nExample usage:\nuseVersions=* (query all versions, including those without\ + \ CHAIN_IDs)\nuseVersions=v2 (query the second version. If there is no second\ + \ version then the data file is not queried)\nuseVersions=v1,v0 (query the\ + \ first version and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3\ + \ (for omics data files with a CHAIN_ID of GSCV002 query the third version)\n\ + useVersions=GSVC002:GSF00494,GSF000496 (for omics data files with a CHAIN_ID\ + \ of GSCV002 query only the specific accessions GSF00494 and GSF000496)\n\n\ + Rules for multiple CHAIN_IDs can be supplied to the parameter using the ;\ + \ separator.\n\n## Paging\nFor 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. To return all results iterate through\ + \ pages using cursor values until the `resultsExhausted` response field is\ + \ true.\n\n" + operationId: "omicsSearchVariantGroupsAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Unique identifier (accession) of Reference Genome object." + in: "query" + name: "referenceGenomeId" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group objects by searching across multiple data types" + tags: + - "Omics queries as Curator" + /api/v1/as-curator/omics/variant/streamed-data: + get: + description: "Stream data from a given group for a VCF file that matches a sample\ + \ query/filter. If no query/filters are supplied all variant data is returned.\ + \ If a metadata filter is specified, this endpoint will only return variant\ + \ data that is associated with a sample via metadata attribute.\n\n## Conditions\n\ + It is possible to supply conditions for Samples (full-text or metadata key-value\ + \ pair)\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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\ + \ (`\"`).\n\n## Combinations\nMetadata 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.\n\n" + operationId: "omicsSearchStreamedVariantDataAsCurator" + parameters: + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `features.NAME=1007_s_at`\ + \ or `features.\"Average Mz\"=2.218`. As in the case of sample metadata\ + \ queries, single words can be supplied as is; otherwise, use speech marks\ + \ (`\"`) to quote queries that include whitespace. \n2. It is possible to\ + \ specify a set of possible values, separated by comma: `features.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`features.Name_1 > 3`: Select all rows where the\ + \ feature attribute Name_1 values are greater than 3. \n`features.Name_2\ + \ >= 6`: Select all rows where the feature attribute Name_2 values are greater\ + \ than or equal to 6. \n`-3 < features.Name_3 < 3`: Select all rows where\ + \ the feature attribute Name_3 values lie within the interval between -3\ + \ and 3. \n4. Use substring search to get the records where the attribute\ + \ field contains the provided substring: `features.attribute1 =~ \"some\ + \ text\"`. \n5. The first column for each original data file is identified\ + \ as feature accession (typically, it contains gene or protein names, accession\ + \ IDs, etc.). Searching by such feature accession would significantly outperform\ + \ more complex queries by combining the other feature attributes. To enable\ + \ such a search, use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`values.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < values.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`) logical operators and parentheses: \n\ + * `features.Name_1!=A`: Select all rows where Name_1 is not A. \n* `features.Name_1!=A,B,C`:\ + \ Select all rows where Name_1 is not A, B, or C. \n* `features.Name_1=A\ + \ AND features.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ + \ B. \n* `features.Name_1=A && features.Name_2=B`: Equivalent to the example\ + \ above. \n* `features.Name_1=A OR features.Name_2=B`: Select all rows where\ + \ Name_1 is A or Name_2 is B. \n* `features.Name_1=A || features.Name_2=B`:\ + \ Equivalent to the example above. \n* `features.Name_1=A AND (features.Name_2=B\ + \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ + \ B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Accession of the variant group object (VCF)" + in: "query" + name: "groupAccession" + required: true + schema: + type: "string" + responses: + "200": + content: + text/tab-separated-values: + schema: + $ref: "#/components/schemas/StreamingOutput" + description: "Stream of retrieved Variant data." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Stream data from a given VCF file" + tags: + - "Omics queries as Curator" + /api/v1/as-curator/integration/studies/{id}/tasks/publish-versions: + post: + description: "This endpoint publishes information from staging and creates new\ + \ metadata versions for the specified study and all associated objects. The\ + \ version name is set to “Auto-published by API call”. Only curators with\ + \ access to the specified studies can use this method." + operationId: "publishStudyByAccessionAsCurator" + parameters: + - description: "Supply the accession of the study to be published" + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Supply text to name this version. If not supplied the version\ + \ name is set to “Auto-published by API call”" + in: "query" + name: "versionMessage" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/TaskInfo" + description: "Task information." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: {} + description: "Forbidden" + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Asynchronous task that publishes all pending versions for a single\ + \ study." + tags: + - "Metadata versioning as Curator" + /api/v1/as-curator/integration/studies/{id}/validation-summary: + get: + operationId: "getStudyValidationSummary" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/StudyValidationSummary" + description: "Study validation result." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve validation summary by querying study ID (accession)" + tags: + - "Validation summary as Curator" + /api/v1/as-curator/integration/link/files/by/study/{id}: + get: + operationId: "getFilesByStudyAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Select `true` in order to include file structure (contents)\ + \ for .h5, .h5ad, .zip, .gz to the response." + in: "query" + name: "includeContents" + required: false + schema: + default: false + type: "boolean" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/AFile" + type: "array" + text/tab-separated-values: + schema: + items: + $ref: "#/components/schemas/AFile" + type: "array" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Invalid data in the request. See the error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "Object with provided accession could not be found in ODM." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve file's metadata by study ID" + tags: + - "Files integration as Curator" + /api/v1/as-curator/integration/link/cell/group/{sourceId}/to/sample/group/{targetId}: + post: + description: "Create links between cells and samples.\n\nCell objects of the\ + \ same group can be linked to sample objects from multiple sample groups,\ + \ but only within the same study." + operationId: "createCellGroupSampleGroupLinkAsCurator" + parameters: + - description: "The ID (accession) of the cell group object" + in: "path" + name: "sourceId" + required: true + schema: + type: "string" + - description: "The ID (accession) of the sample group object" + in: "path" + name: "targetId" + required: true + schema: + type: "string" + responses: + "200": + content: {} + description: "Cell objects have been partially linked to samples." + "204": + content: {} + description: "Cell objects have been fully linked to samples." + "400": + content: {} + description: "Sample group, cell group or samples to the link were not found." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Create links between cells and samples" + tags: + - "Cell integration as Curator" + /api/v1/as-user/data-types: + get: + description: "This endpoint is for instructional uses and can be used to get\ + \ the latest list of Data Types." + operationId: "getDataTypesAsUser" + responses: + "200": + content: + application/json: + schema: + items: + type: "string" + type: "array" + uniqueItems: true + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Lists all available data types." + tags: + - "Linkage as User" + /api/v1/as-user/data-types/links: + get: + description: "This endpoint should be used for instructional needs, and can\ + \ be used in order to get the links between the Data Types." + operationId: "getDataTypesLinksAsUser" + parameters: + - description: "Return only links with the specified data type." + in: "query" + name: "type" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/SourceTypePair" + type: "array" + uniqueItems: true + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "List all possible links between data types that match the specified\ + \ criteria." + tags: + - "Linkage as User" + /api/v1/as-user/integration/link/expression/by/library/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getExpressionByLibraryAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve expression run-level data by querying related library ID\ + \ (accession)" + tags: + - "Expression integration as User" + /api/v1/as-user/integration/link/expression/by/preparation/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getExpressionByPreparationAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve expression run-level data by querying related preparation\ + \ ID (accession)" + tags: + - "Expression integration as User" + /api/v1/as-user/integration/link/expression/by/sample/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getExpressionBySampleAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve expression run-level data by querying related sample ID (accession)" + tags: + - "Expression integration as User" + /api/v1/as-user/integration/link/expression/group/by/study/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n" + operationId: "getExpressionGroupsByStudyAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/MetadataWithId" + type: "array" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group metadata by querying study ID (accession)" + tags: + - "Expression integration as User" + /api/v1/as-user/integration/link/expression/run-to-libraries/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getExpressionRunToLibraryPairsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run-library pairs by group id. Pagination is based on unique\ + \ runs, not unique pairs." + tags: + - "Expression integration as User" + /api/v1/as-user/integration/link/expression/run-to-preparations/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getExpressionRunToPreparationPairsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run-preparation pairs by group id. Pagination is based on\ + \ unique runs, not unique pairs." + tags: + - "Expression integration as User" + /api/v1/as-user/integration/link/expression/run-to-samples/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getExpressionRunToSamplePairsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ + \ runs, not unique pairs." + tags: + - "Expression integration as User" + /api/v1/as-user/integration/link/flow-cytometry/by/sample/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getFlowCytometryBySampleAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve flow cytometry run-level data by querying related sample\ + \ ID (accession)" + tags: + - "Flow Cytometry (FACS) integration as User" + /api/v1/as-user/integration/link/flow-cytometry/group/by/study/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n" + operationId: "getFlowCytometryGroupsByStudyAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/MetadataWithId" + type: "array" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group metadata by querying study ID (accession)" + tags: + - "Flow Cytometry (FACS) integration as User" + /api/v1/as-user/integration/link/flow-cytometry/run-to-samples/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getFlowCytometryRunToSamplePairsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ + \ runs, not unique pairs." + tags: + - "Flow Cytometry (FACS) integration as User" + /api/v1/as-user/integration/link/libraries/by/samples: + get: + description: "Retrieve library metadata objects whose linked sample metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Parent studies (full-text or metadata key-value pair)\n3. Linked variant\ + \ objects (list of data key-value pairs)\n4. Linked flow cytometry objects\ + \ (list of data key-value pairs)\n5. Linked any data (except variant and flow\ + \ cytometry) objects (list of data key-value pairs)\n\n## Metadata full-text\ + \ queries\nSingle 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 (`\\`).\n\n\ + ## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\n\ + Data queries must be a list of key-value pairs, separated by whitespace. The\ + \ set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getLibrariesBySamplesAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve library metadata by querying related samples" + tags: + - "Library integration as User" + /api/v1/as-user/integration/link/library/by/sample/{id}: + get: + operationId: "getLibraryBySampleAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/Library" + type: "array" + text/tab-separated-values: + schema: + items: + $ref: "#/components/schemas/Library" + type: "array" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve library metadata by querying related sample ID (accession)" + tags: + - "Library integration as User" + /api/v1/as-user/integration/link/library/group/by/study/{id}: + get: + operationId: "getLibraryGroupsByStudyAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/MetadataWithId" + type: "array" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group metadata by querying study ID (accession)" + tags: + - "Library integration as User" + /api/v1/as-user/integration/link/library/libraries-to-samples/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getLibraryLinksToSamplesAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve library-samples pairs by group id. Pagination is based on\ + \ unique libraries, not unique pairs." + tags: + - "Library integration as User" + /api/v1/as-user/integration/link/preparation/by/sample/{id}: + get: + operationId: "getPreparationBySampleAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/Preparation" + type: "array" + text/tab-separated-values: + schema: + items: + $ref: "#/components/schemas/Preparation" + type: "array" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve preparation metadata by querying related sample ID (accession)" + tags: + - "Preparation integration as User" + /api/v1/as-user/integration/link/preparation/group/by/study/{id}: + get: + operationId: "getPreparationGroupsByStudyAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/MetadataWithId" + type: "array" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group metadata by querying study ID (accession)" + tags: + - "Preparation integration as User" + /api/v1/as-user/integration/link/preparation/preparations-to-samples/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getPreparationLinksToSamplesAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ + \ preparations, not unique pairs." + tags: + - "Preparation integration as User" + /api/v1/as-user/integration/link/preparations/by/samples: + get: + description: "Retrieve preparation metadata objects whose linked sample metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Parent studies (full-text or metadata key-value pair)\n3. Linked variant\ + \ objects (list of data key-value pairs)\n4. Linked flow cytometry objects\ + \ (list of data key-value pairs)\n5. Linked any data (except variant and flow\ + \ cytometry) objects (list of data key-value pairs)\n\n## Metadata full-text\ + \ queries\nSingle 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 (`\\`).\n\n\ + ## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\n\ + Data queries must be a list of key-value pairs, separated by whitespace. The\ + \ set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getPreparationsBySamplesAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve preparation metadata by querying related samples" + tags: + - "Preparation integration as User" + /api/v1/as-user/integration/link/samples/by/libraries: + get: + description: "Retrieve sample metadata objects whose linked library metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Parent studies (full-text or metadata key-value pair)\n3. Linked variant\ + \ objects (list of data key-value pairs)\n4. Linked flow cytometry objects\ + \ (list of data key-value pairs)\n5. Linked any data (except variant and flow\ + \ cytometry) objects (list of data key-value pairs)\n\n## Metadata full-text\ + \ queries\nSingle 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 (`\\`).\n\n\ + ## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\n\ + Data queries must be a list of key-value pairs, separated by whitespace. The\ + \ set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getSamplesByLibrariesAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve sample metadata by querying related libraries" + tags: + - "Sample integration as User" + /api/v1/as-user/integration/link/samples/by/preparations: + get: + description: "Retrieve sample metadata objects whose linked preparation metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Parent studies (full-text or metadata key-value pair)\n3. Linked variant\ + \ objects (list of data key-value pairs)\n4. Linked flow cytometry objects\ + \ (list of data key-value pairs)\n5. Linked any data (except variant and flow\ + \ cytometry) objects (list of data key-value pairs)\n\n## Metadata full-text\ + \ queries\nSingle 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 (`\\`).\n\n\ + ## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\n\ + Data queries must be a list of key-value pairs, separated by whitespace. The\ + \ set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getSamplesByPreparationsAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve sample metadata by querying related preparations" + tags: + - "Sample integration as User" + /api/v1/as-user/integration/link/samples/by/study/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getSamplesByStudyAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve sample metadata by querying related study ID (accession)" + tags: + - "Sample integration as User" + /api/v1/as-user/integration/link/studies/by/libraries: + get: + description: "Retrieve study metadata objects whose linked library metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Parent studies (full-text or metadata key-value pair)\n3. Linked variant\ + \ objects (list of data key-value pairs)\n4. Linked flow cytometry objects\ + \ (list of data key-value pairs)\n5. Linked any data (except variant and flow\ + \ cytometry) objects (list of data key-value pairs)\n\n## Metadata full-text\ + \ queries\nSingle 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 (`\\`).\n\n\ + ## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\n\ + Data queries must be a list of key-value pairs, separated by whitespace. The\ + \ set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getStudiesByLibrariesAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve study metadata objects by querying related libraries" + tags: + - "Study integration as User" + /api/v1/as-user/integration/link/studies/by/preparations: + get: + description: "Retrieve study metadata objects whose linked preparation metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Parent studies (full-text or metadata key-value pair)\n3. Linked variant\ + \ objects (list of data key-value pairs)\n4. Linked flow cytometry objects\ + \ (list of data key-value pairs)\n5. Linked any data (except variant and flow\ + \ cytometry) objects (list of data key-value pairs)\n\n## Metadata full-text\ + \ queries\nSingle 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 (`\\`).\n\n\ + ## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\n\ + Data queries must be a list of key-value pairs, separated by whitespace. The\ + \ set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getStudiesByPreparationsAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve study metadata objects by querying related preparations" + tags: + - "Study integration as User" + /api/v1/as-user/integration/link/studies/by/samples: + get: + description: "Retrieve study metadata objects whose linked sample metadata matches\ + \ all supplied conditions.\n\n## Conditions\nIt is possible to supply conditions\ + \ for:\n\n1. Samples (full-text or metadata key-value pair)\n2. Parent studies\ + \ (full-text or metadata key-value pair)\n3. Linked variant objects (list\ + \ of data key-value pairs)\n4. Linked flow cytometry objects (list of data\ + \ key-value pairs)\n5. Linked any data (except variant and flow cytometry)\ + \ objects (list of data key-value pairs)\n\n## Metadata full-text queries\n\ + 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 (`\\`).\n\n## Metadata\ + \ filters\nMetadata 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 (`\"`).\n\n## Data queries\nData queries\ + \ must be a list of key-value pairs, separated by whitespace. The set of valid\ + \ keys depends on the specific query type, and is documented in the query\ + \ parameter summary. The values can be simple non-whitespace strings, or strings\ + \ enclosed by speech marks (`\"`). Depending on the key, the value may be\ + \ be a comma-delimited list of string values. Others require numerical values.\ + \ Ranges can be supplied with `(0:1)` syntax, OR values with `|`.\n\n## Combinations\n\ + 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.\n\n\ + ## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=* (query all\ + \ versions, including those without CHAIN_IDs)\nuseVersions=v2 (query the\ + \ second version. If there is no second version then the data file is not\ + \ queried)\nuseVersions=v1,v0 (query the first version and any data files\ + \ without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files with\ + \ a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getStudiesBySamplesAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ \"Species or strain\"=\"Homo sapiens\"" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for study metadata objects via a full-text query over\ + \ all sample metadata fields. E.g. \"RNA-Seq of human dendritic cells\"\ + . Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve study metadata objects by querying related samples" + tags: + - "Study integration as User" + /api/v1/as-user/integration/link/study/by/sample/{id}: + get: + operationId: "getStudyBySampleAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Study" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve study metadata by querying sample ID (accession)" + tags: + - "Study integration as User" + /api/v1/as-user/integration/link/studies/by/files: + get: + description: "Retrieve study metadata objects whose linked attached files metadata\ + \ matches all supplied conditions.\n\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Attachment files (full-text or metadata key-value\ + \ pair)\n2. Parent studies (full-text or metadata key-value pair)\n\n## Metadata\ + \ full-text queries\nSingle 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 (`\\\ + `).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Combinations\n\ + 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.\n\n\ + ## Paging\nFor 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.\n\n" + operationId: "getStudiesByFilesAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by attachment file metadata (key-value metadata pair(s)).\ + \ E.g. \"Species or strain\"=\"Homo sapiens\"" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for study metadata objects via a full-text query over\ + \ all attached files metadata fields. E.g. \"RNA-Seq of human dendritic\ + \ cells\". Queries matching dictionary terms are automatically expanded\ + \ to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve study metadata objects by querying related attachment files" + tags: + - "Study integration as User" + /api/v1/as-user/integration/link/study/by/file/{id}: + get: + operationId: "getStudyByFileAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Study" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve study metadata by querying attachment file ID (accession)" + tags: + - "Study integration as User" + /api/v1/as-user/integration/fulltext/search/studies: + post: + description: "Find studies and retrieve their data using full-text search or\ + \ facet search by metadata of study itself or child object (samples, libraries,\ + \ preparations, signal groups). Only studies available to that users are returned.\n\ + \nThe endpoint returns:\n- a list of studies with their metadata summary;\n\ + - a list of filter objects with counts; filter list is the same for all users\ + \ in an and can be configured in “Study Browser” application via \"Configure\ + \ facets\" (by a user with corresponding permission); for each filter object,\ + \ only the first 5 most popular facets are returned, the facts are sorted\ + \ by the count value in descending order; only studies available to user are\ + \ counted.\n\nFilter attributes for fulltext search:\n- `\"type\": \"FULL_TEXT\"\ + `\n- `\"match\"`\n- `\"mode\"`\n\nFor details on two latter ones, see the\ + \ request body model. Only one filter with `\"type=\": \"FULL_TEXT\"` can\ + \ be passed in the request body.\n\nTo filter studies via facets, the filter\ + \ attributes are necessary: type = SELECT, filterOptionId. For details, use\ + \ the request body model. filterOptionId can be obtained from the response\ + \ body when the endpoint is first called without filters. Multiple filters\ + \ with type = SELECT can be passed in the request body. Filters within the\ + \ same attribute are automatically used with the OR operator. Filters of different\ + \ attributes are automatically used with the AND operator. This behaviour\ + \ can not be changed.\n\nIt is possible to call the endpoint without any filters,\ + \ then all the studies available to the user are returned.\n\nThe endpoint\ + \ searches by staging version of the object metadata." + operationId: "searchStudiesByFilterAsUser" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/SearchStudyRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/FindObjectsResponse" + description: "The request was successful. Retrieved studies and filters." + "400": + content: {} + description: "Invalid request body" + "401": + content: {} + description: "User is not authenticated. Please supply a valid Genestack\ + \ API token in the `Genestack-API-Token` HTTP header (this token may be\ + \ obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Genestack-API-Token: [] + summary: "Find and retrieve studies by full-text or facet query" + tags: + - "Study integration as User" + x-codegen-request-body-name: "request" + /api/v1/as-user/integration/link/variant/by/sample/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\ + \n" + operationId: "getVariantBySampleAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve variant run-level data by querying related sample ID (accession)" + tags: + - "Variant integration as User" + /api/v1/as-user/integration/link/variant/group/by/study/{id}: + get: + description: "## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=*\ + \ (query all versions, including those without CHAIN_IDs)\nuseVersions=v2\ + \ (query the second version. If there is no second version then the data file\ + \ is not queried)\nuseVersions=v1,v0 (query the first version and any data\ + \ files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files\ + \ with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n" + operationId: "getVariantGroupsByStudyAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/MetadataWithId" + type: "array" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group metadata by querying study ID (accession)" + tags: + - "Variant integration as User" + /api/v1/as-user/integration/link/variant/run-to-samples/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "getVariantRunToSamplePairsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run-sample pairs by group id. Pagination is based on unique\ + \ runs, not unique pairs." + tags: + - "Variant integration as User" + /api/v1/as-user/links: + get: + description: "Please make sure that this endpoint should be used only for getting\ + \ all links to a specific object. In case you specify both firstId and secondId\ + \ an expected answer would be true for existing links and false for no link\ + \ between the objects." + operationId: "getLinksByParamsAsUser" + parameters: + - description: "Object ID (accession) (e.g. accession of study)" + in: "query" + name: "firstId" + required: true + schema: + type: "string" + - description: "Type of the object (e.g. study)" + in: "query" + name: "firstType" + schema: + type: "string" + - description: "Object ID (accession) (e.g. accession of study)" + in: "query" + name: "secondId" + schema: + type: "string" + - description: "Type of the object (e.g. study)" + in: "query" + name: "secondType" + schema: + type: "string" + - description: "Param says to skip that many links before beginning to return\ + \ links." + in: "query" + name: "offset" + schema: + default: 0 + format: "int32" + type: "integer" + - description: "Param says to limit the count of returned links." + in: "query" + name: "limit" + schema: + default: 1000 + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Finds existing links matching the specified criteria." + tags: + - "Linkage as User" + /api/v1/as-user/links/get-batch: + post: + description: "Please make sure to use that endpoint for batch calls only. You\ + \ are not allowed to pass 'mixed' objects. e.g. Studies and Samples at the\ + \ same time. Please always specify firstType." + operationId: "getLinksByIdsAsUser" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BatchOfIds" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Entities cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Finds existing links by passing many IDs. \nPagination goes through\ + \ all links matched the criteria." + tags: + - "Linkage as User" + x-codegen-request-body-name: "request" + /api/v1/as-user/omics/expression/data: + get: + description: "Retrieve any data objects whose linked data matches all supplied\ + \ conditions. \n\nNote: An expression data query must be supplied.\n\n## Conditions\n\ + It is possible to supply conditions for:\n\n1. Samples (full-text or metadata\ + \ key-value pair)\n2. Parent studies (full-text or metadata key-value pair)\n\ + 3. Linked variant objects (list of data key-value pairs)\n4. Linked flow cytometry\ + \ objects (list of data key-value pairs)\n5. Linked any data (except variant\ + \ and flow cytometry) objects (list of data key-value pairs)\n\n## Metadata\ + \ full-text queries\nSingle 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 (`\\\ + `).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Data\ + \ queries\nData queries must be a list of key-value pairs, separated by whitespace.\ + \ The set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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. To return all results iterate through pages using cursor\ + \ values until the `resultsExhausted` response field is true.\n\n" + operationId: "omicsSearchExpressionDataAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve data objects by searching across multiple data types" + tags: + - "Omics queries as User" + /api/v1/as-user/omics/expression/group: + get: + description: "Retrieve group objects whose linked data matches all supplied\ + \ conditions.\n\n## Conditions\nIt is possible to supply conditions for:\n\ + \n1. Samples (full-text or metadata key-value pair)\n2. Parent studies (full-text\ + \ or metadata key-value pair)\n3. Linked variant objects (list of data key-value\ + \ pairs)\n4. Linked flow cytometry objects (list of data key-value pairs)\n\ + 5. Linked any data (except variant and flow cytometry) objects (list of data\ + \ key-value pairs)\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\nData queries must be a list of key-value\ + \ pairs, separated by whitespace. The set of valid keys depends on the specific\ + \ query type, and is documented in the query parameter summary. The values\ + \ can be simple non-whitespace strings, or strings enclosed by speech marks\ + \ (`\"`). Depending on the key, the value may be be a comma-delimited list\ + \ of string values. Others require numerical values. Ranges can be supplied\ + \ with `(0:1)` syntax, OR values with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\ + \nExample usage:\nuseVersions=* (query all versions, including those without\ + \ CHAIN_IDs)\nuseVersions=v2 (query the second version. If there is no second\ + \ version then the data file is not queried)\nuseVersions=v1,v0 (query the\ + \ first version and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3\ + \ (for omics data files with a CHAIN_ID of GSCV002 query the third version)\n\ + useVersions=GSVC002:GSF00494,GSF000496 (for omics data files with a CHAIN_ID\ + \ of GSCV002 query only the specific accessions GSF00494 and GSF000496)\n\n\ + Rules for multiple CHAIN_IDs can be supplied to the parameter using the ;\ + \ separator.\n\n## Paging\nFor 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. To return all results iterate through\ + \ pages using cursor values until the `resultsExhausted` response field is\ + \ true.\n\n" + operationId: "omicsSearchExpressionGroupsAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group objects by searching across multiple data types" + tags: + - "Omics queries as User" + /api/v1/as-user/omics/expression/streamed-data: + get: + description: "Stream data from a given group for a tabular file that matches\ + \ a sample/library/preparations query/filter. If no query/filters are supplied\ + \ all expression data is returned. If a metadata filter is specified, this\ + \ endpoint will only return expression data that is associated with a sample\ + \ via the Sample Source ID attribute.\n## Conditions\nIt is possible to supply\ + \ conditions for:\n\n1. Samples (full-text or metadata key-value pair)\n2.\ + \ Libraries (full-text or metadata key-value pair)\n3. Preparations (full-text\ + \ or metadata key-value pair)\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata\ + \ 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 (`\"`).\n\n## Combinations\nMetadata 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.\n \n\n## Error Handling\n In case\ + \ of unexpected internal error during data retrieval, the last line of the\ + \ body will contain an error message, prefixed by the `#` character \n\n" + operationId: "omicsSearchStreamedExpressionDataAsUser" + parameters: + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.`\"\ + Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `features.NAME=1007_s_at`\ + \ or `features.\"Average Mz\"=2.218`. As in the case of sample metadata\ + \ queries, single words can be supplied as is; otherwise, use speech marks\ + \ (`\"`) to quote queries that include whitespace. \n2. It is possible to\ + \ specify a set of possible values, separated by comma: `features.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`features.Name_1 > 3`: Select all rows where the\ + \ feature attribute Name_1 values are greater than 3. \n`features.Name_2\ + \ >= 6`: Select all rows where the feature attribute Name_2 values are greater\ + \ than or equal to 6. \n`-3 < features.Name_3 < 3`: Select all rows where\ + \ the feature attribute Name_3 values lie within the interval between -3\ + \ and 3. \n4. Use substring search to get the records where the attribute\ + \ field contains the provided substring: `features.attribute1 =~ \"some\ + \ text\"`. \n5. The first column for each original data file is identified\ + \ as feature accession (typically, it contains gene or protein names, accession\ + \ IDs, etc.). Searching by such feature accession would significantly outperform\ + \ more complex queries by combining the other feature attributes. To enable\ + \ such a search, use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`values.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < values.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`) logical operators and parentheses: \n\ + * `features.Name_1!=A`: Select all rows where Name_1 is not A. \n* `features.Name_1!=A,B,C`:\ + \ Select all rows where Name_1 is not A, B, or C. \n* `features.Name_1=A\ + \ AND features.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ + \ B. \n* `features.Name_1=A && features.Name_2=B`: Equivalent to the example\ + \ above. \n* `features.Name_1=A OR features.Name_2=B`: Select all rows where\ + \ Name_1 is A or Name_2 is B. \n* `features.Name_1=A || features.Name_2=B`:\ + \ Equivalent to the example above. \n* `features.Name_1=A AND (features.Name_2=B\ + \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ + \ B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Deprecated; use `exQuery` parameter instead. Filters results\ + \ by the feature column (e.g., Gene ID). The feature parameter value must\ + \ match the name of the identifier in the GCT file (under the NAME column).\ + \ Example: `ENSG00000077044`" + explode: true + in: "query" + name: "featureList" + schema: + items: + type: "string" + example: "KRAS" + type: "array" + style: "form" + - description: "Accession of the expression group object (GCT)" + in: "query" + name: "groupAccession" + required: true + schema: + type: "string" + - description: "The number of digits after the decimal point for floating-point\ + \ values. The final value is rounded up. Must be non-negative. The default\ + \ is 4." + in: "query" + name: "roundDigits" + schema: + default: 4 + format: "int32" + type: "integer" + responses: + "200": + content: + text/csv: + schema: + $ref: "#/components/schemas/StreamingOutput" + description: "Stream of retrieved Expression data." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Stream data from a given tabular file" + tags: + - "Omics queries as User" + /api/v1/as-user/omics/flow-cytometry/data: + get: + description: "Retrieve flow cytometry data objects whose linked data matches\ + \ all supplied conditions.\n\nNote: A flow cytometry data query must be supplied.\n\ + \n## Conditions\nIt is possible to supply conditions for:\n\n1. Samples (full-text\ + \ or metadata key-value pair)\n2. Parent studies (full-text or metadata key-value\ + \ pair)\n3. Linked variant objects (list of data key-value pairs)\n4. Linked\ + \ flow cytometry objects (list of data key-value pairs)\n5. Linked any data\ + \ (except variant and flow cytometry) objects (list of data key-value pairs)\n\ + \n## Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Data queries\nData queries must be a list of key-value pairs, separated\ + \ by whitespace. The set of valid keys depends on the specific query type,\ + \ and is documented in the query parameter summary. The values can be simple\ + \ non-whitespace strings, or strings enclosed by speech marks (`\"`). Depending\ + \ on the key, the value may be be a comma-delimited list of string values.\ + \ Others require numerical values. Ranges can be supplied with `(0:1)` syntax,\ + \ OR values with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\ + \nExample usage:\nuseVersions=* (query all versions, including those without\ + \ CHAIN_IDs)\nuseVersions=v2 (query the second version. If there is no second\ + \ version then the data file is not queried)\nuseVersions=v1,v0 (query the\ + \ first version and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3\ + \ (for omics data files with a CHAIN_ID of GSCV002 query the third version)\n\ + useVersions=GSVC002:GSF00494,GSF000496 (for omics data files with a CHAIN_ID\ + \ of GSCV002 query only the specific accessions GSF00494 and GSF000496)\n\n\ + Rules for multiple CHAIN_IDs can be supplied to the parameter using the ;\ + \ separator.\n\n## Paging\nFor 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. To return all results iterate through\ + \ pages using cursor values until the `resultsExhausted` response field is\ + \ true.\n\n" + operationId: "omicsSearchFlowCytometryDataAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve flow cytometry data objects by searching across multiple\ + \ data types" + tags: + - "Omics queries as User" + /api/v1/as-user/omics/flow-cytometry/group: + get: + description: "Retrieve group objects whose linked data matches all supplied\ + \ conditions.\n\n## Conditions\nIt is possible to supply conditions for:\n\ + \n1. Samples (full-text or metadata key-value pair)\n2. Parent studies (full-text\ + \ or metadata key-value pair)\n3. Linked variant objects (list of data key-value\ + \ pairs)\n4. Linked flow cytometry objects (list of data key-value pairs)\n\ + 5. Linked any data (except variant and flow cytometry) objects (list of data\ + \ key-value pairs)\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\nData queries must be a list of key-value\ + \ pairs, separated by whitespace. The set of valid keys depends on the specific\ + \ query type, and is documented in the query parameter summary. The values\ + \ can be simple non-whitespace strings, or strings enclosed by speech marks\ + \ (`\"`). Depending on the key, the value may be be a comma-delimited list\ + \ of string values. Others require numerical values. Ranges can be supplied\ + \ with `(0:1)` syntax, OR values with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\ + \nExample usage:\nuseVersions=* (query all versions, including those without\ + \ CHAIN_IDs)\nuseVersions=v2 (query the second version. If there is no second\ + \ version then the data file is not queried)\nuseVersions=v1,v0 (query the\ + \ first version and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3\ + \ (for omics data files with a CHAIN_ID of GSCV002 query the third version)\n\ + useVersions=GSVC002:GSF00494,GSF000496 (for omics data files with a CHAIN_ID\ + \ of GSCV002 query only the specific accessions GSF00494 and GSF000496)\n\n\ + Rules for multiple CHAIN_IDs can be supplied to the parameter using the ;\ + \ separator.\n\n## Paging\nFor 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. To return all results iterate through\ + \ pages using cursor values until the `resultsExhausted` response field is\ + \ true.\n\n" + operationId: "omicsSearchFlowCytometryGroupsAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group objects by searching across multiple data types" + tags: + - "Omics queries as User" + /api/v1/as-user/omics/samples: + get: + description: "Retrieve sample metadata objects whose linked data matches all\ + \ supplied conditions.\n\n## Conditions\nIt is possible to supply conditions\ + \ for:\n\n1. Samples (full-text or metadata key-value pair)\n2. Parent studies\ + \ (full-text or metadata key-value pair)\n3. Linked variant objects (list\ + \ of data key-value pairs)\n4. Linked flow cytometry objects (list of data\ + \ key-value pairs)\n5. Linked any data (except variant and flow cytometry)\ + \ objects (list of data key-value pairs)\n\n## Metadata full-text queries\n\ + 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 (`\\`).\n\n## Metadata\ + \ filters\nMetadata 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 (`\"`).\n\n## Data queries\nData queries\ + \ must be a list of key-value pairs, separated by whitespace. The set of valid\ + \ keys depends on the specific query type, and is documented in the query\ + \ parameter summary. The values can be simple non-whitespace strings, or strings\ + \ enclosed by speech marks (`\"`). Depending on the key, the value may be\ + \ be a comma-delimited list of string values. Others require numerical values.\ + \ Ranges can be supplied with `(0:1)` syntax, OR values with `|`.\n\n## Combinations\n\ + 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.\n\n\ + ## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=* (query all\ + \ versions, including those without CHAIN_IDs)\nuseVersions=v2 (query the\ + \ second version. If there is no second version then the data file is not\ + \ queried)\nuseVersions=v1,v0 (query the first version and any data files\ + \ without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files with\ + \ a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\ + \ To return all results iterate through pages using cursor values until the\ + \ `resultsExhausted` response field is true.\n\n" + operationId: "omicsSearchSamplesAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve sample metadata objects by searching across multiple data\ + \ types" + tags: + - "Omics queries as User" + /api/v1/as-user/omics/variant/data: + get: + description: "Retrieve variant data objects whose linked data matches all supplied\ + \ conditions.\n\nNote: A variant data query must be supplied.\n\n## Conditions\n\ + It is possible to supply conditions for:\n\n1. Samples (full-text or metadata\ + \ key-value pair)\n2. Parent studies (full-text or metadata key-value pair)\n\ + 3. Linked variant objects (list of data key-value pairs)\n4. Linked expression\ + \ objects (list of data key-value pairs)\n5. Linked any data (except variant\ + \ and flow cytometry) objects (list of data key-value pairs)\n\n## Metadata\ + \ full-text queries\nSingle 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 (`\\\ + `).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Data\ + \ queries\nData queries must be a list of key-value pairs, separated by whitespace.\ + \ The set of valid keys depends on the specific query type, and is documented\ + \ in the query parameter summary. The values can be simple non-whitespace\ + \ strings, or strings enclosed by speech marks (`\"`). Depending on the key,\ + \ the value may be be a comma-delimited list of string values. Others require\ + \ numerical values. Ranges can be supplied with `(0:1)` syntax, OR values\ + \ with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\nExample\ + \ usage:\nuseVersions=* (query all versions, including those without CHAIN_IDs)\n\ + useVersions=v2 (query the second version. If there is no second version then\ + \ the data file is not queried)\nuseVersions=v1,v0 (query the first version\ + \ and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for\ + \ omics data files with a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\ + \ To return all results iterate through pages using cursor values until the\ + \ `resultsExhausted` response field is true.\n\n" + operationId: "omicsSearchVariantDataAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve variant data objects by searching across multiple data types" + tags: + - "Omics queries as User" + /api/v1/as-user/omics/variant/group: + get: + description: "Retrieve group objects whose linked data matches all supplied\ + \ conditions.\n\n## Conditions\nIt is possible to supply conditions for:\n\ + \n1. Samples (full-text or metadata key-value pair)\n2. Parent studies (full-text\ + \ or metadata key-value pair)\n3. Linked variant objects (list of data key-value\ + \ pairs)\n4. Linked flow cytometry objects (list of data key-value pairs)\n\ + 5. Linked any data (except variant and flow cytometry) objects (list of data\ + \ key-value pairs)\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n## Data queries\nData queries must be a list of key-value\ + \ pairs, separated by whitespace. The set of valid keys depends on the specific\ + \ query type, and is documented in the query parameter summary. The values\ + \ can be simple non-whitespace strings, or strings enclosed by speech marks\ + \ (`\"`). Depending on the key, the value may be be a comma-delimited list\ + \ of string values. Others require numerical values. Ranges can be supplied\ + \ with `(0:1)` syntax, OR values with `|`.\n\n## Combinations\nMetadata 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.\n\n## Versioning\nSpecific 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.\n\ + \nExample usage:\nuseVersions=* (query all versions, including those without\ + \ CHAIN_IDs)\nuseVersions=v2 (query the second version. If there is no second\ + \ version then the data file is not queried)\nuseVersions=v1,v0 (query the\ + \ first version and any data files without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3\ + \ (for omics data files with a CHAIN_ID of GSCV002 query the third version)\n\ + useVersions=GSVC002:GSF00494,GSF000496 (for omics data files with a CHAIN_ID\ + \ of GSCV002 query only the specific accessions GSF00494 and GSF000496)\n\n\ + Rules for multiple CHAIN_IDs can be supplied to the parameter using the ;\ + \ separator.\n\n## Paging\nFor 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. To return all results iterate through\ + \ pages using cursor values until the `resultsExhausted` response field is\ + \ true.\n\n" + operationId: "omicsSearchVariantGroupsAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n" + in: "query" + name: "studyFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all study metadata\ + \ fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries matching\ + \ dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "studyQuery" + schema: + type: "string" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "libraryFilter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "libraryQuery" + schema: + type: "string" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "preparationFilter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "preparationQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "vxFilter" + schema: + type: "string" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `feature.NAME=1007_s_at`\ + \ or `feature.\"Average Mz\"=2.218`. As in the case of sample metadata queries,\ + \ single words can be supplied as is; otherwise, use speech marks (`\"`)\ + \ to quote queries that include whitespace. \n2. It is possible to specify\ + \ a set of possible values, separated by comma: `feature.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`feature.Name_1 > 3`: Select all rows where the feature\ + \ attribute Name_1 values are greater than 3. \n`feature.Name_2 >= 6`: Select\ + \ all rows where the feature attribute Name_2 values are greater than or\ + \ equal to 6. \n`-3 < feature.Name_3 < 3`: Select all rows where the feature\ + \ attribute Name_3 values lie within the interval between -3 and 3. \n4.\ + \ Use substring search to get the records where the attribute field contains\ + \ the provided substring: `feature.attribute1 =~ \"some text\"`. \n5. The\ + \ first column for each original data file is identified as feature accession\ + \ (typically, it contains gene or protein names, accession IDs, etc.). Searching\ + \ by such feature accession would significantly outperform more complex\ + \ queries by combining the other feature attributes. To enable such a search,\ + \ use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`value.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < value.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`), `NOT` (`!`) logical operators and parentheses:\ + \ \n* `NOT feature.Name_1=A`: Select all rows where Name_1 is not A. \n\ + * `feature.Name_1!=A,B,C`: Select all rows where Name_1 is not A, B, or\ + \ C. \n* `feature.Name_1=A AND feature.Name_2=B`: Select all rows where\ + \ Name_1 is A and Name_2 is B. \n* `feature.Name_1=A && feature.Name_2=B`:\ + \ Equivalent to the example above. \n* `feature.Name_1=A OR feature.Name_2=B`:\ + \ Select all rows where Name_1 is A or Name_2 is B. \n* `feature.Name_1=A\ + \ || feature.Name_2=B`: Equivalent to the example above. \n* `feature.Name_1=A\ + \ AND (feature.Name_2=B OR value>=1.0)`: Select all rows where Name_1 is\ + \ A and either Name_2 is B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Filter by expression metadata (key-value metadata pair(s)).\ + \ E.g. `\"Genome Version\"=hg19-BROAD`." + in: "query" + name: "exFilter" + schema: + type: "string" + - description: "Search for objects linked to flow cytometry data via data query\ + \ (key-value pair(s)). E.g. `ReadoutType=Median|Count` `CellPopulation=\"\ + CD45+, live\"` `MinValue=3.5`" + in: "query" + name: "fxQuery" + schema: + type: "string" + - description: "Filter by flow cytometry metadata (key-value metadata pair(s)).\ + \ E.g. `Organ=blood`." + in: "query" + name: "fxFilter" + schema: + type: "string" + - description: "Unique identifier (accession) of Reference Genome object." + in: "query" + name: "referenceGenomeId" + schema: + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OmicsResponse" + description: "Omics query result." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve group objects by searching across multiple data types" + tags: + - "Omics queries as User" + /api/v1/as-user/omics/variant/streamed-data: + get: + description: "Stream data from a given group for a VCF file that matches a sample\ + \ query/filter. If no query/filters are supplied all variant data is returned.\ + \ If a metadata filter is specified, this endpoint will only return variant\ + \ data that is associated with a sample via metadata attribute.\n\n## Conditions\n\ + It is possible to supply conditions for Samples (full-text or metadata key-value\ + \ pair)\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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\ + \ (`\"`).\n\n## Combinations\nMetadata 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.\n\n" + operationId: "omicsSearchStreamedVariantDataAsUser" + parameters: + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n" + in: "query" + name: "sampleFilter" + schema: + type: "string" + - description: "Search for objects via a full-text query over all sample metadata\ + \ fields. E.g. `Clozapine`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "sampleQuery" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Search for objects linked to expression data and originally\ + \ uploaded in TSV or GCT format via data query, e.g., `feature=ENSG00000230368,ENSG00000188976\ + \ value>=1.50`\n For the case when the original data is represented by multiple\ + \ attributes per feature scenarios, extended filtering syntax is as follows:\ + \ \n1. By feature attribute value for numeric and string attributes: `features.NAME=1007_s_at`\ + \ or `features.\"Average Mz\"=2.218`. As in the case of sample metadata\ + \ queries, single words can be supplied as is; otherwise, use speech marks\ + \ (`\"`) to quote queries that include whitespace. \n2. It is possible to\ + \ specify a set of possible values, separated by comma: `features.NAME=1007_s_at,121_at`.\ + \ \n3. Utilize range filters to search numeric attributes. Apply `<` (less\ + \ than), `>` (greater than), and `=` (equal to) symbols to specify the desired\ + \ ranges as follows: \n`features.Name_1 > 3`: Select all rows where the\ + \ feature attribute Name_1 values are greater than 3. \n`features.Name_2\ + \ >= 6`: Select all rows where the feature attribute Name_2 values are greater\ + \ than or equal to 6. \n`-3 < features.Name_3 < 3`: Select all rows where\ + \ the feature attribute Name_3 values lie within the interval between -3\ + \ and 3. \n4. Use substring search to get the records where the attribute\ + \ field contains the provided substring: `features.attribute1 =~ \"some\ + \ text\"`. \n5. The first column for each original data file is identified\ + \ as feature accession (typically, it contains gene or protein names, accession\ + \ IDs, etc.). Searching by such feature accession would significantly outperform\ + \ more complex queries by combining the other feature attributes. To enable\ + \ such a search, use `feature` without any attribute extension, e.g., `feature=ENSG00000230368,ENSG00000188976`.\n\ + \ \nThe `value` keyword can be used to select rows where the sample (library\ + \ or preparation) measurements has values from a certain range. Examples:\ + \ `value = 3`, `value > 3`, `-3 < value < 3`. When the original data contains\ + \ multiple measurements for a single item, such as a sample (library or\ + \ preparation), use the measurement name to specify the exact column type,\ + \ e.g.: \n1. `value.intensity = 3`: Selects all rows where the measurement\ + \ attribute intensity equals 3. \n `value.intensity != 2,null`: Select all\ + \ rows where the measurement attribute intensity is not equal 2 and is not\ + \ an empty value. \n`values.p_value > 3`: Selects all rows where the measurement\ + \ attribute 'p_value' values are greater than 3. \n`-3 < values.FC < 3`:\ + \ Selects all rows where the measurement attribute 'FC' values lie within\ + \ the interval between -3 and 3.\n \n2. Note: The `MinValue` keyword has\ + \ been deprecated and should be replaced with the aforementioned comparisons.\n\ + \ \nCombine multiple filters for different feature attributes and measurements\ + \ using `AND` (`&&`), `OR` (`||`) logical operators and parentheses: \n\ + * `features.Name_1!=A`: Select all rows where Name_1 is not A. \n* `features.Name_1!=A,B,C`:\ + \ Select all rows where Name_1 is not A, B, or C. \n* `features.Name_1=A\ + \ AND features.Name_2=B`: Select all rows where Name_1 is A and Name_2 is\ + \ B. \n* `features.Name_1=A && features.Name_2=B`: Equivalent to the example\ + \ above. \n* `features.Name_1=A OR features.Name_2=B`: Select all rows where\ + \ Name_1 is A or Name_2 is B. \n* `features.Name_1=A || features.Name_2=B`:\ + \ Equivalent to the example above. \n* `features.Name_1=A AND (features.Name_2=B\ + \ OR value>=1.0)`: Select all rows where Name_1 is A and either Name_2 is\ + \ B or minimal possible measurement value is 1.0." + in: "query" + name: "exQuery" + schema: + type: "string" + - description: "Search for objects linked to variant data by SNPs properties.\ + \ Filtering is currently supported by `filter`, `id`, `region` and `info`\ + \ keywords, as well as `exists` keyword for `INFO` field and their logical\ + \ combinations by means of `not` (`!`), `and` (`&&`), and `or` (`||`) operators\ + \ with standard boolean precedence. Keyword case is ignored.\n * `filter`\ + \ corresponds to the `FILTER` column in the original vcf file. Could be\ + \ either equals or not equals to `PASS` : `filter = PASS` or `filter !=\ + \ pass`.\n * `id` is a string value that corresponds to the `ID` column.\ + \ Multiple values could be added via a comma. Expression `id = rs3214,rg1234`\ + \ is equivalent to `id = rs3214 or id = rg1234`.\n * `region` corresponds\ + \ to CHROM and POS columns. Supports querying by the whole chromosome `region\ + \ = chr1` , by interval within a chromosome `region = chr1:4567-9876543`\ + \ by exact position `region = chr1:456789` or by indefinite ranges like\ + \ `region = x:3456789-*` . Multiple regions could be separated via comma,\ + \ e.g. `region = chr1:34567-98767,chr3` is equivalent to `region = chr1:34567-98767\ + \ or region = chr3`.\n * `feature` is the name of the reference gene associated\ + \ with a specific location in the reference genome which corresponds to\ + \ the VCF file (variant group) from which the variant information is derived.\ + \ By providing the gene name(s), such as `feature=TP53` or `feature=TP53,TGFB`,\ + \ variants located within the same genomic region as the specified gene(s)\ + \ will be retrieved.\n * Filter by vcf `INFO` fields. E.g. to filter all\ + \ variants annotated in dbSNP add `exists(INFO.KEY)`. Use `!exists(INFO.KEY)`\ + \ to exclude variants having the key from the search results. Provide `info.key=value`\ + \ pair to search for an exact match or `info.key!=value` to exclude it from\ + \ the search. Due to the limits of precision in floating point numbers,\ + \ we use a small range of 0.0000001 to identify close matches. This means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries." + in: "query" + name: "vxQuery" + schema: + type: "string" + - description: "Accession of the variant group object (VCF)" + in: "query" + name: "groupAccession" + required: true + schema: + type: "string" + responses: + "200": + content: + text/tab-separated-values: + schema: + $ref: "#/components/schemas/StreamingOutput" + description: "Stream of retrieved Variant data." + "400": + content: {} + description: "Invalid data in request. See error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Stream data from a given VCF file" + tags: + - "Omics queries as User" + /api/v1/as-user/integration/link/files/by/study/{id}: + get: + operationId: "getFilesByStudyAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Select `true` in order to include file structure (contents)\ + \ for .h5, .h5ad, .zip, .gz to the response." + in: "query" + name: "includeContents" + required: false + schema: + default: false + type: "boolean" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/AFile" + type: "array" + text/tab-separated-values: + schema: + items: + $ref: "#/components/schemas/AFile" + type: "array" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "Invalid data in the request. See the error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "Object with provided accession could not be found in ODM." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve file's metadata by study ID" + tags: + - "Files integration as User" + /api/v1/jobs/import/study: + post: + description: "\nWhen job finishes successfully the following **result** object\ + \ can be obtained using `GET /job/{id}/output` request:\n\n```\n{\n \"\ + groupAccession\": \"GSF1234567\"\n}\n```\n" + operationId: "startImportStudy" + parameters: + - description: "Load duplicate data: the data from the link(s) has already been\ + \ previously loaded into ODM, and for **testing purposes**, you need to\ + \ load this data again." + in: "query" + name: "allow_dups" + schema: + default: false + type: "boolean" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ImportMetadataRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import study metadata from a TSV file" + tags: + - "Data import jobs" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/samples: + post: + description: "\nWhen job finishes successfully the following **result** object\ + \ can be obtained using `GET /job/{id}/output` request:\n\n```\n{\n \"\ + groupAccession\": \"GSF1234567\"\n}\n```\n" + operationId: "startImportSamples" + parameters: + - description: "Load duplicate data: the data from the link(s) has already been\ + \ previously loaded into ODM, and for **testing purposes**, you need to\ + \ load this data again." + in: "query" + name: "allow_dups" + schema: + default: false + type: "boolean" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ImportMetadataRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import a group of sample metadata objects from a TSV file" + tags: + - "Data import jobs" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/samples/multipart: + post: + description: "\nWhen job finishes successfully the following **result** object\ + \ can be obtained using `GET /job/{id}/output` request:\n\n```\n{\n \"\ + groupAccession\": \"GSF1234567\"\n}\n```\n" + operationId: "startImportSamplesMultipart" + requestBody: + content: + multipart/form-data: + schema: + $ref: "#/components/schemas/ImportMetadataFromMultipartRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import a group of sample metadata objects from a TSV file via multipart/form-data\ + \ upload" + tags: + - "Data import via direct file upload" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/libraries: + post: + description: "\nWhen job finishes successfully the following **result** object\ + \ can be obtained using `GET /job/{id}/output` request:\n\n```\n{\n \"\ + groupAccession\": \"GSF1234567\"\n}\n```\n" + operationId: "startImportLibraries" + parameters: + - description: "Load duplicate data: the data from the link(s) has already been\ + \ previously loaded into ODM, and for **testing purposes**, you need to\ + \ load this data again." + in: "query" + name: "allow_dups" + schema: + default: false + type: "boolean" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ImportMetadataRequest" + multipart/form-data: + schema: + $ref: "#/components/schemas/ImportMetadataFromMultipartRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import a group of library metadata objects from a TSV file" + tags: + - "Data import jobs" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/libraries/multipart: + post: + description: "\nWhen job finishes successfully the following **result** object\ + \ can be obtained using `GET /job/{id}/output` request:\n\n```\n{\n \"\ + groupAccession\": \"GSF1234567\"\n}\n```\n" + operationId: "startImportLibrariesMultipart" + requestBody: + content: + multipart/form-data: + schema: + $ref: "#/components/schemas/ImportMetadataFromMultipartRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import a group of library metadata objects from a TSV file via multipart/form-data\ + \ upload" + tags: + - "Data import via direct file upload" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/preparations: + post: + description: "\nWhen job finishes successfully the following **result** object\ + \ can be obtained using `GET /job/{id}/output` request:\n\n```\n{\n \"\ + groupAccession\": \"GSF1234567\"\n}\n```\n" + operationId: "startImportPreparations" + parameters: + - description: "Load duplicate data: the data from the link(s) has already been\ + \ previously loaded into ODM, and for **testing purposes**, you need to\ + \ load this data again." + in: "query" + name: "allow_dups" + schema: + default: false + type: "boolean" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ImportMetadataRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import a group of preparation metadata objects from a TSV file" + tags: + - "Data import jobs" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/preparations/multipart: + post: + description: "\nWhen job finishes successfully the following **result** object\ + \ can be obtained using `GET /job/{id}/output` request:\n\n```\n{\n \"\ + groupAccession\": \"GSF1234567\"\n}\n```\n" + operationId: "startImportPreparationsMultipart" + requestBody: + content: + multipart/form-data: + schema: + $ref: "#/components/schemas/ImportMetadataFromMultipartRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import a group of preparation metadata objects from a TSV file via\ + \ multipart/form-data upload" + tags: + - "Data import via direct file upload" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/cells: + post: + description: "\nThe endpoint initiates a job to import cell data and creates\ + \ a Cell Group to manage it.\n\nWhen job finishes successfully the following\ + \ **result** object can be obtained using `GET /job/{id}/output` request:\n\ + \n```\n{\n \"groupAccession\": \"GSF1234567\"\n}\n```\n" + operationId: "startImportCells" + parameters: + - description: "Load duplicate data: the data from the link(s) has already been\ + \ previously loaded into ODM, and for **testing purposes**, you need to\ + \ load this data again." + in: "query" + name: "allow_dups" + schema: + default: false + type: "boolean" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ImportCellsRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import a group of cell data objects from a TSV file" + tags: + - "Data import jobs" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/cells/multipart: + post: + description: "\nThe endpoint initiates a job to import cell data and creates\ + \ a Cell Group to manage it.\n\nWhen job finishes successfully the following\ + \ **result** object can be obtained using `GET /job/{id}/output` request:\n\ + \n```\n{\n \"groupAccession\": \"GSF1234567\"\n}\n```\n" + operationId: "startImportCellsMultipart" + requestBody: + content: + multipart/form-data: + schema: + $ref: "#/components/schemas/ImportCellsFromMultipartRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import a group of cell data objects from a TSV file via multipart/form-data\ + \ upload" + tags: + - "Data import via direct file upload" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/expression: + post: + description: "## Data\n This operation necessitates the URL of a tabular data\ + \ file, which must be either in TSV or GCT 1.2 format. Consult the user guide\ + \ for a comprehensive understanding of the file content requirements. The\ + \ endpoint is capable of handling uploads of any data type, which can be detailed\ + \ in the parameters section, not only Gene Expression data.\n\n## Metadata\n\ + \ It is also possible to optionally supply the URL of a metadata file. This\ + \ metadata will be used as the original metadata for the created objects.\ + \ The file is expected to contain single record with metadata describing the\ + \ uploaded signal file.\n## Metadata file format\n * Extension: any, `.zip`\ + \ and `.gz` extensions are treated as archives and get decompressed\n * Format:\ + \ plain text, Tab-separated format (TSV), attribute names and record values\ + \ are separated with tabs (`U+0009`), lines are separated with `CRLF` sequence\ + \ (`U+000D U+000A`)\n * Header: the first line is treated as table header\ + \ that contains attribute names\n * Records: the second line contains the\ + \ values for each of the attributes described in the header line. Values\ + \ represent single string or list of strings. List values are separated using\ + \ the \"pipe\" `|` (`U+007C`) separator. Values are trimmed of whitespace\ + \ before parsing, and a literal `|` (`U+007C`) character may be escaped by\ + \ repeating it twice.\n * Skip zeros in original data file: If this option\ + \ is selected, zeros in the file will be ignored, thus conserving time and\ + \ space. This option is particularly useful for handling very sparse data\ + \ such as Single Cell data." + operationId: "startImportExpression" + parameters: + - description: "Load duplicate data: the data from the link(s) has already been\ + \ previously loaded into ODM, and for **testing purposes**, you need to\ + \ load this data again." + in: "query" + name: "allow_dups" + schema: + default: false + type: "boolean" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ImportExpressionSignalRunRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import any tabular data from TSV or GCT files" + tags: + - "Data import jobs" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/expression/multipart: + post: + description: "## Data\n This operation necessitates the URL of a tabular data\ + \ file, which must be either in TSV or GCT 1.2 format. Consult the user guide\ + \ for a comprehensive understanding of the file content requirements. The\ + \ endpoint is capable of handling uploads of any data type, which can be detailed\ + \ in the parameters section, not only Gene Expression data.\n\n## Metadata\n\ + \ It is also possible to optionally supply the URL of a metadata file. This\ + \ metadata will be used as the original metadata for the created objects.\ + \ The file is expected to contain single record with metadata describing the\ + \ uploaded signal file.\n## Metadata file format\n * Extension: any, `.zip`\ + \ and `.gz` extensions are treated as archives and get decompressed\n * Format:\ + \ plain text, Tab-separated format (TSV), attribute names and record values\ + \ are separated with tabs (`U+0009`), lines are separated with `CRLF` sequence\ + \ (`U+000D U+000A`)\n * Header: the first line is treated as table header\ + \ that contains attribute names\n * Records: the second line contains the\ + \ values for each of the attributes described in the header line. Values\ + \ represent single string or list of strings. List values are separated using\ + \ the \"pipe\" `|` (`U+007C`) separator. Values are trimmed of whitespace\ + \ before parsing, and a literal `|` (`U+007C`) character may be escaped by\ + \ repeating it twice.\n * Skip zeros in original data file: If this option\ + \ is selected, zeros in the file will be ignored, thus conserving time and\ + \ space. This option is particularly useful for handling very sparse data\ + \ such as Single Cell data." + operationId: "startImportExpressionMultipart" + requestBody: + content: + multipart/form-data: + schema: + $ref: "#/components/schemas/ImportExpressionSignalRunFromMultipartRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import any tabular data from TSV or GCT files via multipart/form-data\ + \ upload" + tags: + - "Data import via direct file upload" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/variant: + post: + description: "\nWhen job finishes successfully the following **result** object\ + \ can be obtained using `GET /job/{id}/output` request:\n\n```\n{\n \"\ + groupAccession\": \"GSF1234567\"\n}\n```\n " + operationId: "startImportVariant" + parameters: + - description: "Load duplicate data: the data from the link(s) has already been\ + \ previously loaded into ODM, and for **testing purposes**, you need to\ + \ load this data again." + in: "query" + name: "allow_dups" + schema: + default: false + type: "boolean" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ImportSignalRunRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import variation data and metadata from VCF and TSV files" + tags: + - "Data import jobs" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/variant/multipart: + post: + description: "\nWhen job finishes successfully the following **result** object\ + \ can be obtained using `GET /job/{id}/output` request:\n\n```\n{\n \"\ + groupAccession\": \"GSF1234567\"\n}\n```\n " + operationId: "startImportVariantMultipart" + requestBody: + content: + multipart/form-data: + schema: + $ref: "#/components/schemas/ImportSignalRunFomMultipartRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import variation data and metadata from VCF and TSV files via multipart/form-data\ + \ upload" + tags: + - "Data import via direct file upload" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/flow-cytometry: + post: + description: "This operation necessitates the URL of a gated flow cytometry\ + \ data file, which must be in FACS format.\nConsult the user guide for a comprehensive\ + \ understanding of the file content requirements.\nFor flow cytometry data\ + \ in FCS format use expression endpoint.\n\nWhen job finishes successfully\ + \ the following **result** object\ncan be obtained using `GET /job/{id}/output`\ + \ request:\n\n```\n{\n \"groupAccession\": \"GSF1234567\"\n}\n```" + operationId: "startImportFlowCytometry" + parameters: + - description: "Load duplicate data: the data from the link(s) has already been\ + \ previously loaded into ODM, and for **testing purposes**, you need to\ + \ load this data again." + in: "query" + name: "allow_dups" + schema: + default: false + type: "boolean" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ImportSignalRunRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import flow-cytometry data and metadata from FACS and TSV files" + tags: + - "Data import jobs" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/flow-cytometry/multipart: + post: + description: "This operation necessitates the URL of a gated flow cytometry\ + \ data file, which must be in FACS format.\nConsult the user guide for a comprehensive\ + \ understanding of the file content requirements.\nFor flow cytometry data\ + \ in FCS format use expression endpoint.\n\nWhen job finishes successfully\ + \ the following **result** object\ncan be obtained using `GET /job/{id}/output`\ + \ request:\n\n```\n{\n \"groupAccession\": \"GSF1234567\"\n}\n```" + operationId: "startImportFlowCytometryMultipart" + requestBody: + content: + multipart/form-data: + schema: + $ref: "#/components/schemas/ImportSignalRunFomMultipartRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import flow-cytometry data and metadata from FACS and TSV files via\ + \ multipart/form-data upload" + tags: + - "Data import via direct file upload" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/file: + post: + description: "In order to import a file as an attachment to a study, please\ + \ fill in the following fields:\n\n* `source` - The source parameter is ignored\ + \ and will be removed in version 1.61. The source is automatically extracted\ + \ from the link.\n* `dataLink` - a link to a file to import as an attachment.\n\ + The file will be associated with a study and will be searchable by its name\ + \ and metadata.\n* `metadataLink` - an optional URL of a metadata file to\ + \ be used as the original metadata\nfor the created objects. The file must\ + \ contain a single record describing the uploaded attachment.\n* `studyAccession`\ + \ - an accession of a study the file will be associated with.\n* `dataClass`\ + \ - file data class with the following possible values: `Bulk\ntranscriptomics`,\ + \ `Single-cell transcriptomics`, `Differential abundance (FC,\npval, etc.)`,\ + \ `Pathway analysis`, `Proteomics`, `Single-cell proteomics`, `Metabolomics`,\n\ + `Lipidomics`, `Epigenomics`, `DNA methylation`, `Chemoinformatics`, `Imaging\ + \ features`,\n`Gene panel data`, `Biomarker data`, `Physical measures`, `Blood\ + \ counts`, `Other body\nfluid counts`, `Nanopore`, `Flow Cytometry (FCS)`,\ + \ `Document`, `Other`.\n\nWhen job finishes successfully the following **result**\ + \ object can be obtained using `GET /job/{id}/output` request:\n\n```\n{\n\ + \ \"accession\": \"GSF1234567\"\n}\n```" + operationId: "startImportAFile" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ImportAFileRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import file as an attachment" + tags: + - "Data import jobs" + x-codegen-request-body-name: "body" + /api/v1/jobs/import/file/multipart: + post: + description: "In order to import a file as an attachment to a study, please\ + \ fill in the following fields:\n\n* `data` - a file to import as an attachment.\n\ + The file will be associated with a study and will be searchable by its name\ + \ and metadata.\n* `metadata` - an optional metadata file to be used as the\ + \ original metadata\nfor the created objects. The file must contain a single\ + \ record describing the uploaded attachment.\n* `studyAccession` - an accession\ + \ of a study the file will be associated with.\n* `dataClass` - file data\ + \ class with the following possible values: `Bulk\ntranscriptomics`, `Single-cell\ + \ transcriptomics`, `Differential abundance (FC,\npval, etc.)`, `Pathway analysis`,\ + \ `Proteomics`, `Single-cell proteomics`, `Metabolomics`,\n`Lipidomics`, `Epigenomics`,\ + \ `DNA methylation`, `Chemoinformatics`, `Imaging features`,\n`Gene panel\ + \ data`, `Biomarker data`, `Physical measures`, `Blood counts`, `Other body\n\ + fluid counts`, `Nanopore`, `Flow Cytometry (FCS)`, `Document`, `Other`.\n\n\ + When job finishes successfully the following **result** object can be obtained\ + \ using `GET /job/{id}/output` request:\n\n```\n{\n \"accession\": \"GSF1234567\"\ + \n}\n```" + operationId: "startImportAFileMultipart" + requestBody: + content: + multipart/form-data: + schema: + $ref: "#/components/schemas/ImportAFileFromMultipartRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import file as an attachment via multipart/form-data upload" + tags: + - "Data import via direct file upload" + x-codegen-request-body-name: "body" + /api/v1/jobs/{jobExecId}/info: + get: + operationId: "info" + parameters: + - in: "path" + name: "jobExecId" + required: true + schema: + format: "int64" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "get information about one particular job execution" + tags: + - "Job operations" + /api/v1/jobs/{jobExecId}/output: + get: + operationId: "output" + parameters: + - in: "path" + name: "jobExecId" + required: true + schema: + format: "int64" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Output" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "retrieve job output (result)" + tags: + - "Job operations" + /api/v1/jobs/{jobExecId}/restart: + put: + operationId: "restart" + parameters: + - in: "path" + name: "jobExecId" + required: true + schema: + format: "int64" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "restart stopped (failed) job" + tags: + - "Job operations" + /api/v1/jobs/{jobExecId}/stop: + put: + operationId: "stop" + parameters: + - in: "path" + name: "jobExecId" + required: true + schema: + format: "int64" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Info" + description: "successful operation" + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "stop running job" + tags: + - "Job operations" + /api/v1/as-curator/libraries: + get: + description: "Retrieve library metadata objects by searching/listing library\ + \ metadata.\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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\ + \ (`\"`).\n\n## Combinations\nMetadata 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.\n\n## Paging\nFor 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.\n\n## List operation\n\ + \nThis endpoint can be called with no `query` parameter. Doing so returns\ + \ a list of all variant objects." + operationId: "searchLibrariesAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Attribute to sort by, with optional ascending/descending marker,\ + \ of the form `\"[+|-]\"`.\n\nNo marker or `\"+\"` indicates ascending\ + \ sort, and `\"-\"` indicates descending sort.\n\n*Default:* sort by ID\ + \ in ascending order." + in: "query" + name: "sort" + schema: + enum: + - "id" + - "creation" + - "last_update" + - "name" + - "+id" + - "+creation" + - "+last_update" + - "+name" + - "-id" + - "-creation" + - "-last_update" + - "-name" + type: "string" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "List or search for library metadata objects" + tags: + - "Library SPoT as Curator" + /api/v1/as-curator/libraries/by/group/{id}: + get: + operationId: "getLibrariesByGroupAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve libraries related to the given group" + tags: + - "Library SPoT as Curator" + /api/v1/as-curator/libraries/{id}: + get: + operationId: "getLibraryAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Library" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single library object by ID (accession)" + tags: + - "Library SPoT as Curator" + patch: + description: "## Basic operation\nThe object metadata is updated using the supplied\ + \ map of attribute names to attribute values. There are three cases:\n1. The\ + \ attribute name does not already exist in the object metadata. In this case,\ + \ the attribute and value are added to the object metadata.\n2. The attribute\ + \ name already exists in the object metadata. In this case, the value is updated.\n\ + 3. The attribute value is `null`.In this case, the attribute is removed from\ + \ the object metadata.\n\n## Attribute values\nThe attribute values are intelligently\ + \ parsed as booleans, integers, etc." + operationId: "updateLibraryAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataContent" + description: "Metadata in the form of `{key: value, key2: value2, ...}`" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Library" + description: "The objects was successfully created. The returned value is\ + \ the updated object, along with any warnings." + "400": + content: {} + description: "The supplied object ID or metadata is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Update a library object" + tags: + - "Library SPoT as Curator" + x-codegen-request-body-name: "body" + /api/v1/as-curator/libraries/{id}/versions: + get: + operationId: "getLibraryVersionsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of object versions by ID" + tags: + - "Library SPoT as Curator" + /api/v1/as-curator/libraries/{id}/versions/{version}: + get: + operationId: "getLibraryByVersionAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Library" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single library object by ID (accession)" + tags: + - "Library SPoT as Curator" + /api/v1/as-user/libraries: + get: + description: "Retrieve library metadata objects by searching/listing library\ + \ metadata.\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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\ + \ (`\"`).\n\n## Combinations\nMetadata 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.\n\n## Paging\nFor 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.\n\n## List operation\n\ + \nThis endpoint can be called with no `query` parameter. Doing so returns\ + \ a list of all variant objects." + operationId: "searchLibrariesAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by library metadata (key-value metadata pair(s)). E.g.\ + \ `\"Library Type\"=RNA-Seq-1`" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for library objects via a full-text query over all library\ + \ metadata fields. E.g. `\"illumina HiSeq500\"`. Queries matching dictionary\ + \ terms are automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Attribute to sort by, with optional ascending/descending marker,\ + \ of the form `\"[+|-]\"`.\n\nNo marker or `\"+\"` indicates ascending\ + \ sort, and `\"-\"` indicates descending sort.\n\n*Default:* sort by ID\ + \ in ascending order." + in: "query" + name: "sort" + schema: + enum: + - "id" + - "creation" + - "last_update" + - "name" + - "+id" + - "+creation" + - "+last_update" + - "+name" + - "-id" + - "-creation" + - "-last_update" + - "-name" + type: "string" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "List or search for library metadata objects" + tags: + - "Library SPoT as User" + /api/v1/as-user/libraries/by/group/{id}: + get: + operationId: "getLibrariesByGroupAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve libraries related to the given group" + tags: + - "Library SPoT as User" + /api/v1/as-user/libraries/{id}: + get: + operationId: "getLibraryAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Library" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single library object by ID (accession)" + tags: + - "Library SPoT as User" + /api/v1/as-user/libraries/{id}/versions: + get: + operationId: "getLibraryVersionsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of object versions by ID" + tags: + - "Library SPoT as User" + /api/v1/as-user/libraries/{id}/versions/{version}: + get: + operationId: "getLibraryByVersionAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Library" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single library object by ID (accession)" + tags: + - "Library SPoT as User" + /api/v1/manage-data/detached-objects: + get: + description: "Retrieve various types of detached data objects. An object is\ + \ defined as 'detached' if it lacks any direct or indirect link to a root-level\ + \ object, which in this context is referred to as 'study'.\nStudy is considered\ + \ as detached object itself in case there are no links to objects at a lower\ + \ level.\nData with specific `detachedObjectType` can be retrieved by specifying\ + \ the types in `detachedObjectType` parameter.\nThe detached objects are sorted\ + \ according to their `detachedObjectType` and `genestack:accession`.\nSpecific\ + \ ordering can be observed in the list of supported detached types found below.\n\ + Pagination of the results can be conveniently managed using the `cursor` and\ + \ `limit` parameters.\n Supported types of detached objects (listed in the\ + \ order of retrieval) include:\n * `STUDY`\n * `SAMPLE_GROUP`\n * `LIBRARY_GROUP`\n\ + \ * `PREPARATION_GROUP`\n * `CELL_GROUP`\n * `TABULAR_DATA`\n * `GENE_VARIANT`\n\ + \ * `FLOW_CYTOMETRY`\n\n" + operationId: "getDetachedObjects" + parameters: + - description: "Filter by detached object type. Multiple values can be used\ + \ to filter the data." + explode: true + in: "query" + name: "detachedObjectType" + schema: + items: + type: "string" + type: "array" + style: "form" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "limit" + schema: + format: "int32" + type: "integer" + - description: "This parameter enables retrieval of objects starting from a\ + \ specific point.\n Currently, it represents the accession of the last obtained\ + \ object. However, please note that its functionality might change over\ + \ time, so it is advisable to consider the cursor's content as a general\ + \ string." + in: "query" + name: "cursor" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/DetachedCollection" + description: "Retrieved detached data." + "400": + content: {} + description: "Detached data cannot be retrieved due to Bad Request." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: {} + description: "Not enough permissions to call method." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of detached objects" + tags: + - "Manage Data" + /api/v1/manage-data/data: + delete: + description: "The objects will be marked for deletion. In case the selected\ + \ object has more than one version, the endpoint deletes all of them. The\ + \ following object types can be deleted by the endpoint:\n * `STUDY`\n * `SAMPLE_GROUP`\n\ + \ * `LIBRARY_GROUP`\n * `PREPARATION_GROUP`\n * `TABULAR_DATA`\n * `GENE_VARIANT`\n\ + \ * `FLOW_CYTOMETRY`\n * `REFERENCE_GENOME`\n * `FILE`\n\n Moreover, if the\ + \ selected object is linked to any other data, the endpoint will also delete\ + \ the linked data associated with it according to the specified rules:\n *\ + \ If you delete a `STUDY`, the entire study with all the listed group types\ + \ and files, will be removed.\n * Deleting a `SAMPLE_GROUP` will result in\ + \ the removal of all samples associated with this sample group, along with\ + \ any linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`/`LIBRARY_GROUP`/`PREPARATION_GROUP`.\ + \ The linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY` will be deleted,\ + \ even if it is linked to another metadata group.\n * If you delete `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`,\ + \ all associated data, such as links and runs will be removed from ODM.\n\ + \ * If you delete `REFERENCE_GENOME`, searching for variant by variantFeature\ + \ (genes) won't be available for linked VCF groups.\n * If you delete `FILE`,\ + \ the file will be removed from ODM." + operationId: "deleteData" + parameters: + - description: "Accessions files to be deleted." + explode: false + in: "query" + name: "accessions" + schema: + items: + type: "string" + type: "array" + style: "form" + responses: + "202": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/ManagedObject" + type: "array" + description: "The deletion of the following files and all linked data has\ + \ started." + "400": + content: {} + description: "Deletion could not be performed due to Bad Request." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: {} + description: "Not enough permissions to call method or the file is not meant\ + \ to be deleted." + "404": + content: {} + description: "Some of the provided accessions could not be found in ODM.\ + \ Deletion will not be preformed. Please review your list and repeat the\ + \ attempt." + "406": + content: {} + description: "Some of the provided accessions do not belong to the supported\ + \ object types. Deletion will not be performed. Please review your list\ + \ and repeat the attempt." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete objects from ODM" + tags: + - "Manage Data" + /api/v1/as-curator/preparations: + get: + description: "Retrieve preparation metadata objects by searching/listing preparation\ + \ metadata.\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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\ + \ (`\"`).\n\n## Combinations\nMetadata 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.\n\n## Paging\nFor 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 return all results iterate through pages using pageOffset\ + \ values of `n*pageLimit` until the `resultsExhausted` response field is true.\n\ + \n## List operation\n\nThis endpoint can be called with no `query` parameter.\ + \ Doing so returns a list of all variant objects." + operationId: "searchPreparationsAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Attribute to sort by, with optional ascending/descending marker,\ + \ of the form `\"[+|-]\"`.\n\nNo marker or `\"+\"` indicates ascending\ + \ sort, and `\"-\"` indicates descending sort.\n\n*Default:* sort by ID\ + \ in ascending order." + in: "query" + name: "sort" + schema: + enum: + - "id" + - "creation" + - "last_update" + - "name" + - "+id" + - "+creation" + - "+last_update" + - "+name" + - "-id" + - "-creation" + - "-last_update" + - "-name" + type: "string" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "List or search for preparation metadata objects" + tags: + - "Preparation SPoT as Curator" + /api/v1/as-curator/preparations/by/group/{id}: + get: + operationId: "getPreparationsByGroupAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve preparations related to the given group" + tags: + - "Preparation SPoT as Curator" + /api/v1/as-curator/preparations/{id}: + get: + operationId: "getPreparationAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Preparation" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single preparation object by ID (accession)" + tags: + - "Preparation SPoT as Curator" + patch: + description: "## Basic operation\nThe object metadata is updated using the supplied\ + \ map of attribute names to attribute values. There are three cases:\n1. The\ + \ attribute name does not already exist in the object metadata. In this case,\ + \ the attribute and value are added to the object metadata.\n2. The attribute\ + \ name already exists in the object metadata. In this case, the value is updated.\n\ + 3. The attribute value is `null`.In this case, the attribute is removed from\ + \ the object metadata.\n\n## Attribute values\nThe attribute values are intelligently\ + \ parsed as booleans, integers, etc." + operationId: "updatePreparationAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataContent" + description: "Metadata in the form of `{key: value, key2: value2, ...}`" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Preparation" + description: "The objects was successfully created. The returned value is\ + \ the updated object, along with any warnings." + "400": + content: {} + description: "The supplied object ID or metadata is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Update a preparation object" + tags: + - "Preparation SPoT as Curator" + x-codegen-request-body-name: "body" + /api/v1/as-curator/preparations/{id}/versions: + get: + operationId: "getPreparationVersionsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of object versions by ID" + tags: + - "Preparation SPoT as Curator" + /api/v1/as-curator/preparations/{id}/versions/{version}: + get: + operationId: "getPreparationByVersionAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Preparation" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single preparation object by ID (accession)" + tags: + - "Preparation SPoT as Curator" + /api/v1/as-user/preparations: + get: + description: "Retrieve preparation metadata objects by searching/listing preparation\ + \ metadata.\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Metadata filters\nMetadata 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\ + \ (`\"`).\n\n## Combinations\nMetadata 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.\n\n## Paging\nFor 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 return all results iterate through pages using pageOffset\ + \ values of `n*pageLimit` until the `resultsExhausted` response field is true.\n\ + \n## List operation\n\nThis endpoint can be called with no `query` parameter.\ + \ Doing so returns a list of all variant objects." + operationId: "searchPreparationsAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by preparation metadata (key-value metadata pair(s)).\ + \ E.g. `Digestion=Trypsin`" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for preparation objects via a full-text query over all\ + \ preparation metadata fields. E.g. `\"reversed-phase liquid chromatography\"\ + `. Queries matching dictionary terms are automatically expanded to include\ + \ synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Attribute to sort by, with optional ascending/descending marker,\ + \ of the form `\"[+|-]\"`.\n\nNo marker or `\"+\"` indicates ascending\ + \ sort, and `\"-\"` indicates descending sort.\n\n*Default:* sort by ID\ + \ in ascending order." + in: "query" + name: "sort" + schema: + enum: + - "id" + - "creation" + - "last_update" + - "name" + - "+id" + - "+creation" + - "+last_update" + - "+name" + - "-id" + - "-creation" + - "-last_update" + - "-name" + type: "string" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "List or search for preparation metadata objects" + tags: + - "Preparation SPoT as User" + /api/v1/as-user/preparations/by/group/{id}: + get: + operationId: "getPreparationsByGroupAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve preparations related to the given group" + tags: + - "Preparation SPoT as User" + /api/v1/as-user/preparations/{id}: + get: + operationId: "getPreparationAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Preparation" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single preparation object by ID (accession)" + tags: + - "Preparation SPoT as User" + /api/v1/as-user/preparations/{id}/versions: + get: + operationId: "getPreparationVersionsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of object versions by ID" + tags: + - "Preparation SPoT as User" + /api/v1/as-user/preparations/{id}/versions/{version}: + get: + operationId: "getPreparationByVersionAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Preparation" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single preparation object by ID (accession)" + tags: + - "Preparation SPoT as User" + /api/v1/xrefsets: + post: + operationId: "create" + requestBody: + description: "Request body for creating a new xrefset.\n## Important:\nThe\ + \ length of 'sourceId' strings is limited to 255 characters. Ensure that\ + \ the provided values adhere to this limitation to avoid data truncation.\n" + content: + application/json: + schema: + $ref: "#/components/schemas/XrefSetCreateRequest" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/XrefSetCreateResponse" + description: "successful operation" + "201": + content: {} + description: "The objects were successfully created. The returned value\ + \ is a list of created objects." + "400": + content: {} + description: "The object cannot be created. This error occurs when the supplied\ + \ data or metadata are incorrect. Please see error message for details" + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: {} + description: "Not enough permissions to work with the xrefset." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Import a new xrefset file" + tags: + - "Xrefset queries" + x-codegen-request-body-name: "body" + /api/v1/xrefsets/entries: + get: + description: "## Conditions\nIt is possible to supply a list of values for \"\ + targetId\" and \"sourceId\". If non-empty lists of values for \"targetId\"\ + \ and \"sourceId\" are supplied, the following search rule is applied: (sourceId\ + \ = \"S1\" OR .. sourceId = \"Sn\") AND (targetId = \"T1\" OR .. targetId\ + \ = \"Tm\").\n## Important:\nThe length of 'sourceId' strings is limited to\ + \ 255 characters. Ensure that the provided values adhere to this limitation\ + \ to avoid data truncation.\n" + operationId: "searchEntries" + parameters: + - description: "Supply sourceId in the format \"sourceId\". For transcript-gene\ + \ mapping this is gene ID, e.g. \"ENSG00000146648\"" + explode: true + in: "query" + name: "sourceId" + schema: + items: + type: "string" + type: "array" + style: "form" + - description: "Supply targetId in the format \"targetId\". For transcript-gene\ + \ mapping this is transcript ID, e.g. \"ENST00000617423.4\"" + explode: true + in: "query" + name: "targetId" + schema: + items: + type: "string" + type: "array" + style: "form" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/XrefSetSearchResult" + description: "Json object with the cursor and json array of retrieved xrefset\ + \ data. Response entries are ordered by xrefset ID and then by source\ + \ ID." + "400": + content: {} + description: "Invalid data in the request. See the error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of entries across all xrefsets for given sourceId\ + \ and targetId" + tags: + - "Xrefset queries" + /api/v1/xrefsets/{id}: + delete: + operationId: "deleteFile" + parameters: + - description: "xrefset ID" + in: "path" + name: "id" + required: true + schema: + pattern: ".*" + type: "string" + responses: + "204": + content: {} + description: "Xrefset file successfully marked for deletion, mappings have\ + \ been removed" + "400": + content: {} + description: "Invalid data in the request. See the error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: {} + description: "Not enough permissions to work with the xrefset." + "404": + content: {} + description: "The xrefset does not exist." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Delete a xrefset with all related data.\nOnly users who uploaded the\ + \ xrefset are allowed to delete it." + tags: + - "Xrefset queries" + /api/v1/xrefsets/{id}/entries: + get: + description: "## Conditions\nIt is possible to supply a list of values for \"\ + targetId\" and \"sourceId\". If non-empty lists of values for \"targetId\"\ + \ and \"sourceId\" are supplied, the following search rule is applied: (sourceId\ + \ = \"S1\" OR .. sourceId = \"Sn\") AND (targetId = \"T1\" OR .. targetId\ + \ = \"Tm\").\n\n" + operationId: "searchEntriesWithinFile" + parameters: + - description: "xrefset ID" + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Supply sourceId in the format \"sourceId\". For transcript-gene\ + \ mapping this is gene ID, e.g. \"ENSG00000146648\"" + explode: true + in: "query" + name: "sourceId" + schema: + items: + type: "string" + type: "array" + style: "form" + - description: "Supply targetId in the format \"targetId\". For transcript-gene\ + \ mapping this is transcript ID, e.g. \"ENST00000617423.4\"" + explode: true + in: "query" + name: "targetId" + schema: + items: + type: "string" + type: "array" + style: "form" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + - description: "This parameter determines the number of results to retrieve\ + \ per page, with the default set at 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/XrefSetSearchResult" + description: "Json object with the cursor and json array of retrieved xrefset\ + \ data. Response entries are ordered by xrefset ID and then by source\ + \ ID." + "400": + content: {} + description: "Invalid data in the request. See the error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "The xrefset does not exist." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of entries for the given xrefset and given sourceId\ + \ and targetId" + tags: + - "Xrefset queries" + /api/v1/xrefsets/{id}/metadata: + get: + operationId: "getDetailsByAccession" + parameters: + - description: "xrefset ID" + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/XrefSetMetadata" + description: "Object containing xrefset details, including user submitted\ + \ metadata and system info" + "400": + content: {} + description: "Invalid data in the request. See the error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "The xrefset does not exist." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve xrefset details" + tags: + - "Xrefset queries" + /api/v1/reference-genomes: + get: + operationId: "search_reference_genomes" + summary: "List or search for Reference Genome objects" + tags: + - "Reference genome" + description: "Retrieve Reference Genome metadata objects by searching/listing\ + \ Reference Genome metadata.\n\n## Metadata full-text queries\nSingle 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 (`\\`).\n\n## Paging\nFor 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 by increasing the offset in multiples of limit (e.g., `offset\ + \ = n * limit`), until all results have been retrieved. The total number of\ + \ pages can be calculated by dividing the total number of results by the limit.\n\ + \n## List operation\n\nThis endpoint can be called without any query parameters.\ + \ When called this way, it returns a list of all Reference Genome objects." + parameters: + - in: "query" + name: "organism" + description: "Scientific name of an organism (species) used in reference genome\ + \ file (e.g. `Homo sapiens`)." + schema: + type: "string" + - in: "query" + name: "assembly" + description: "Major version (for example, `GRCh38`)." + schema: + type: "string" + - in: "query" + name: "release" + description: "Ensembl reference genome minor version (for example, `75` or\ + \ `109`)." + schema: + type: "string" + - in: "query" + name: "query" + description: "Search for reference genome via a full-text query over all reference\ + \ genome metadata fields (e.g. `GRCh38`)." + schema: + type: "string" + - in: "query" + name: "pageLimit" + description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + schema: + format: "int32" + type: "integer" + - in: "query" + name: "pageOffset" + description: "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." + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + post: + operationId: "upload" + summary: "Upload reference genome to ODM" + tags: + - "Reference genome" + description: "In order to import reference genome file, please fill in the following\ + \ fields:\n\n* `annotationUrl` - link to the non-vertebrae organism or any\ + \ custom reference genome in .gtf format, archived in `.gz` format.\nNote:\ + \ if any of the parameters below are not corresponding to the available Ensembl\ + \ data (for example, organism name or assembly is changed), the link must\ + \ be provided.\n* `organism` - scientific name (default: Homo sapiens). Please\ + \ see the list of available organisms [here](https://www.ensembl.org/info/about/species.html).\n\ + Note: for some specific cases (Canis lupus breeds, Mus musculus strains, etc.)\ + \ please see the species folders name in the Ensembl FTP (release 113) to\ + \ provide the same organism name as shown in the list.\n* `assembly` - major\ + \ version (for example, `GRCh38`). Please see the list of available assemblies\ + \ [here](https://www.ensembl.org/info/website/archives/assembly.html).\n*\ + \ `release` - Ensembl reference genome minor version (for example, `75` or\ + \ `109`).\n* `name` - customized reference genome title that is used for linkage\ + \ variant files.\nBy default is combined from species, assembly and release\ + \ parameters: `{species} reference genome {assembly}.{release}`.\n\nReference\ + \ genome will be available after initialisation. Please track initialisation\ + \ task status." + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UploadRGRequest" + required: false + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/AccessionResponse" + description: "The object was successfully created." + "400": + content: {} + description: "The object cannot be created. This error occurs when the supplied\ + \ data or metadata are incorrect. Please see error message for details." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: {} + description: "Not enough permissions to call method." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + x-codegen-request-body-name: "body" + /api/v1/reference-genomes/{id}: + get: + operationId: "get_reference_genome_by_accession" + summary: "Retrieve a single Reference Genome object by ID (accession)" + tags: + - "Reference genome" + parameters: + - in: "path" + name: "id" + description: "Unique identifier (Genestack accession) of Reference Genome\ + \ object." + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/RGItem" + description: "The request was successful. The returned value is the object." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + /api/v1/as-curator/samples: + get: + description: "Retrieve sample metadata objects by searching/listing sample metadata.\n\ + \n## Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Combinations\nMetadata 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.\n\ + \n## Paging\nFor 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 return all\ + \ results iterate through pages using pageOffset values of `n*pageLimit` until\ + \ the `resultsExhausted` response field is true.\n\n## List operation\n\n\ + This endpoint can be called with no `query` parameter. Doing so returns a\ + \ list of all variant objects." + operationId: "searchSamplesAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n\n" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for sample objects via a full-text query over all sample\ + \ metadata fields. E.g. `Clozapine`. Queries matching dictionary terms are\ + \ automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Attribute to sort by, with optional ascending/descending marker,\ + \ of the form `\"[+|-]\"`.\n\nNo marker or `\"+\"` indicates ascending\ + \ sort, and `\"-\"` indicates descending sort.\n\n*Default:* sort by ID\ + \ in ascending order." + in: "query" + name: "sort" + schema: + enum: + - "id" + - "creation" + - "last_update" + - "name" + - "+id" + - "+creation" + - "+last_update" + - "+name" + - "-id" + - "-creation" + - "-last_update" + - "-name" + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "List or search for sample metadata objects" + tags: + - "Sample SPoT as Curator" + /api/v1/as-curator/samples/{id}: + get: + operationId: "getSampleAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Sample" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single sample object by ID (accession)" + tags: + - "Sample SPoT as Curator" + patch: + description: "## Basic operation\nThe object metadata is updated using the supplied\ + \ map of attribute names to attribute values. There are three cases:\n1. The\ + \ attribute name does not already exist in the object metadata. In this case,\ + \ the attribute and value are added to the object metadata.\n2. The attribute\ + \ name already exists in the object metadata. In this case, the value is updated.\n\ + 3. The attribute value is `null`.In this case, the attribute is removed from\ + \ the object metadata.\n\n## Attribute values\nThe attribute values are intelligently\ + \ parsed as booleans, integers, etc." + operationId: "updateSampleAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataContent" + description: "Metadata in the form of `{key: value, key2: value2, ...}`" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Sample" + description: "The objects was successfully created. The returned value is\ + \ the updated object, along with any warnings." + "400": + content: {} + description: "The supplied object ID or metadata is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Update a sample object" + tags: + - "Sample SPoT as Curator" + x-codegen-request-body-name: "body" + /api/v1/as-curator/samples/{id}/versions: + get: + operationId: "getSampleVersionsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of object versions by ID" + tags: + - "Sample SPoT as Curator" + /api/v1/as-curator/samples/{id}/versions/{version}: + get: + operationId: "getSampleByVersionAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Sample" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single sample object by ID (accession)" + tags: + - "Sample SPoT as Curator" + /api/v1/as-user/samples: + get: + description: "Retrieve sample metadata objects by searching/listing sample metadata.\n\ + \n## Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Combinations\nMetadata 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.\n\ + \n## Paging\nFor 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 return all\ + \ results iterate through pages using pageOffset values of `n*pageLimit` until\ + \ the `resultsExhausted` response field is true.\n\n## List operation\n\n\ + This endpoint can be called with no `query` parameter. Doing so returns a\ + \ list of all variant objects." + operationId: "searchSamplesAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by sample metadata (key-value metadata pair(s)). E.g.\ + \ `\"Species or strain\"=\"Homo sapiens\"`\n\n" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for sample objects via a full-text query over all sample\ + \ metadata fields. E.g. `Clozapine`. Queries matching dictionary terms are\ + \ automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Attribute to sort by, with optional ascending/descending marker,\ + \ of the form `\"[+|-]\"`.\n\nNo marker or `\"+\"` indicates ascending\ + \ sort, and `\"-\"` indicates descending sort.\n\n*Default:* sort by ID\ + \ in ascending order." + in: "query" + name: "sort" + schema: + enum: + - "id" + - "creation" + - "last_update" + - "name" + - "+id" + - "+creation" + - "+last_update" + - "+name" + - "-id" + - "-creation" + - "-last_update" + - "-name" + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "List or search for sample metadata objects" + tags: + - "Sample SPoT as User" + /api/v1/as-user/samples/{id}: + get: + operationId: "getSampleAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Sample" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single sample object by ID (accession)" + tags: + - "Sample SPoT as User" + /api/v1/as-user/samples/{id}/versions: + get: + operationId: "getSampleVersionsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of object versions by ID" + tags: + - "Sample SPoT as User" + /api/v1/as-user/samples/{id}/versions/{version}: + get: + operationId: "getSampleByVersionAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Sample" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single sample object by ID (accession)" + tags: + - "Sample SPoT as User" + /api/v1/scim/Groups: + get: + description: "The endpoint returns a list of groups that the user has access\ + \ to: where the user is a member of the group or if the user has the \"Manage\ + \ Groups\" permission, then a list of all groups.\n The list can be filtered\ + \ by group attributes using the filter parameter. If no filtering parameters\ + \ are passed, then all available groups are returned. If there are no groups\ + \ in the response body, the endpoint returns 200 OK." + operationId: "findGroups" + parameters: + - description: "Filter by group attributes. The parameter name is case-sensitive,\ + \ therefore parameters FILTER, fiLter, and other options are ignored.\n\ + \ Supported operators:\n   eq - equal, the attribute and operator\ + \ values must be identical for a match;\n   Using other operators\ + \ returns an error.\n Groups can be filtered by displayName only.\n Attribute\ + \ names and attribute operators used in filters are case insensitive.\n\ + \ Examples of the request:\n   filter=displayName eq \"Curator\"\ + ." + in: "query" + name: "filter" + schema: + type: "string" + - description: "If excludedAttributes=members is specified in the request, groups\ + \ are returned without the members attribute. Other attributes are not supported\ + \ in excludedAttributes parameter and ignored in the request → all attributes\ + \ are returned in the response body." + in: "query" + name: "excludedAttributes" + schema: + type: "string" + - description: "The 1-based index of the first result in the current set of\ + \ list results." + in: "query" + name: "startIndex" + schema: + format: "int32" + type: "integer" + - description: "The number of resources returned in a list response page. The\ + \ value by default is 100." + in: "query" + name: "count" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/FilterGroupsResponse" + description: "The request was successful." + "400": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "Incorrect syntax in the request. See the error message for\ + \ details." + "401": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of available groups" + tags: + - "Groups" + post: + description: "The endpoint creates a new user group in ODM. The endpoint does\ + \ not update an existing group. A user who calls the endpoint is added to\ + \ the group automatically with the \"Group admin\" role. The \"members\" attribute\ + \ in the request body must be empty, otherwise the endpoint returns an error.\n\ + \ The endpoint does not require any user permission.\n The endpoint does not\ + \ check the uniqueness of the group name. The user can create any number of\ + \ groups with the same name.\n If there are attributes in the request body\ + \ that ODM does not support, then ODM ignores them." + operationId: "createGroup" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Group" + required: true + responses: + "201": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/GroupResponse" + description: "The operation is successful. The response body contains the\ + \ representation of the newly created group." + "400": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "The object cannot be created, the supplied data or metadata\ + \ are incorrect. See the error message for details." + "401": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "409": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "The object cannot be created, data conflict. See the error\ + \ message for details." + "500": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "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." + security: + - Genestack-API-Token: [] + - Access-token: [] + summary: "Add a new user group" + tags: + - "Groups" + x-codegen-request-body-name: "body" + /api/v1/scim/Groups/{id}: + delete: + description: "The endpoint deletes a group in ODM. The group can be deleted,\ + \ even if it has members: admins and not admins. Users of this group are not\ + \ deactivated.\n Permissions to call the endpoint:\n   - If the\ + \ user does not have the \"Manage groups\" permission:\n     *\ + \ the user has \"Group admin\" role - the user can delete the group;\n     *\ + \ the user has \"Group member\" role - the group can not be deleted, an error\ + \ is returned;\n     * the user is not a member of the\ + \ specified group - the group can not be deleted, an error is returned.\n\ + \   - If the user has the \"Manage groups\" permission - the user\ + \ can delete the group regardless of user’s membership in this group." + operationId: "deleteGroup" + parameters: + - description: "String, unique identifier of the group in ODM." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "The group has been successfully removed. No data is returned." + "400": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "The supplied group ID is invalid." + "401": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "Operation is not permitted. The \"Group admin\" role in the\ + \ group or the \"Manage groups\" permission is required." + "404": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "There are no groups with the specified id." + "500": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "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." + security: + - Genestack-API-Token: [] + - Access-token: [] + summary: "Delete a group" + tags: + - "Groups" + get: + description: "The endpoint returns a not deleted group by id, where id is an\ + \ internal group id in ODM. Access to the group is required:\n   -\ + \ If the user has the \"Manage groups\" permission, the endpoint returns not\ + \ deleted group on the instance regardless of user’s membership in this group;\n\ + \   - If the user does not have the \"Manage groups\" permission,\ + \ the endpoint returns only groups in which the user is a member. Otherwise,\ + \ 404 Not Found is returned." + operationId: "getGroup" + parameters: + - description: "String, unique identifier of the group in ODM." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "If excludedAttributes=members is specified in the request, Groups\ + \ are returned without the members attribute. Other attributes are not supported\ + \ in excludedAttributes parameter and ignored in the request → all attributes\ + \ are returned in the response body." + in: "query" + name: "excludedAttributes" + schema: + type: "string" + responses: + "200": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/GroupResponse" + description: "The request was successful." + "400": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "The supplied group ID is invalid." + "401": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "There are no available groups with the specified id." + "500": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a group by id" + tags: + - "Groups" + patch: + description: "The endpoint updates one or several attributes of a specific group,\ + \ where id is internal group id in ODM. Also the endpoints adds a new user\ + \ to the group and removes users from the group.\n\n Supported operators in\ + \ the request body: replace, add, remove. For details of the syntax of using\ + \ these operators, we recommend that you refer to the SCIM 2.0 specification.\n\ + \n The list of group attributes that can be edited: displayName, externalId,\ + \ members. If the user tries to edit other attributes, e.g. id, an error is\ + \ returned. If the user tries to edit attributes that are not supported in\ + \ the ODM group scheme, this attribute is ignored. If the request body includes\ + \ only attributes that are not supported by ODM, the endpoint returns 200\ + \ OK.\n\n A PATCH request, regardless of the number of operations, is treated\ + \ as atomic. If a single operation encounters an error condition, the original\ + \ user attributes are restored, and a failure status is returned.\n\n The\ + \ endpoint requires access to the group as admin of the group: the user has\ + \ the \"Admin group\" role in the group or the user has the \"Manage groups\"\ + \ permission." + operationId: "patchGroup" + parameters: + - description: "String, unique identifier of the group in ODM." + in: "path" + name: "id" + required: true + schema: + type: "string" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/GroupPatch" + required: true + responses: + "204": + content: {} + description: "Group is successfully updated. No data is returned" + "400": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "The object cannot be updated, the supplied data or metadata\ + \ are incorrect. See the error message for details." + "401": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "Operation is not permitted. The \"Group admin\" role in the\ + \ group or the \"Manage groups\" permission is required." + "404": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "There are no groups with the specified id." + "500": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "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." + security: + - Genestack-API-Token: [] + - Access-token: [] + summary: "Update a group" + tags: + - "Groups" + x-codegen-request-body-name: "body" + /api/v1/scim/Users: + get: + description: "The endpoint returns a list of active users. The list can be filtered\ + \ by user attributes using the filter parameter. If no filtering parameters\ + \ are passed, then all users are returned. If there are no users in the response\ + \ body, the endpoint returns 200 OK. The \"Manage organization\" permission\ + \ is required." + operationId: "findUsers" + parameters: + - description: "Filter by user attributes. The parameter name is case-sensitive,\ + \ therefore parameters FILTER, fiLter, and other options are ignored.\n\ + \ Supported operators:\n   eq - equal, the attribute and operator\ + \ values must be identical for a match;\n   and - logical \"and\"\ + , the filter is only a match if both expressions evaluate to true;\n   Using\ + \ other operators returns an error.\n Attribute names and attribute operators\ + \ used in filters are case insensitive.\n Examples of the request:\n   filter=emails[type\ + \ eq \"work\" and value eq \"user@example.com\"] - returns a user with login\ + \ = user@example.com\n   filter=userName eq \"bjensen\"\n   filter=emails[type\ + \ eq \"work\" and value eq \"user@example.com\"] and userName eq \"bjensen\"\ + ." + in: "query" + name: "filter" + schema: + type: "string" + - description: "The 1-based index of the first result in the current set of\ + \ list results." + in: "query" + name: "startIndex" + schema: + format: "int32" + type: "integer" + - description: "The number of resources returned in a list response page. The\ + \ value by default is 100." + in: "query" + name: "count" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/FilterUsersResponse" + description: "The request was successful." + "400": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "Incorrect syntax in the request. See the error message for\ + \ details." + "401": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "Operation is not permitted. The \"Manage organization\" permission\ + \ is required." + "500": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of all active users" + tags: + - "Users" + post: + description: "The endpoint creates a new user in ODM or updates the existing\ + \ user. A user can be updated by this endpoint if the user has the same login\ + \ as in the request body. The \"Manage organization\" permission is required.\ + \ The endpoint does not allow to specify the user's password and user permissions,\ + \ these parameters can be set in the web application by a user with the \"\ + Manage organization\" permission.\n Only one email can be specified." + operationId: "createUser" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/User" + required: true + responses: + "201": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/UserResponse" + description: "The operation is successful. The response body contains the\ + \ representation of the newly created or updated user." + "400": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "The object cannot be created, the supplied data or metadata\ + \ are incorrect. See the error message for details." + "401": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "Operation is not permitted. The \"Manage organization\" permission\ + \ is required." + "409": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "The object cannot be created, data conflict. See the error\ + \ message for details." + "500": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "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." + security: + - Genestack-API-Token: [] + - Access-token: [] + summary: "Add a new user" + tags: + - "Users" + x-codegen-request-body-name: "body" + /api/v1/scim/Users/{id}: + delete: + operationId: "deleteUser" + parameters: + - description: "String, unique identifier of the user in ODM." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "204": + content: {} + description: "The user has been successfully deactivated. No data is returned." + "400": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "The supplied user ID is invalid." + "401": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "Operation is not permitted. The \"Manage organization\" permission\ + \ is required." + "404": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "There are no users with the specified id." + "500": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "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." + security: + - Genestack-API-Token: [] + - Access-token: [] + summary: "Deactivate a user" + tags: + - "Users" + get: + description: "The endpoint returns an active user by id, where id is internal\ + \ user id in ODM. The \"Manage organization\" permission is required." + operationId: "getUser" + parameters: + - description: "String, unique identifier of the user in ODM." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/UserResponse" + description: "The request was successful." + "400": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "The supplied user ID is invalid." + "401": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "Operation is not permitted. The \"Manage organization\" permission\ + \ is required." + "404": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "There are no available users with the specified id." + "500": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a user by id" + tags: + - "Users" + patch: + description: "The endpoint updates one or several attributes of a specific user,\ + \ where id is internal user id in ODM.\n\n Supported operators in the request\ + \ body: replace, add, remove. For details of the syntax of using these operators,\ + \ we recommend that you refer to the SCIM 2.0 specification.\n\n The list\ + \ of user attributes that can be edited: userName, externalId, displayName,\ + \ active. If the user tries to edit other attributes, e.g. id, an error is\ + \ returned. If the user tries to edit attributes that are not supported in\ + \ the ODM user scheme, e.g. name name.familyName, this attribute is ignored.\ + \ If the request body includes only attributes that are not supported by ODM,\ + \ the endpoint returns 200 OK.\n\n A PATCH request, regardless of the number\ + \ of operations, is treated as atomic. If a single operation encounters an\ + \ error condition, the original user attributes are restored, and a failure\ + \ status is returned.\n\n It is possible to update attributes of the deactivated\ + \ users.\n\n The endpoint requires the \"Manage organization\" permission." + operationId: "patchUser" + parameters: + - description: "String, unique identifier of the user in ODM." + in: "path" + name: "id" + required: true + schema: + type: "string" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UserPatch" + required: true + responses: + "200": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/UserResponse" + description: "User is successfully updated. The response body contains the\ + \ representation of the updated user." + "400": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "The object cannot be updated, the supplied data or metadata\ + \ are incorrect. See the error message for details." + "401": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "Operation is not permitted. The \"Manage organization\" permission\ + \ is required." + "404": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/SCIMErrorResponse" + description: "There are no users with the specified id." + "500": + content: + application/scim+json: + schema: + $ref: "#/components/schemas/BaseErrorResponse" + description: "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." + security: + - Genestack-API-Token: [] + - Access-token: [] + summary: "Update a user" + tags: + - "Users" + x-codegen-request-body-name: "body" + /api/v1/as-curator/studies: + get: + description: "Retrieve study metadata objects by searching/listing study metadata.\n\ + \n## Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Combinations\nMetadata 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.\n\ + \n## Paging\nFor 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 return all\ + \ results iterate through pages using pageOffset values of `n * pageLimit`\ + \ until the `resultsExhausted` response field is true.\n\n## List operation\n\ + \nThis endpoint can be called with no `query` parameter. Doing so returns\ + \ a list of all study objects." + operationId: "searchStudiesAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n\n\n" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for study objects via a full-text query over all study\ + \ metadata fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries\ + \ matching dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Attribute to sort by, with optional ascending/descending marker,\ + \ of the form `\"[+|-]\"`.\n\nNo marker or `\"+\"` indicates ascending\ + \ sort, and `\"-\"` indicates descending sort.\n\n*Default:* sort by ID\ + \ in ascending order." + in: "query" + name: "sort" + schema: + enum: + - "id" + - "creation" + - "last_update" + - "name" + - "+id" + - "+creation" + - "+last_update" + - "+name" + - "-id" + - "-creation" + - "-last_update" + - "-name" + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "List or search for study metadata objects" + tags: + - "Study SPoT as Curator" + /api/v1/as-curator/studies/{id}: + get: + operationId: "getStudyAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Study" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single study object by ID (accession)" + tags: + - "Study SPoT as Curator" + patch: + description: "## Basic operation\nThe object metadata is updated using the supplied\ + \ map of attribute names to attribute values. There are three cases:\n1. The\ + \ attribute name does not already exist in the object metadata. In this case,\ + \ the attribute and value are added to the object metadata.\n2. The attribute\ + \ name already exists in the object metadata. In this case, the value is updated.\n\ + 3. The attribute value is `null`.In this case, the attribute is removed from\ + \ the object metadata.\n\n## Attribute values\nThe attribute values are intelligently\ + \ parsed as booleans, integers, etc." + operationId: "updateStudyAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/MetadataContent" + description: "Metadata in the form of `{key: value, key2: value2, ...}`" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Study" + description: "The objects was successfully created. The returned value is\ + \ the updated object, along with any warnings." + "400": + content: {} + description: "The supplied object ID or metadata is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Update a study object" + tags: + - "Study SPoT as Curator" + x-codegen-request-body-name: "body" + /api/v1/as-curator/studies/{id}/versions: + get: + operationId: "getStudyVersionsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of object versions by ID" + tags: + - "Study SPoT as Curator" + /api/v1/as-curator/studies/{id}/versions/{version}: + get: + operationId: "getStudyByVersionAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Study" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single study object by ID (accession)" + tags: + - "Study SPoT as Curator" + /api/v1/as-user/studies: + get: + description: "Retrieve study metadata objects by searching/listing study metadata.\n\ + \n## Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Combinations\nMetadata 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.\n\ + \n## Paging\nFor 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 return all\ + \ results iterate through pages using pageOffset values of `n * pageLimit`\ + \ until the `resultsExhausted` response field is true.\n\n## List operation\n\ + \nThis endpoint can be called with no `query` parameter. Doing so returns\ + \ a list of all study objects." + operationId: "searchStudiesAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by study metadata (key-value metadata pair(s)). E.g.\ + \ `\"Study Source\"=ArrayExpress`\n\n\n" + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for study objects via a full-text query over all study\ + \ metadata fields. E.g. `\"RNA-Seq of human dendritic cells\"`. Queries\ + \ matching dictionary terms are automatically expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Attribute to sort by, with optional ascending/descending marker,\ + \ of the form `\"[+|-]\"`.\n\nNo marker or `\"+\"` indicates ascending\ + \ sort, and `\"-\"` indicates descending sort.\n\n*Default:* sort by ID\ + \ in ascending order." + in: "query" + name: "sort" + schema: + enum: + - "id" + - "creation" + - "last_update" + - "name" + - "+id" + - "+creation" + - "+last_update" + - "+name" + - "-id" + - "-creation" + - "-last_update" + - "-name" + type: "string" + - description: "Maximum number of results to return. This value must be between\ + \ 0 and 2000 (inclusive)." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + text/tab-separated-values: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "List or search for study metadata objects" + tags: + - "Study SPoT as User" + /api/v1/as-user/studies/{id}: + get: + operationId: "getStudyAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Study" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single study object by ID (accession)" + tags: + - "Study SPoT as User" + /api/v1/as-user/studies/{id}/versions: + get: + operationId: "getStudyVersionsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of object versions by ID" + tags: + - "Study SPoT as User" + /api/v1/as-user/studies/{id}/versions/{version}: + get: + operationId: "getStudyByVersionAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Study" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single study object by ID (accession)" + tags: + - "Study SPoT as User" + /api/v1/tasks/publish-versions: + post: + description: "This endpoint publishes all information from staging and creates\ + \ new metadata versions for each study/associated objects with unpublished\ + \ changes.Only curators with the ACCESS_ALL_DATA permission can use this method." + operationId: "publishAllStudies" + parameters: + - description: "Supply text to name this version. If not supplied the version\ + \ name is set to “Auto-published by API call”" + in: "query" + name: "versionMessage" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/TaskInfo" + description: "Task information." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "403": + content: {} + description: "Forbidden" + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Asynchronous task that publishes all pending versions across all studies\ + \ in the instance." + tags: + - "Tasks API" + /api/v1/tasks/{id}: + get: + description: "Supply the accession (id) of an ODM task to retrieve metadata\ + \ about that task." + operationId: "getTaskInfo" + parameters: + - description: "Accession of the task." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/TaskInfo" + description: "Task information." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve information about any ODM task." + tags: + - "Tasks API" + /api/v1/as-curator/variants: + get: + description: "Retrieve all variant data and metadata objects that match a query.\n\ + \n## Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Combinations\nMetadata 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.\n\ + \n## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=* (query all\ + \ versions, including those without CHAIN_IDs)\nuseVersions=v2 (query the\ + \ second version. If there is no second version then the data file is not\ + \ queried)\nuseVersions=v1,v0 (query the first version and any data files\ + \ without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files with\ + \ a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\n" + operationId: "getAllVariantsAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for variant objects via a full text query over all variant\ + \ metadata. E.g. `dbSNP`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Specify a chromosome interval to find genes between these positions.\ + \ E.g. `2:233364596-233385916`. Multiple intervals can be provided as a\ + \ list." + in: "query" + name: "variantRegion" + schema: + items: + type: "string" + example: "2:233364596-233385916" + type: "array" + style: "form" + - description: "Specify the name of the reference gene associated with a specific\ + \ location in the reference genome which corresponds to the VCF file (variant\ + \ group) from which the variant information is derived. By providing the\ + \ gene name, such as `TP53`, variants located within the same genomic region\ + \ as the specified gene will be retrieved. Multiple genes can be provided\ + \ as a list." + in: "query" + name: "variantFeature" + schema: + items: + type: "string" + example: "ENSG00000227232" + type: "array" + style: "form" + - description: "One or more specific variation IDs can be specified. E.g. `rs838705`" + in: "query" + name: "variantId" + schema: + items: + type: "string" + example: "rs334" + type: "array" + style: "form" + - description: "The parameter allows to retrieve gene variants based on the\ + \ filters defined in the vcf file. If not specified, all variants are returned.\n\ + \n 1. pass - return gene variants which passed all filters\n 2. noPass\ + \ - return gene variants which failed one or more filters" + in: "query" + name: "variantFilter" + schema: + enum: + - "pass" + - "noPass" + type: "string" + - description: "Filter by vcf `INFO` fields. E.g. to filter all variants annotated\ + \ in dbSNP add `exists(info.DB)`.\nUse `!exists(INFO.KEY)` to exclude variants\ + \ having the key from the search results.\nProvide `info.key=value` pair\ + \ to search for an exact match or `info.key!=value` to exclude it from the\ + \ search.\nDue to the limits of precision in floating point numbers, we\ + \ use a small range of 0.0000001 to identify close matches.\nThis means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries.\nCombine multiple filters for `INFO`\ + \ fields using `AND` (`&&`), `OR` (`||`) logical operators and parentheses" + in: "query" + name: "variantInfo" + schema: + type: "string" + - description: "Autogenerated numeric ID that corresponds to a column and is\ + \ used to link data from the same run to a sample. Multiple values can be\ + \ provided as a list." + in: "query" + name: "runFilter" + schema: + $ref: "#/components/schemas/RunFilter" + style: "form" + - description: "Column name from the file to which all data for a sample is\ + \ related. Multiple values can be provided as a list to retrieve data from\ + \ multiple columns." + explode: true + in: "query" + name: "runSourceFilter" + schema: + items: + type: "string" + example: "Run Source ID" + type: "array" + style: "form" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/VariantResponse" + description: "Retrieved variant data." + "400": + content: {} + description: "Variant data cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve multiple variant data and metadata objects" + tags: + - "Variant SPoT as Curator" + /api/v1/as-curator/variants/group: + get: + description: "Retrieve all group metadata objects that match a query.\n\n##\ + \ Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Combinations\nMetadata 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.\n\ + \n## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=* (query all\ + \ versions, including those without CHAIN_IDs)\nuseVersions=v2 (query the\ + \ second version. If there is no second version then the data file is not\ + \ queried)\nuseVersions=v1,v0 (query the first version and any data files\ + \ without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files with\ + \ a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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 return all results iterate through pages\ + \ using pageOffset values of `n*pageLimit` until the `resultsExhausted` response\ + \ field is true.\n\n## List operation\n\nThis endpoint can be called with\ + \ no `query` parameter. Doing so returns a list of all data objects." + operationId: "searchGroupsAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for variant objects via a full text query over all variant\ + \ metadata. E.g. `dbSNP`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve groups that match a query" + tags: + - "Variant SPoT as Curator" + /api/v1/as-curator/variants/group/by/run/{id}: + get: + operationId: "getVariantGroupByRunAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (runId) of the run." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/VariantMetadataWithId" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single group object by run ID (runId)" + tags: + - "Variant SPoT as Curator" + /api/v1/as-curator/variants/group/{id}: + get: + operationId: "getVariantGroupAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Variant group identifier (groupId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/VariantMetadataWithId" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single variant group by ID (groupId)" + tags: + - "Variant SPoT as Curator" + /api/v1/as-curator/variants/runs/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "searchVariantRunsAsCurator" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run objects related to the given group" + tags: + - "Variant SPoT as Curator" + /api/v1/as-curator/variants/{id}: + get: + operationId: "getVariantAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Variant object unique identifier (itemId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/VariantItem" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single variant object by ID (itemId)" + tags: + - "Variant SPoT as Curator" + /api/v1/as-curator/variants/{id}/versions: + get: + operationId: "getVariantVersionsAsCurator" + parameters: + - description: "Variant object run ID (runId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of variant object versions by run ID (runId)" + tags: + - "Variant SPoT as Curator" + /api/v1/as-curator/variants/{id}/versions/{version}: + get: + operationId: "getVariantByVersionAsCurator" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Variant object run ID (runId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the variant object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SignalRun" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single variant object by run ID and its version" + tags: + - "Variant SPoT as Curator" + /api/v1/as-user/variants: + get: + description: "Retrieve all variant data and metadata objects that match a query.\n\ + \n## Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Combinations\nMetadata 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.\n\ + \n## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=* (query all\ + \ versions, including those without CHAIN_IDs)\nuseVersions=v2 (query the\ + \ second version. If there is no second version then the data file is not\ + \ queried)\nuseVersions=v1,v0 (query the first version and any data files\ + \ without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files with\ + \ a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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.\n\n" + operationId: "getAllVariantsAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for variant objects via a full text query over all variant\ + \ metadata. E.g. `dbSNP`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "Specify a chromosome interval to find genes between these positions.\ + \ E.g. `2:233364596-233385916`. Multiple intervals can be provided as a\ + \ list." + in: "query" + name: "variantRegion" + schema: + items: + type: "string" + example: "2:233364596-233385916" + type: "array" + style: "form" + - description: "Specify the name of the reference gene associated with a specific\ + \ location in the reference genome which corresponds to the VCF file (variant\ + \ group) from which the variant information is derived. By providing the\ + \ gene name, such as `TP53`, variants located within the same genomic region\ + \ as the specified gene will be retrieved. Multiple genes can be provided\ + \ as a list." + in: "query" + name: "variantFeature" + schema: + items: + type: "string" + example: "ENSG00000227232" + type: "array" + style: "form" + - description: "One or more specific variation IDs can be specified. E.g. `rs838705`" + in: "query" + name: "variantId" + schema: + items: + type: "string" + example: "rs334" + type: "array" + style: "form" + - description: "The parameter allows to retrieve gene variants based on the\ + \ filters defined in the vcf file. If not specified, all variants are returned.\n\ + \n 1. pass - return gene variants which passed all filters\n 2. noPass\ + \ - return gene variants which failed one or more filters" + in: "query" + name: "variantFilter" + schema: + enum: + - "pass" + - "noPass" + type: "string" + - description: "Filter by vcf `INFO` fields. E.g. to filter all variants annotated\ + \ in dbSNP add `exists(info.DB)`.\nUse `!exists(INFO.KEY)` to exclude variants\ + \ having the key from the search results.\nProvide `info.key=value` pair\ + \ to search for an exact match or `info.key!=value` to exclude it from the\ + \ search.\nDue to the limits of precision in floating point numbers, we\ + \ use a small range of 0.0000001 to identify close matches.\nThis means\ + \ any differences smaller than that won't be detected. For more precise\ + \ results, please use range queries.\nCombine multiple filters for `INFO`\ + \ fields using `AND` (`&&`), `OR` (`||`) logical operators and parentheses" + in: "query" + name: "variantInfo" + schema: + type: "string" + - description: "Autogenerated numeric ID that corresponds to a column and is\ + \ used to link data from the same run to a sample. Multiple values can be\ + \ provided as a list." + in: "query" + name: "runFilter" + schema: + $ref: "#/components/schemas/RunFilter" + style: "form" + - description: "Column name from the file to which all data for a sample is\ + \ related. Multiple values can be provided as a list to retrieve data from\ + \ multiple columns." + explode: true + in: "query" + name: "runSourceFilter" + schema: + items: + type: "string" + example: "Run Source ID" + type: "array" + style: "form" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + - description: "The page tag to resume results from (see paging above)." + in: "query" + name: "cursor" + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/VariantResponse" + description: "Retrieved variant data." + "400": + content: {} + description: "Variant data cannot be retrieved." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve multiple variant data and metadata objects" + tags: + - "Variant SPoT as User" + /api/v1/as-user/variants/group: + get: + description: "Retrieve all group metadata objects that match a query.\n\n##\ + \ Metadata full-text queries\nSingle 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\ + \ (`\\`).\n\n## Metadata filters\nMetadata 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 (`\"`).\n\n\ + ## Combinations\nMetadata 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.\n\ + \n## Versioning\nSpecific 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.\n\nExample usage:\nuseVersions=* (query all\ + \ versions, including those without CHAIN_IDs)\nuseVersions=v2 (query the\ + \ second version. If there is no second version then the data file is not\ + \ queried)\nuseVersions=v1,v0 (query the first version and any data files\ + \ without CHAIN_IDs(v0) )\nuseVersions=GSVC002:v3 (for omics data files with\ + \ a CHAIN_ID of GSCV002 query the third version)\nuseVersions=GSVC002:GSF00494,GSF000496\ + \ (for omics data files with a CHAIN_ID of GSCV002 query only the specific\ + \ accessions GSF00494 and GSF000496)\n\nRules for multiple CHAIN_IDs can be\ + \ supplied to the parameter using the ; separator.\n\n## Paging\nFor 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 return all results iterate through pages\ + \ using pageOffset values of `n*pageLimit` until the `resultsExhausted` response\ + \ field is true.\n\n## List operation\n\nThis endpoint can be called with\ + \ no `query` parameter. Doing so returns a list of all data objects." + operationId: "searchVariantGroupsAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Filter by variant metadata (key-value metadata pair(s)). E.g.\ + \ `\"Variant Source\"=dbSNP`." + in: "query" + name: "filter" + schema: + type: "string" + - description: "Search for variant objects via a full text query over all variant\ + \ metadata. E.g. `dbSNP`. Queries matching dictionary terms are automatically\ + \ expanded to include synonyms." + in: "query" + name: "query" + schema: + type: "string" + - description: "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.\n\nFor 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.\n\nThe parent-child relationship\ + \ is defined by the key \"broaders\" or \"subClassOf\" in the dictionary.\n\ + \nIf the full query term is not present in a dictionary then this parameter\ + \ has no effect." + in: "query" + name: "searchSpecificTerms" + schema: + type: "boolean" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + - description: "Specify which versions of omics data files are used in the query.\ + \ By default the active version is used. See Versioning above. Syntax:\n\ + \n\\* or `v` or ``:`v` or ``:``" + in: "query" + name: "useVersions" + schema: + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is a list of\ + \ objects." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve groups that match a query" + tags: + - "Variant SPoT as User" + /api/v1/as-user/variants/group/by/run/{id}: + get: + operationId: "getVariantGroupByRunAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Unique identifier (runId) of the run." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/VariantMetadataWithId" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single group object by run ID (runId)" + tags: + - "Variant SPoT as User" + /api/v1/as-user/variants/group/{id}: + get: + operationId: "getVariantGroupAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Variant group identifier (groupId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/VariantMetadataWithId" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single variant group by ID (groupId)" + tags: + - "Variant SPoT as User" + /api/v1/as-user/variants/runs/by/group/{id}: + get: + description: "## Paging\nFor 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.\n\n" + operationId: "searchVariantRunsAsUser" + parameters: + - description: "Unique identifier (accession) of the object." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "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." + in: "query" + name: "pageOffset" + schema: + format: "int32" + type: "integer" + - description: "Maximum number of results to return per page (see Paging above).\ + \ This value must be between 0 and 2000 (inclusive). The default is 2000." + in: "query" + name: "pageLimit" + schema: + format: "int32" + type: "integer" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListResponse" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve run objects related to the given group" + tags: + - "Variant SPoT as User" + /api/v1/as-user/variants/{id}: + get: + operationId: "getVariantAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Variant object unique identifier (itemId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/VariantItem" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single variant object by ID (itemId)" + tags: + - "Variant SPoT as User" + /api/v1/as-user/variants/{id}/versions: + get: + operationId: "getVariantVersionsAsUser" + parameters: + - description: "Variant object run ID (runId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CommitInfo" + type: "array" + description: "The request was successful. The returned value is the list\ + \ of object versions." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a list of variant object versions by run ID (runId)" + tags: + - "Variant SPoT as User" + /api/v1/as-user/variants/{id}/versions/{version}: + get: + operationId: "getVariantByVersionAsUser" + parameters: + - description: "Supply this parameter with the value `term_id` as part of the\ + \ query to return extended information including IDs for values and dictionaries." + in: "query" + name: "responseFormat" + schema: + $ref: "#/components/schemas/ResponseFormat" + - description: "Variant object run ID (runId)." + in: "path" + name: "id" + required: true + schema: + type: "string" + - description: "Unique version of the variant object." + in: "path" + name: "version" + required: true + schema: + type: "string" + - description: "The parameter defines amount of metadata attributes to return:\n\ + \n1. `minimal_data` - return metadata attributes according to the default\ + \ template.\n2. `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.\n3. `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." + in: "query" + name: "returnedMetadataFields" + schema: + enum: + - "minimal_data" + - "extended_data_included" + - "original_data_included" + type: "string" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SignalRun" + description: "The request was successful. The returned value is the object." + "400": + content: {} + description: "The supplied object ID is invalid." + "401": + content: {} + description: "User is not authenticated. Please supply a valid Access Token\ + \ in the `Authorization` HTTP header (e.g. Authorization: bearer [token])\n\ + \ or Genestack API token in the `Genestack-API-Token` header (this token\ + \ may be obtained from the Genestack UI _Profile_ page)." + "404": + content: {} + description: "No object exists with the given ID." + "500": + content: {} + description: "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." + security: + - Access-token: [] + - Genestack-API-Token: [] + summary: "Retrieve a single variant object by run ID and its version" + tags: + - "Variant SPoT as User" +components: + schemas: + Cell: + type: object + #schema is not described because of dynamic attributes' limited support in openapi-generator + description: |+ + Cell object having required, optional and dynamic attributes. + + **Required:** + - `cellId`: string - unique cell identifier, which consists of a cell group accession and a cell barcode, separated by a hyphen, e.g. `GSF123456-AAACCTGAGCGCTCCA-1`. + - `barcode`: string - raw barcode of the cell, e.g. `AAACCTGAGCGCTCCA-1`. + - `batch`: string - identifier of an origin object, such as a sample or a library, that this cell belongs to, e.g. `SAMPLE_001`. + + **Optional:** + - `cellType`: string - inferred or annotated type, e.g. `T cell`. + - `cluster`: string - clustering labels, e.g. `leiden_res1`. + - `nCounts`: integer - total UMI count (Unique Molecular Identifier), e.g. `1250`. + - `percentMito`: number - percentage of mitochondrial gene expression, e.g. `5.2`. + - `umap`: array of two numbers - dimensionality reduction results (Uniform Manifold Approximation and Projection), e.g. `[1.23, 0.45]`. + - `pca`: array of two numbers - dimensionality reduction results (Principal Component Analysis results), e.g. `[0.12, 0.34]`. + + **Dynamic:** + - Any additional attributes in a form of key-value pairs, which can vary between different cell objects. + example: + cellId: "GSF123456-AAACCTGAGCGCTCCA-1" + barcode: "AAACCTGAGCGCTCCA-1" + batch: "SAMPLE_001" + cellType: "T cell" + cluster: "leiden_res1" + nCounts: 1250 + percentMito: 5.2 + umap: [ 1.23, 0.45 ] + pca: [ 0.12, 0.34 ] + assay_custom: "10x 3' v2" + CellListResponse: + type: object + properties: + data: + items: + $ref: "#/components/schemas/Cell" + type: array + cursor: + type: string + example: + cursor: "GSF123456-AAAGATGGTTCCTCCA-1" + data: + - cellId: "GSF123456-AAACCTGAGCGCTCCA-1" + barcode: "AAACCTGAGCGCTCCA-1" + batch: "SAMPLE_001" + cellType: "T cell" + cluster: "leiden_res1" + nCounts: 1250 + percentMito: 5.2 + umap: [ 1.23, 0.45 ] + pca: [ 0.12, 0.34 ] + assay_custom: "10x 3' v2" + - cellId: "GSF222333-AAAGATGGTTCCTCCA-1" + barcode: "AAAGATGGTTCCTCCA-1" + batch: "SAMPLE_001" + cellType: "naive B cell" + nCounts: 340 + pca: [ 0.2, 2.8 ] + primary_custom: "True" + tissue_custom: "blood" + CommitInfo: + example: + author: author + message: message + version: version + timestamp: 0 + properties: + author: + type: string + message: + type: string + timestamp: + format: int64 + type: integer + version: + readOnly: true + type: string + type: object + ExpressionItem: + example: + itemId: itemId + itemOrigin: + runSourceId: runSourceId, + runId: runId, + groupId: groupId + metadata: { } + expression: 1.82 + feature: + genes: MYO9A, + groupingKey: VRSLGGISPSEDRR + gene: gene + description: description + value: + value: 1.82 + properties: + itemId: + type: string + itemOrigin: + type: object + properties: + runSourceId: + type: string + runId: + type: string + groupId: + type: string + metadata: + type: object + gene: + type: string + expression: + example: 1.82 + format: double + type: number + feature: + example: + genes: MYO9A, + groupingKey: VRSLGGISPSEDRR + oneOf: + - type: object + - type: string + readOnly: true + value: + example: + value: 1.82 + type: object + additionalProperties: + format: double + oneOf: + - type: number + - type: string # Inf or -Inf + description: + type: string + readOnly: true + type: object + ExpressionResponse: + example: + cursor: cursor + data: + - itemId: itemId + itemOrigin: + runSourceId: runSourceId, + runId: runId, + groupId: groupId + metadata: { } + gene: gene + feature: feature + expression: 1.82 + value: + value: 1.82 + - itemId: itemId + itemOrigin: + runSourceId: runSourceId, + runId: runId, + groupId: groupId + metadata: { } + gene: gene + feature: feature + expression: 1.82 + value: + value: 1.82 + properties: + data: + items: + $ref: "#/components/schemas/ExpressionItem" + type: array + cursor: + type: string + type: object + IntegrationHelper: + type: object + ListResponse: + example: + data: + - { } + - { } + meta: + pagination: + total: 6 + offset: 1 + count: 0 + limit: 5 + properties: + meta: + $ref: "#/components/schemas/MetaResponse" + data: + items: + properties: { } + type: object + type: array + type: object + MetaResponse: + example: + pagination: + total: 6 + offset: 1 + count: 0 + limit: 5 + properties: + pagination: + $ref: "#/components/schemas/PaginationInfo" + type: object + MetadataContent: + type: object + MetadataWithId: + example: + itemId: itemId + metadata: { } + properties: + itemId: + readOnly: true + type: string + metadata: + type: object + type: object + PaginationInfo: + example: + total: 6 + offset: 1 + count: 0 + limit: 5 + properties: + count: + format: int32 + type: integer + total: + format: int64 + type: integer + offset: + format: int32 + type: integer + limit: + format: int32 + type: integer + type: object + RunFilter: + items: + type: string + example: runId + type: array + RunsResponse: + example: + experiment: experiment + warnings: + - warnings + - warnings + versionChainId: versionChainId + runs: + - + - + properties: + runs: + items: + $ref: "#/components/schemas/SignalRun" + type: array + experiment: + type: string + warnings: + items: + type: string + type: array + versionChainId: + type: string + type: object + ResponseFormat: + enum: + - term_id + type: string + SignalRun: + type: object + AFile: + type: object + FlowCytometryItem: + example: + itemId: itemId + itemOrigin: + runSourceId: runSourceId, + runId: runId, + groupId: groupId + metadata: { } + feature: + readoutType: readoutType + cellPopulation: cellPopulation + marker: marker + value: + value: 0.8008281904610115 + runId: runId + properties: + itemId: + type: string + itemOrigin: + type: object + properties: + runSourceId: + type: string + runId: + type: string + groupId: + type: string + metadata: + type: object + feature: + type: object + properties: + readoutType: + type: string + cellPopulation: + type: string + marker: + type: string + value: + type: object + properties: + value: + type: number + type: object + FlowCytometryResponse: + example: + cursor: cursor + data: + - itemId: itemId + itemOrigin: + runSourceId: runSourceId, + runId: runId, + groupId: groupId + metadata: { } + feature: + readoutType: readoutType + cellPopulation: cellPopulation + marker: marker + value: + value: 0.8008281904610115 + - itemId: itemId + itemOrigin: + runSourceId: runSourceId, + runId: runId, + groupId: groupId + metadata: { } + feature: + readoutType: readoutType + cellPopulation: cellPopulation + marker: marker + value: + value: 0.8008281904610115 + properties: + data: + items: + $ref: "#/components/schemas/FlowCytometryItem" + type: array + cursor: + type: string + type: object + AttributeInvalidValue: + example: + count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + properties: + value: + oneOf: + - properties: { } + type: object + - type: string + count: + format: int64 + type: integer + errors: + items: + $ref: "#/components/schemas/ValidationError" + type: array + type: object + AttributeValidationSummary: + example: + attributeName: attributeName + attributeInvalidValues: + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + properties: + attributeName: + type: string + attributeInvalidValues: + items: + $ref: "#/components/schemas/AttributeInvalidValue" + type: array + type: object + BatchOfIds: + description: Request model for getting links by many IDs. + example: + firstType: study + firstIds: + - firstIds + - firstIds + offset: 0 + limit: 0 + properties: + firstType: + description: Type of the objects. + example: study + type: string + firstIds: + description: Array of the object IDs with the same type. + items: + type: string + type: array + uniqueItems: true + offset: + description: 'Param says to skip that many links before beginning to return links. + Default: 0.' + format: int32 + type: integer + limit: + description: 'Param says to limit the count of returned links. Default: 1000.' + format: int32 + type: integer + required: + - firstIds + - firstType + type: object + DataItem: + properties: + itemId: + type: string + metadata: + type: object + type: object + DataPresentation: + properties: + itemId: + readOnly: true + type: string + metadata: + type: object + relationships: + $ref: "#/components/schemas/Relationships" + type: object + GroupValidationSummary: + example: + groupAccession: groupAccession + attributes: + - attributeName: attributeName + attributeInvalidValues: + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - attributeName: attributeName + attributeInvalidValues: + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + properties: + groupAccession: + type: string + attributes: + items: + $ref: "#/components/schemas/AttributeValidationSummary" + type: array + type: object + IMetadata: + properties: + source: + format: uri + type: string + name: + type: string + public: + type: boolean + id: + type: string + content: + type: object + dataType: + type: string + contentMap: + type: object + metadataContent: + type: object + fileIdAssociatedWithTemplate: + type: string + type: object + Library: + type: object + Link: + description: Link between two objects. Each of them represented as a unique pair of + ID (accession) and unique type. + example: + firstId: firstId + firstType: firstType + secondId: secondId + secondType: secondType + properties: + firstId: + description: Object ID (accession) (e.g. accession of study) + type: string + firstType: + description: Type of the object (e.g. study) + type: string + secondId: + description: Object ID (accession) (e.g. accession of study) + type: string + secondType: + description: Type of the object (e.g. study) + type: string + type: object + MetadataPresentation: + description: |- + A description of object metadata. + + This will contain: + - `genestack:accession`: the object ID + - `Study Title` (for studies) + - `Sample ID` (for samples) + - all other attributes defined in the linked template (if any) + properties: + metadata: + $ref: "#/components/schemas/IMetadata" + relationships: + $ref: "#/components/schemas/Relationships" + type: object + OmicsResponse: + example: + cursor: cursor + data: + - { } + - { } + log: + - log + - log + resultsExhausted: true + properties: + data: + items: + properties: { } + type: object + type: array + resultsExhausted: + type: boolean + log: + items: + type: string + type: array + cursor: + type: string + type: object + OmicsResponseDataPresentation: + properties: + data: + items: + $ref: "#/components/schemas/DataPresentation" + type: array + resultsExhausted: + type: boolean + log: + items: + type: string + type: array + cursor: + type: string + type: object + OmicsResponseMetadataPresentation: + properties: + data: + items: + $ref: "#/components/schemas/MetadataPresentation" + type: array + resultsExhausted: + type: boolean + log: + items: + type: string + type: array + cursor: + type: string + type: object + OmicsResponseMetadataWithId: + properties: + data: + items: + $ref: "#/components/schemas/MetadataWithId" + type: array + resultsExhausted: + type: boolean + log: + items: + type: string + type: array + cursor: + type: string + type: object + Preparation: + type: object + Relationships: + properties: + sample: + readOnly: true + type: string + cell: + readOnly: true + type: string + library: + readOnly: true + type: string + preparation: + readOnly: true + type: string + type: object + SourceTypePair: + example: + firstType: firstType + secondType: secondType + properties: + firstType: + description: Type of the object (e.g. study) + readOnly: true + type: string + secondType: + description: Type of the object (e.g. study) + readOnly: true + type: string + type: object + StreamingOutput: + type: object + Study: + type: object + StudyValidationSummary: + example: + samples: + - groupAccession: groupAccession + attributes: + - attributeName: attributeName + attributeInvalidValues: + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - attributeName: attributeName + attributeInvalidValues: + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - groupAccession: groupAccession + attributes: + - attributeName: attributeName + attributeInvalidValues: + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - attributeName: attributeName + attributeInvalidValues: + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - count: 0 + value: { } + errors: + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + - errorType: VALUE_NOT_SET + errorMessage: errorMessage + properties: + samples: + items: + $ref: "#/components/schemas/GroupValidationSummary" + type: array + type: object + TaskInfo: + example: + application: application + createdBy: createdBy + endedAt: 6 + name: name + startedAt: 0 + id: id + status: CREATED + properties: + id: + readOnly: true + type: string + name: + readOnly: true + type: string + status: + enum: + - CREATED + - QUEUEING + - QUEUED + - STARTING + - RUNNING + - DONE + - FAILED + - BLOCKED_BY_DEPENDENCY_FAILURE + - KILLED + readOnly: true + type: string + application: + readOnly: true + type: string + startedAt: + format: int64 + readOnly: true + type: integer + endedAt: + format: int64 + readOnly: true + type: integer + createdBy: + readOnly: true + type: string + type: object + ValidationError: + example: + errorType: VALUE_NOT_SET + errorMessage: errorMessage + properties: + errorType: + enum: + - VALUE_NOT_SET + - VOCABULARY_NOT_FOUND + - TYPE_NOT_MATCH + - MISSING_ATTRIBUTE + - SYNONYM_ATTRIBUTE + type: string + errorMessage: + type: string + type: object + SearchStudyRequest: + example: + filters: + - type: FULL_TEXT + match: text_to_search + mode: STRICT + - type: SELECT + filterOptionId: TUVUQURBVEFfU3R1ZHlfU291cmNlOlRlc3QgR0VP + page: + offset: 6 + limit: 50 + properties: + filters: + example: + - type: FULL_TEXT + match: text_to_search + mode: STRICT + - type: SELECT + filterOptionId: TUVUQURBVEFfU3R1ZHlfU291cmNlOlRlc3QgR0VP + items: + $ref: "#/components/schemas/AppliedFilter" + type: array + page: + $ref: "#/components/schemas/PageRequest" + type: object + AppliedFilter: + properties: + type: + enum: + - FULL_TEXT + - SELECT + type: string + filterOptionId: + type: string + match: + type: string + mode: + enum: + - STRICT + - USE_NARROWER_TERMS + type: string + type: object + PageRequest: + example: + offset: 6 + limit: 50 + properties: + offset: + description: 'Param says to skip that many links before beginning to return links. + Default: 0.' + format: int32 + type: integer + limit: + description: 'Param says to limit the count of returned links. Default: 1000.' + example: 50 + format: int32 + type: integer + type: object + FindObjectsResponse: + example: + filterOptionGroups: + - filterId: filterId + hasMoreOptions: true + options: + - filterId: filterId + name: name + count: 5 + id: id + - filterId: filterId + name: name + count: 5 + id: id + - filterId: filterId + hasMoreOptions: true + options: + - filterId: filterId + name: name + count: 5 + id: id + - filterId: filterId + name: name + count: 5 + id: id + objectsPage: + filteredCount: 0 + pageRequest: + offset: 6 + limit: 50 + content: + - owner: owner + summary: + - values: + - values + - values + key: key + - values: + - values + - values + key: key + hasFacs: true + hasTranscriptomics: true + size: 1 + fileCreation: fileCreation + name: name + accession: accession + hasGenomic: true + - owner: owner + summary: + - values: + - values + - values + key: key + - values: + - values + - values + key: key + hasFacs: true + hasTranscriptomics: true + size: 1 + fileCreation: fileCreation + name: name + accession: accession + hasGenomic: true + properties: + objectsPage: + $ref: "#/components/schemas/ObjectsPage" + filterOptionGroups: + items: + $ref: "#/components/schemas/FilterOptionGroup" + type: array + type: object + ObjectsPage: + example: + filteredCount: 0 + pageRequest: + offset: 6 + limit: 50 + content: + - owner: owner + summary: + - values: + - values + - values + key: key + - values: + - values + - values + key: key + hasFacs: true + hasTranscriptomics: true + size: 1 + fileCreation: fileCreation + name: name + accession: accession + hasGenomic: true + - owner: owner + summary: + - values: + - values + - values + key: key + - values: + - values + - values + key: key + hasFacs: true + hasTranscriptomics: true + size: 1 + fileCreation: fileCreation + name: name + accession: accession + hasGenomic: true + properties: + filteredCount: + format: int64 + type: integer + pageRequest: + $ref: "#/components/schemas/PageRequest" + content: + items: + $ref: "#/components/schemas/StudySearchInfo" + type: array + type: object + StudySearchInfo: + example: + owner: owner + summary: + - values: + - values + - values + key: key + - values: + - values + - values + key: key + hasFacs: true + hasTranscriptomics: true + size: 1 + fileCreation: fileCreation + name: name + accession: accession + hasGenomic: true + properties: + accession: + type: string + name: + type: string + owner: + type: string + fileCreation: + format: int64 + type: string + size: + format: int64 + type: integer + hasFacs: + type: boolean + hasGenomic: + type: boolean + hasTranscriptomics: + type: boolean + summary: + items: + $ref: "#/components/schemas/MetainfoKeyForSummary" + type: array + type: object + MetainfoKeyForSummary: + example: + values: + - values + - values + key: key + properties: + key: + type: string + values: + items: + type: string + type: array + type: object + FilterOptionGroup: + example: + filterId: filterId + hasMoreOptions: true + options: + - filterId: filterId + name: name + count: 5 + id: id + - filterId: filterId + name: name + count: 5 + id: id + properties: + filterId: + type: string + hasMoreOptions: + type: boolean + options: + items: + $ref: "#/components/schemas/FilterOption" + type: array + type: object + FilterOption: + example: + filterId: filterId + name: name + count: 5 + id: id + properties: + id: + type: string + filterId: + type: string + name: + type: string + count: + format: int64 + type: integer + type: object + ExceptionTypeAndMessage: + example: + type: type + message: message + properties: + type: + type: string + message: + type: string + type: object + ImportCellsRequest: + example: + dataLink: https://mybucket.s3.amazonaws.com/my-experiment/cells.tsv + properties: + dataLink: + example: https://mybucket.s3.amazonaws.com/my-experiment/cells.tsv + type: string + required: + - dataLink + type: object + ImportCellsFromMultipartRequest: + properties: + studyId: + type: string + example: GSF1234567 + description: The ID (accession) of the study for organising files in the internal storage; linking to the target entity must be done through a separate endpoint. + data: + type: string + format: binary + required: + - studyId + - data + type: object + ImportMetadataRequest: + example: + metadataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-object-metadata.tsv + templateId: GSF334953 + properties: + source: + enum: + - S3 + - HTTP + - LOCAL + example: HTTP + type: string + description: The source parameter is ignored and will be removed in version 1.61. The source is automatically extracted from the link + metadataLink: + example: https://mybucket.s3.amazonaws.com/my-experiment/my-object-metadata.tsv + type: string + templateId: + example: GSF334953 + type: string + required: + - metadataLink + type: object + ImportMetadataFromMultipartRequest: + properties: + studyId: + type: string + example: GSF1234567 + description: The ID (accession) of the study for organising files in the internal storage; linking to the target entity must be done through a separate endpoint. + templateId: + example: GSF334953 + type: string + metadata: + type: string + format: binary + required: + - studyId + - metadata + type: object + ImportSignalRunRequest: + description: import signal data request + example: + metadataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-omics-metadata.tsv + dataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-omics-data.gz + templateId: GSF334953 + previousVersion: GSF334953 + properties: + source: + enum: + - S3 + - HTTP + - LOCAL + example: HTTP + type: string + description: The source parameter is ignored and will be removed in version 1.61. The source is automatically extracted from the link + metadataLink: + example: https://mybucket.s3.amazonaws.com/my-experiment/my-omics-metadata.tsv + type: string + dataLink: + example: https://mybucket.s3.amazonaws.com/my-experiment/my-omics-data.gz + type: string + templateId: + example: GSF334953 + type: string + previousVersion: + example: GSF334953 + type: string + required: + - dataLink + type: object + ImportSignalRunFomMultipartRequest: + properties: + studyId: + type: string + example: GSF1234567 + description: The ID (accession) of the study for organising files in the internal storage; linking to the target entity must be done through a separate endpoint. + metadata: + type: string + format: binary + data: + type: string + format: binary + templateId: + example: GSF334953 + type: string + previousVersion: + example: GSF334953 + type: string + required: + - studyId + - data + type: object + ImportExpressionSignalRunRequest: + allOf: + - $ref: "#/components/schemas/ImportSignalRunRequest" + example: + metadataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-omics-metadata.tsv + dataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-omics-data.gz + templateId: GSF334953 + previousVersion: GSF334953 + numberOfFeatureAttributes: 5 + dataClass: Proteomics + measurementSeparator: ':' + properties: + numberOfFeatureAttributes: + description: Integer value that specifies the number of columns related to the + feature in the uploaded data frame, and indicates the starting position of the + sample data. This attribute is not needed if the uploaded file is in GCT format. + example: 5 + type: integer + dataClass: + description: "A mandatory parameter with the following possible values: `Bulk + transcriptomics`, `Single-cell transcriptomics`, `Differential abundance (FC, + pval, etc.)`, `Pathway analysis`, `Proteomics`, `Single-cell proteomics`, `Metabolomics`, + `Lipidomics`, `Epigenomics`, `DNA methylation`, `Chemoinformatics`, `Imaging features`, + `Gene panel data`, `Biomarker data`, `Physical measures`, `Blood counts`, `Other body + fluid counts`, `Nanopore`, `Flow Cytometry (FCS)`, `Document`, `Other`. \nIn case the parameter is not set + the dataClass is automatically defined as `Other`." + example: Proteomics + type: string + measurementSeparator: + description: 'This parameter is necessary when your file contains multiple measurement + columns for each sample, library, or preparation. It represents the character + that distinguishes the sample/library/preparation name from the measurement + name in column headers. Supported separators include `. , : ; _ - / \ |`, with + the allowance for multi-character separators.' + example: ':' + type: string + ImportExpressionSignalRunFromMultipartRequest: + allOf: + - $ref: "#/components/schemas/ImportSignalRunFomMultipartRequest" + properties: + numberOfFeatureAttributes: + description: Integer value that specifies the number of columns related to the + feature in the uploaded data frame, and indicates the starting position of the + sample data. This attribute is not needed if the uploaded file is in GCT format. + example: 5 + type: integer + dataClass: + description: "A mandatory parameter with the following possible values: `Bulk + transcriptomics`, `Single-cell transcriptomics`, `Differential abundance (FC, + pval, etc.)`, `Pathway analysis`, `Proteomics`, `Single-cell proteomics`, `Metabolomics`, + `Lipidomics`, `Epigenomics`, `DNA methylation`, `Chemoinformatics`, `Imaging features`, + `Gene panel data`, `Biomarker data`, `Physical measures`, `Blood counts`, `Other body + fluid counts`, `Nanopore`, `Flow Cytometry (FCS)`, `Document`, `Other`. \nIn case the parameter is not set + the dataClass is automatically defined as `Other`." + example: Proteomics + type: string + measurementSeparator: + description: 'This parameter is necessary when your file contains multiple measurement + columns for each sample, library, or preparation. It represents the character + that distinguishes the sample/library/preparation name from the measurement + name in column headers. Supported separators include `. , : ; _ - / \ |`, with + the allowance for multi-character separators.' + example: ':' + type: string + ImportAFileRequest: + example: + metadataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-object-metadata.tsv + dataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-object.pdf + studyAccession: GSF334953 + dataClass: Proteomics + properties: + source: + enum: + - S3 + - HTTP + - LOCAL + example: HTTP + type: string + description: The source parameter is ignored and will be removed in version 1.61. The source is automatically extracted from the link + metadataLink: + example: https://mybucket.s3.amazonaws.com/my-experiment/my-object-metadata.tsv + type: string + description: Specifies the URL of a metadata file to be used as the original metadata for the created objects. The file must contain a single record describing the uploaded attachment. + dataLink: + example: https://mybucket.s3.amazonaws.com/my-experiment/my-object.pdf + type: string + description: Specifies a link to a file to import as an attachment. The file will be associated with a study and will be searchable by its name and metadata. + studyAccession: + example: GSF334953 + type: string + dataClass: + example: Proteomics + type: string + description: A mandatory parameter with the value from a limited set of values (see request description). + required: + - dataLink + - studyAccession + - dataClass + type: object + ImportAFileFromMultipartRequest: + properties: + metadata: + type: string + format: binary + description: The metadata file to be used as the original metadata for the created objects. The file must contain a single record describing the uploaded attachment. + data: + type: string + format: binary + description: A file to import as an attachment. The file will be associated with a study and will be searchable by its name and metadata. + studyAccession: + example: GSF334953 + type: string + description: An accession of a study the file will be associated with. + dataClass: + example: Proteomics + type: string + description: A mandatory parameter with the value from a limited set of values (see request description). + required: + - data + - studyAccession + - dataClass + type: object + Info: + description: job execution information + example: + jobName: Protein folding + startedBy: job@genestack.com + createTime: 2000-01-23T04:56:07+00:00 + jobExecId: 12345 + endTime: 2000-01-23T04:56:07+00:00 + status: STARTED + properties: + jobExecId: + description: job execution id + example: 12345 + format: int64 + type: integer + startedBy: + description: user name who started the job + example: job@genestack.com + type: string + jobName: + description: actual job name + example: Protein folding + type: string + status: + description: current job status + enum: + - COMPLETED + - STARTING + - RUNNING + - STOPPING + - STOPPED + - FAILED + - ABANDONED + - UNKNOWN + example: STARTED + type: string + createTime: + format: date-time + type: string + endTime: + format: date-time + type: string + required: + - createTime + - jobExecId + - jobName + - startedBy + - status + type: object + JobRuntimeError: + example: + stack: + - type: type + message: message + - type: type + message: message + stage: stage + properties: + stage: + type: string + stack: + items: + $ref: "#/components/schemas/ExceptionTypeAndMessage" + type: array + type: object + Output: + description: job execution output + example: + result: { } + errors: + - stack: + - type: type + message: message + - type: type + message: message + stage: stage + - stack: + - type: type + message: message + - type: type + message: message + stage: stage + status: COMPLETED + properties: + status: + description: current job status + enum: + - COMPLETED + - STARTING + - RUNNING + - STOPPING + - STOPPED + - FAILED + - ABANDONED + - UNKNOWN + example: COMPLETED + type: string + result: + description: job result object (available if job completed successfully) + properties: { } + type: object + errors: + description: array of errors occurred during execution of the job (available if + job failed) + items: + $ref: "#/components/schemas/JobRuntimeError" + type: array + required: + - status + type: object + DetachedCollection: + example: + cursor: cursor + data: + - createdAt: 2000-01-23T04:56:07+00:00 + genestack:accession: genestack:accession + detachedObjectType: SAMPLE_GROUP + ownerEmail: ownerEmail + - createdAt: 2000-01-23T04:56:07+00:00 + genestack:accession: genestack:accession + detachedObjectType: SAMPLE_GROUP + ownerEmail: ownerEmail + properties: + data: + items: + $ref: "#/components/schemas/DetachedObject" + type: array + cursor: + type: string + required: + - data + type: object + DetachedObject: + example: + createdAt: 2000-01-23T04:56:07+00:00 + genestack:accession: genestack:accession + detachedObjectType: SAMPLE_GROUP + ownerEmail: ownerEmail + properties: + genestack:accession: + type: string + detachedObjectType: + enum: + - STUDY + - SAMPLE_GROUP + - LIBRARY_GROUP + - PREPARATION_GROUP + - CELL_GROUP + - TABULAR_DATA + - GENE_VARIANT + - FLOW_CYTOMETRY + type: string + ownerEmail: + type: string + createdAt: + format: date-time + type: string + required: + - createdAt + - detachedObjectType + - genestack:accession + - ownerEmail + type: object + ManagedObject: + example: + createdAt: 2000-01-23T04:56:07+00:00 + genestack:accession: genestack:accession + objectType: objectType + ownerEmail: ownerEmail + properties: + genestack:accession: + type: string + objectType: + type: string + ownerEmail: + type: string + createdAt: + format: date-time + type: string + required: + - createdAt + - genestack:accession + - objectType + - ownerEmail + type: object + XrefSetCreateRequest: + description: Create XrefSet request body + example: + metadata: + key: metadata + xrefSetType: gene-transcript + dataLink: '"http://example-url.com/my-mapping.tsv"' + properties: + xrefSetType: + description: Type of data stored in XrefSet + enum: + - gene-transcript + type: string + dataLink: + description: Mapping file link + example: '"http://example-url.com/my-mapping.tsv"' + type: string + metadata: + additionalProperties: + type: string + description: Additional user metadata + type: object + required: + - dataLink + - xrefSetType + type: object + XrefSetCreateResponse: + description: Create XrefSet response body + example: + lastUpdated: 1602838500612 + metadata: + key: metadata + createdDate: 1602838500612 + createdBy: '"User007"' + warnings: + - warnings + - warnings + xrefSetType: gene-transcript + xrefSetId: '"GSF0000013"' + properties: + xrefSetId: + description: Accession of the created XrefSet + example: '"GSF0000013"' + type: string + createdBy: + description: Name of the user created XrefSet + example: '"User007"' + type: string + createdDate: + description: Date of XrefSet creation + example: 1602838500612 + format: int64 + type: integer + lastUpdated: + description: Date of XrefSet last update. For a new entity lastUpdated = createdDate + example: 1602838500612 + format: int64 + type: integer + xrefSetType: + description: Type of data stored in XrefSet + enum: + - gene-transcript + type: string + metadata: + additionalProperties: + type: string + description: Additional user metadata + type: object + warnings: + description: Warnings, if any + items: + type: string + type: array + required: + - createdBy + - createdDate + - lastUpdated + - metadata + - warnings + - xrefSetId + - xrefSetType + type: object + XrefSetMetadata: + description: Xrefset metadata + example: + lastUpdated: 1594846270242 + createdDate: 1594846270242 + data: + key: data + createdBy: '"Genestack Superuser"' + xrefSetId: '"GSF000477"' + properties: + xrefSetId: + example: '"GSF000477"' + type: string + createdBy: + example: '"Genestack Superuser"' + type: string + createdDate: + example: 1594846270242 + format: int64 + type: integer + lastUpdated: + example: 1594846270242 + format: int64 + type: integer + data: + additionalProperties: + type: string + type: object + type: object + XrefSetSearchResult: + description: Result of a search query for xrefsets + example: + cursor: '"GSF0000013#ENSG00000231103.2#ENST00000617423.4"' + result: + - sourceId: '"ENSG00000231103.2"' + targetIds: '["ENST00000617423.4", "ENST00000334232.8"]' + xrefSetId: '"GSF0000013"' + - sourceId: '"ENSG00000231103.2"' + targetIds: '["ENST00000617423.4", "ENST00000334232.8"]' + xrefSetId: '"GSF0000013"' + properties: + cursor: + example: '"GSF0000013#ENSG00000231103.2#ENST00000617423.4"' + type: string + result: + items: + $ref: "#/components/schemas/XrefSetSearchResultEntry" + type: array + type: object + XrefSetSearchResultEntry: + example: + sourceId: '"ENSG00000231103.2"' + targetIds: '["ENST00000617423.4", "ENST00000334232.8"]' + xrefSetId: '"GSF0000013"' + properties: + xrefSetId: + example: '"GSF0000013"' + type: string + sourceId: + example: '"ENSG00000231103.2"' + type: string + targetIds: + example: '["ENST00000617423.4", "ENST00000334232.8"]' + items: + type: string + type: array + type: object + UploadRGRequest: + example: + annotationUrl: https://ftp.ensembl.org/pub/release-112/gtf/homo_sapiens/Homo_sapiens.GRCh38.112.gtf.gz + organism: Homo sapiens + assembly: GRCh38 + release: "112" + name: Homo sapiens reference genome GRCh38.112 + properties: + annotationUrl: + type: string + format: uri + organism: + type: string + assembly: + type: string + release: + type: string + name: + type: string + required: + - organism + - assembly + - release + type: object + AccessionResponse: + example: + genestack:accession: genestack:accession + properties: + genestack:accession: + type: string + required: + - genestack:accession + type: object + RGItem: + example: + genestack:accession: GSF000009 + annotationUrl: https://ftp.ensembl.org/pub/release-112/gtf/homo_sapiens/Homo_sapiens.GRCh38.112.gtf.gz + organism: Homo sapiens + assembly: GRCh38 + release: 112 + name: Homo sapiens reference genome GRCh38.112 + initializationStatus: Complete + createdAt: 2000-01-23T04:56:070Z + ownerEmail: ownerEmail + properties: + genestack:accession: + type: string + annotationUrl: + type: string + format: uri + organism: + type: string + assembly: + type: string + release: + type: string + name: + type: string + initializationStatus: + type: string + createdAt: + type: string + ownerEmail: + type: string + type: object + Sample: + type: object + Group: + example: + displayName: displayName + schemas: + - urn:ietf:params:scim:schemas:core:2.0:Group + - urn:ietf:params:scim:schemas:core:2.0:Group + members: + - display: display + value: value + - display: display + value: value + externalId: externalId + id: id + properties: + externalId: + description: External unique resource id + type: string + id: + description: Unique resource id + type: string + schemas: + items: + enum: + - urn:ietf:params:scim:schemas:core:2.0:Group + type: string + type: array + members: + items: + $ref: "#/components/schemas/Member" + type: array + displayName: + type: string + required: + - displayName + type: object + Member: + example: + display: display + value: value + properties: + value: + type: string + display: + type: string + $ref: + description: The URI of the member resource + format: uri + type: string + required: + - $ref + - value + type: object + GroupPatch: + example: + schemas: + - urn:ietf:params:scim:api:messages:2.0:PatchOp + - urn:ietf:params:scim:api:messages:2.0:PatchOp + Operations: + - op: add + path: path + value: { } + - op: add + path: path + value: { } + properties: + Operations: + description: Patch operations list + items: + $ref: "#/components/schemas/PatchOperation" + type: array + schemas: + items: + enum: + - urn:ietf:params:scim:api:messages:2.0:PatchOp + type: string + type: array + required: + - Operations + - schemas + type: object + PatchOperation: + example: + op: add + path: path + value: { } + properties: + op: + enum: + - add + - replace + - remove + type: string + path: + type: string + value: + description: Corresponding 'value' of that field specified by 'path' + properties: { } + type: object + required: + - op + type: object + FilterGroupsResponse: + properties: + Resources: + description: List of groups + items: + $ref: "#/components/schemas/GroupResponse" + type: array + itemsPerPage: + format: int64 + type: integer + schemas: + items: + enum: + - urn:ietf:params:scim:api:messages:2.0:ListResponse + type: string + type: array + startIndex: + format: int64 + type: integer + totalResults: + format: int64 + type: integer + type: object + GroupResponse: + allOf: + - $ref: "#/components/schemas/Group" + - properties: + meta: + $ref: "#/components/schemas/Meta" + type: object + Meta: + description: resource metadata + properties: + created: + format: date-time + type: string + lastModified: + format: date-time + type: string + resourceType: + enum: + - User + - Group + type: string + type: object + SCIMErrorResponse: + properties: + detail: + description: Detailed error message + type: string + schemas: + items: + enum: + - urn:ietf:params:scim:api:messages:2.0:Error + type: string + type: array + scimType: + description: Bad request type when status code is 400 + enum: + - uniqueness + - tooMany + - mutability + - sensitive + - invalidSyntax + - invalidFilter + - invalidPath + - invalidValue + - invalidVers + - noTarget + type: string + status: + description: Same as HTTP status code, e.g. 400, 403, etc. + type: string + required: + - status + type: object + BaseErrorResponse: + properties: + error: + $ref: "#/components/schemas/ErrorMessage" + required: + - error + type: object + ErrorMessage: + properties: + message: + description: Detailed error message + type: string + required: + - message + type: object + User: + example: + emails: + - type: work + value: value + primary: true + - type: work + value: value + primary: true + displayName: displayName + schemas: + - urn:ietf:params:scim:schemas:core:2.0:User + - urn:ietf:params:scim:schemas:core:2.0:User + active: true + externalId: externalId + id: id + userName: userName + properties: + active: + description: User status + type: boolean + emails: + items: + $ref: "#/components/schemas/Email" + type: array + externalId: + description: External unique resource id + type: string + id: + description: Unique resource id + type: string + schemas: + items: + enum: + - urn:ietf:params:scim:schemas:core:2.0:User + type: string + type: array + userName: + type: string + displayName: + type: string + required: + - active + - displayName + - emails + type: object + Email: + example: + type: work + value: value + primary: true + properties: + type: + enum: + - work + type: string + value: + type: string + primary: + type: boolean + type: object + UserPatch: + example: + schemas: + - urn:ietf:params:scim:api:messages:2.0:PatchOp + - urn:ietf:params:scim:api:messages:2.0:PatchOp + Operations: + - op: add + path: path + value: { } + - op: add + path: path + value: { } + properties: + Operations: + description: Patch operations list + items: + $ref: "#/components/schemas/PatchOperation" + type: array + schemas: + items: + enum: + - urn:ietf:params:scim:api:messages:2.0:PatchOp + type: string + type: array + required: + - Operations + - schemas + type: object + FilterUsersResponse: + properties: + Resources: + description: List of users + items: + $ref: "#/components/schemas/UserResponse" + type: array + itemsPerPage: + format: int64 + type: integer + schemas: + items: + enum: + - urn:ietf:params:scim:api:messages:2.0:ListResponse + type: string + type: array + startIndex: + format: int64 + type: integer + totalResults: + format: int64 + type: integer + type: object + UserResponse: + allOf: + - $ref: "#/components/schemas/User" + - properties: + meta: + $ref: "#/components/schemas/Meta" + type: object + VariantMetadataWithId: + example: + itemId: itemId + metadata: { } + annotation: { } + properties: + itemId: + readOnly: true + type: string + metadata: + type: object + annotation: + type: object + referenceGenome: + type: object + type: object + VariantItem: + example: + ref: reference + itemId: itemId + itemOrigin: + runSourceId: runSourceId, + runId: runId, + groupId: groupId + metadata: { } + id: + - variationId + - variationId + variant: + chrom: chromosome + pos: 0 + id: + - id + ref: A + alt: + - GC + - GAATTTA + qual: 10 + filter: + - PASS + info: + key: + - info + - info + genotype: + key: genotype + properties: + itemId: + type: string + itemOrigin: + type: object + properties: + runSourceId: + type: string + runId: + type: string + groupId: + type: string + metadata: + type: object + variant: + type: object + properties: + chrom: + type: string + pos: + format: int64 + type: integer + id: + type: array + items: + type: string + ref: + type: string + alt: + type: array + items: + type: string + qual: + type: number + filter: + type: array + items: + type: string + info: + type: object + additionalProperties: + type: array + items: + oneOf: + - type: string + - type: number + genotype: + type: object + additionalProperties: + type: string + type: object + VariantResponse: + example: + cursor: cursor + data: + - ref: reference + itemId: itemId + itemOrigin: + runSourceId: runSourceId, + runId: runId, + groupId: groupId + metadata: { } + id: + - variationId + - variationId + variant: + chrom: chromosome + pos: 0 + id: + - id + ref: reference + alt: + - alteration + - alteration + qual: 10 + filter: + - PASS + info: + key: + - info + - info + genotype: + key: genotype + - ref: reference + itemId: itemId + itemOrigin: + runSourceId: runSourceId, + runId: runId, + groupId: groupId + metadata: { } + id: + - variationId + - variationId + variant: + chrom: chromosome + pos: 0 + id: + - id + ref: reference + alt: + - alteration + - alteration + qual: 10 + filter: + - PASS + info: + key: + - info + - info + genotype: + key: genotype + properties: + data: + items: + $ref: "#/components/schemas/VariantItem" + type: array + cursor: + type: string + type: object + securitySchemes: + Access-token: + in: "header" + name: "Authorization" + type: "apiKey" + Genestack-API-Token: + in: "header" + name: "Genestack-API-Token" + type: "apiKey" + parameters: + AllowDuplicates: + description: "Load duplicate data: the data from the link(s) has already been\ + \ previously loaded into ODM, and for **testing purposes**, you need to load\ + \ this data again." + in: "query" + name: "allow_dups" + schema: + default: false + type: "boolean" diff --git a/openapi/v1/preparationCurator.yaml b/openapi/v1/preparationCurator.yaml deleted file mode 100644 index 56c3dee3..00000000 --- a/openapi/v1/preparationCurator.yaml +++ /dev/null @@ -1,471 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the preparationCurator APIs. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Preparation SPoT as Curator -paths: - /api/v1/as-curator/preparations: - get: - description: |- - Retrieve preparation metadata objects by searching/listing preparation metadata. - - ## 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. - - ## 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 return all results iterate through pages using pageOffset values of `n*pageLimit` until the `resultsExhausted` response field is true. - - ## List operation - - This endpoint can be called with no `query` parameter. Doing so returns a list of all variant objects. - operationId: searchPreparationsAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: filter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: |- - Attribute to sort by, with optional ascending/descending marker, of the form `"[+|-]"`. - - No marker or `"+"` indicates ascending sort, and `"-"` indicates descending sort. - - *Default:* sort by ID in ascending order. - in: query - name: sort - schema: - enum: - - id - - creation - - last_update - - name - - +id - - +creation - - +last_update - - +name - - -id - - -creation - - -last_update - - -name - type: string - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: List or search for preparation metadata objects - tags: - - Preparation SPoT as Curator - /api/v1/as-curator/preparations/by/group/{id}: - get: - operationId: getPreparationsByGroupAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve preparations related to the given group - tags: - - Preparation SPoT as Curator - /api/v1/as-curator/preparations/{id}: - get: - operationId: getPreparationAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Preparation" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single preparation object by ID (accession) - tags: - - Preparation SPoT as Curator - patch: - description: |- - ## 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. - operationId: updatePreparationAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataContent" - description: "Metadata in the form of `{key: value, key2: value2, ...}`" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Preparation" - description: "The objects was successfully created. The returned value is\ - \ the updated object, along with any warnings." - "400": - content: {} - description: The supplied object ID or metadata is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Update a preparation object - tags: - - Preparation SPoT as Curator - x-codegen-request-body-name: body - /api/v1/as-curator/preparations/{id}/versions: - get: - operationId: getPreparationVersionsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of object versions by ID - tags: - - Preparation SPoT as Curator - /api/v1/as-curator/preparations/{id}/versions/{version}: - get: - operationId: getPreparationByVersionAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Preparation" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single preparation object by ID (accession) - tags: - - Preparation SPoT as Curator -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - MetadataContent: - $ref: "./schemas/common/MetadataContent.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - Preparation: - $ref: "./schemas/preparation/Preparation.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/preparationUser.yaml b/openapi/v1/preparationUser.yaml deleted file mode 100644 index 8d3ed782..00000000 --- a/openapi/v1/preparationUser.yaml +++ /dev/null @@ -1,414 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the preparationUser API endpoints for ODM. These are typically used to find and retrieve preparation metadata. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Preparation SPoT as User -paths: - /api/v1/as-user/preparations: - get: - description: |- - Retrieve preparation metadata objects by searching/listing preparation metadata. - - ## 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. - - ## 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 return all results iterate through pages using pageOffset values of `n*pageLimit` until the `resultsExhausted` response field is true. - - ## List operation - - This endpoint can be called with no `query` parameter. Doing so returns a list of all variant objects. - operationId: searchPreparationsAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by preparation metadata (key-value metadata pair(s)). - E.g. `Digestion=Trypsin` - in: query - name: filter - schema: - type: string - - description: Search for preparation objects via a full-text query over all - preparation metadata fields. E.g. `"reversed-phase liquid chromatography"`. - Queries matching dictionary terms are automatically expanded to include - synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: |- - Attribute to sort by, with optional ascending/descending marker, of the form `"[+|-]"`. - - No marker or `"+"` indicates ascending sort, and `"-"` indicates descending sort. - - *Default:* sort by ID in ascending order. - in: query - name: sort - schema: - enum: - - id - - creation - - last_update - - name - - +id - - +creation - - +last_update - - +name - - -id - - -creation - - -last_update - - -name - type: string - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: List or search for preparation metadata objects - tags: - - Preparation SPoT as User - /api/v1/as-user/preparations/by/group/{id}: - get: - operationId: getPreparationsByGroupAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve preparations related to the given group - tags: - - Preparation SPoT as User - /api/v1/as-user/preparations/{id}: - get: - operationId: getPreparationAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Preparation" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single preparation object by ID (accession) - tags: - - Preparation SPoT as User - /api/v1/as-user/preparations/{id}/versions: - get: - operationId: getPreparationVersionsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of object versions by ID - tags: - - Preparation SPoT as User - /api/v1/as-user/preparations/{id}/versions/{version}: - get: - operationId: getPreparationByVersionAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Preparation" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single preparation object by ID (accession) - tags: - - Preparation SPoT as User -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - Preparation: - $ref: "./schemas/preparation/Preparation.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/referenceData.yaml b/openapi/v1/referenceData.yaml deleted file mode 100644 index a2873b57..00000000 --- a/openapi/v1/referenceData.yaml +++ /dev/null @@ -1,307 +0,0 @@ -openapi: 3.1.0 -info: - description: | - These API endpoints serve to upload and remove xrefsets, search in xrefsets and get details about them. These API endpoints are experimental. The parameters, request body and response body may change. - title: Xrefsets API - version: default-released -tags: -- name: Xrefset queries -paths: - /api/v1/xrefsets: - post: - operationId: create - requestBody: - description: |+ - Request body for creating a new xrefset. - ## Important: - The length of 'sourceId' strings is limited to 255 characters. Ensure that the provided values adhere to this limitation to avoid data truncation. - content: - application/json: - schema: - $ref: "#/components/schemas/XrefSetCreateRequest" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/XrefSetCreateResponse" - description: successful operation - "201": - content: {} - description: The objects were successfully created. The returned value is - a list of created objects. - "400": - content: {} - description: The object cannot be created. This error occurs when the supplied - data or metadata are incorrect. Please see error message for details - "401": - content: {} - description: |- - 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). - "403": - content: {} - description: Not enough permissions to work with the xrefset. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Import a new xrefset file - tags: - - Xrefset queries - x-codegen-request-body-name: body - /api/v1/xrefsets/entries: - get: - description: |+ - ## Conditions - It is possible to supply a list of values for "targetId" and "sourceId". If non-empty lists of values for "targetId" and "sourceId" are supplied, the following search rule is applied: (sourceId = "S1" OR .. sourceId = "Sn") AND (targetId = "T1" OR .. targetId = "Tm"). - ## Important: - The length of 'sourceId' strings is limited to 255 characters. Ensure that the provided values adhere to this limitation to avoid data truncation. - operationId: searchEntries - parameters: - - description: "Supply sourceId in the format \"sourceId\". For transcript-gene\ - \ mapping this is gene ID, e.g. \"ENSG00000146648\"" - explode: true - in: query - name: sourceId - schema: - items: - type: string - type: array - style: form - - description: "Supply targetId in the format \"targetId\". For transcript-gene\ - \ mapping this is transcript ID, e.g. \"ENST00000617423.4\"" - explode: true - in: query - name: targetId - schema: - items: - type: string - type: array - style: form - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/XrefSetSearchResult" - description: Json object with the cursor and json array of retrieved xrefset - data. Response entries are ordered by xrefset ID and then by source ID. - "400": - content: {} - description: Invalid data in the request. See the error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of entries across all xrefsets for given sourceId and - targetId - tags: - - Xrefset queries - /api/v1/xrefsets/{id}: - delete: - operationId: deleteFile - parameters: - - description: xrefset ID - in: path - name: id - required: true - schema: - pattern: .* - type: string - responses: - "204": - content: {} - description: "Xrefset file successfully marked for deletion, mappings have\ - \ been removed" - "400": - content: {} - description: Invalid data in the request. See the error message for details. - "401": - content: {} - description: |- - 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). - "403": - content: {} - description: Not enough permissions to work with the xrefset. - "404": - content: {} - description: The xrefset does not exist. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: |- - Delete a xrefset with all related data. - Only users who uploaded the xrefset are allowed to delete it. - tags: - - Xrefset queries - /api/v1/xrefsets/{id}/entries: - get: - description: |+ - ## Conditions - It is possible to supply a list of values for "targetId" and "sourceId". If non-empty lists of values for "targetId" and "sourceId" are supplied, the following search rule is applied: (sourceId = "S1" OR .. sourceId = "Sn") AND (targetId = "T1" OR .. targetId = "Tm"). - - operationId: searchEntriesWithinFile - parameters: - - description: xrefset ID - in: path - name: id - required: true - schema: - type: string - - description: "Supply sourceId in the format \"sourceId\". For transcript-gene\ - \ mapping this is gene ID, e.g. \"ENSG00000146648\"" - explode: true - in: query - name: sourceId - schema: - items: - type: string - type: array - style: form - - description: "Supply targetId in the format \"targetId\". For transcript-gene\ - \ mapping this is transcript ID, e.g. \"ENST00000617423.4\"" - explode: true - in: query - name: targetId - schema: - items: - type: string - type: array - style: form - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - - description: "This parameter determines the number of results to retrieve\ - \ per page, with the default set at 2000." - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/XrefSetSearchResult" - description: Json object with the cursor and json array of retrieved xrefset - data. Response entries are ordered by xrefset ID and then by source ID. - "400": - content: {} - description: Invalid data in the request. See the error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: The xrefset does not exist. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of entries for the given xrefset and given sourceId - and targetId - tags: - - Xrefset queries - /api/v1/xrefsets/{id}/metadata: - get: - operationId: getDetailsByAccession - parameters: - - description: xrefset ID - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/XrefSetMetadata" - description: "Object containing xrefset details, including user submitted\ - \ metadata and system info" - "400": - content: {} - description: Invalid data in the request. See the error message for details. - "401": - content: {} - description: |- - 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": - content: {} - description: The xrefset does not exist. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve xrefset details - tags: - - Xrefset queries -components: - schemas: - XrefSetCreateRequest: - $ref: "./schemas/reference-data/XrefSetCreateRequest.yaml" - XrefSetCreateResponse: - $ref: "./schemas/reference-data/XrefSetCreateResponse.yaml" - XrefSetMetadata: - $ref: "./schemas/reference-data/XrefSetMetadata.yaml" - XrefSetSearchResult: - $ref: "./schemas/reference-data/XrefSetSearchResult.yaml" - XrefSetSearchResultEntry: - $ref: "./schemas/reference-data/XrefSetSearchResultEntry.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/referenceGenome.yaml b/openapi/v1/referenceGenome.yaml deleted file mode 100644 index d87e9611..00000000 --- a/openapi/v1/referenceGenome.yaml +++ /dev/null @@ -1,189 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - These API endpoints serve to upload and remove reference genomes as well as search and get details about them. - title: ODM API - version: default-released -tags: - - name: Reference genome -paths: - /api/v1/reference-genomes: - get: - operationId: search_reference_genomes - summary: List or search for Reference Genome objects - tags: - - Reference genome - description: |- - Retrieve Reference Genome metadata objects by searching/listing Reference Genome metadata. - - ## 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 (`\`). - - ## 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 by increasing the offset in multiples of limit (e.g., `offset = n * limit`), until all results have been retrieved. The total number of pages can be calculated by dividing the total number of results by the limit. - - ## List operation - - This endpoint can be called without any query parameters. When called this way, it returns a list of all Reference Genome objects. - parameters: - - in: query - name: organism - description: Scientific name of an organism (species) used in reference genome file (e.g. `Homo sapiens`). - schema: - type: string - - in: query - name: assembly - description: Major version (for example, `GRCh38`). - schema: - type: string - - in: query - name: release - description: Ensembl reference genome minor version (for example, `75` or `109`). - schema: - type: string - - in: query - name: query - description: Search for reference genome via a full-text query over all reference genome metadata fields (e.g. `GRCh38`). - schema: - type: string - - in: query - name: pageLimit - description: Maximum number of results to return per page (see Paging above). This value must be - between 0 and 2000 (inclusive). The default is 2000. - schema: - format: int32 - type: integer - - in: query - name: pageOffset - description: 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. - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of objects. - "401": - content: { } - description: |- - 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": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - post: - operationId: upload - summary: Upload reference genome to ODM - tags: - - Reference genome - description: |- - In order to import reference genome file, please fill in the following fields: - - * `annotationUrl` - link to the non-vertebrae organism or any custom reference genome in .gtf format, archived in `.gz` format. - Note: if any of the parameters below are not corresponding to the available Ensembl data (for example, organism name or assembly is changed), the link must be provided. - * `organism` - scientific name (default: Homo sapiens). Please see the list of available organisms [here](https://www.ensembl.org/info/about/species.html). - Note: for some specific cases (Canis lupus breeds, Mus musculus strains, etc.) please see the species folders name in the Ensembl FTP (release 113) to provide the same organism name as shown in the list. - * `assembly` - major version (for example, `GRCh38`). Please see the list of available assemblies [here](https://www.ensembl.org/info/website/archives/assembly.html). - * `release` - Ensembl reference genome minor version (for example, `75` or `109`). - * `name` - customized reference genome title that is used for linkage variant files. - By default is combined from species, assembly and release parameters: `{species} reference genome {assembly}.{release}`. - - Reference genome will be available after initialisation. Please track initialisation task status. - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UploadRGRequest" - required: false - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/AccessionResponse" - description: The object was successfully created. - "400": - content: { } - description: The object cannot be created. This error occurs when the supplied - data or metadata are incorrect. Please see error message for details. - "401": - content: { } - description: |- - 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). - "403": - content: { } - description: Not enough permissions to call method. - "500": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] - x-codegen-request-body-name: body - /api/v1/reference-genomes/{id}: - get: - operationId: get_reference_genome_by_accession - summary: Retrieve a single Reference Genome object by ID (accession) - tags: - - Reference genome - parameters: - - in: path - name: id - description: Unique identifier (Genestack accession) of Reference Genome object. - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/RGItem" - description: The request was successful. The returned value is the object. - "401": - content: { } - description: |- - 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": - content: { } - description: No object exists with the given ID. - "500": - content: { } - description: "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." - security: - - Access-token: [ ] - - Genestack-API-Token: [ ] -components: - schemas: - UploadRGRequest: - $ref: "./schemas/reference-genome/UploadRGRequest.yaml" - AccessionResponse: - $ref: "./schemas/common/AccessionResponse.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - RGItem: - $ref: "./schemas/reference-genome/RGItem.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/sampleCurator.yaml b/openapi/v1/sampleCurator.yaml deleted file mode 100644 index c72b175b..00000000 --- a/openapi/v1/sampleCurator.yaml +++ /dev/null @@ -1,398 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the sampleCurator APIs. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Sample SPoT as Curator -paths: - /api/v1/as-curator/samples: - get: - description: |- - Retrieve sample metadata objects by searching/listing sample metadata. - - ## 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. - - ## 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 return all results iterate through pages using pageOffset values of `n*pageLimit` until the `resultsExhausted` response field is true. - - ## List operation - - This endpoint can be called with no `query` parameter. Doing so returns a list of all variant objects. - operationId: searchSamplesAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: |+ - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - - in: query - name: filter - schema: - type: string - - description: Search for sample objects via a full-text query over all sample - metadata fields. E.g. `Clozapine`. Queries matching dictionary terms are - automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: |- - Attribute to sort by, with optional ascending/descending marker, of the form `"[+|-]"`. - - No marker or `"+"` indicates ascending sort, and `"-"` indicates descending sort. - - *Default:* sort by ID in ascending order. - in: query - name: sort - schema: - enum: - - id - - creation - - last_update - - name - - +id - - +creation - - +last_update - - +name - - -id - - -creation - - -last_update - - -name - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: List or search for sample metadata objects - tags: - - Sample SPoT as Curator - /api/v1/as-curator/samples/{id}: - get: - operationId: getSampleAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Sample" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single sample object by ID (accession) - tags: - - Sample SPoT as Curator - patch: - description: |- - ## 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. - operationId: updateSampleAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataContent" - description: "Metadata in the form of `{key: value, key2: value2, ...}`" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Sample" - description: "The objects was successfully created. The returned value is\ - \ the updated object, along with any warnings." - "400": - content: {} - description: The supplied object ID or metadata is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Update a sample object - tags: - - Sample SPoT as Curator - x-codegen-request-body-name: body - /api/v1/as-curator/samples/{id}/versions: - get: - operationId: getSampleVersionsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of object versions by ID - tags: - - Sample SPoT as Curator - /api/v1/as-curator/samples/{id}/versions/{version}: - get: - operationId: getSampleByVersionAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Sample" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single sample object by ID (accession) - tags: - - Sample SPoT as Curator -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - MetadataContent: - $ref: "./schemas/common/MetadataContent.yaml" - MetadataWithId: - $ref: "./schemas/common/MetadataWithId.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - Sample: - $ref: "./schemas/sample/Sample.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/sampleUser.yaml b/openapi/v1/sampleUser.yaml deleted file mode 100644 index 2984abc0..00000000 --- a/openapi/v1/sampleUser.yaml +++ /dev/null @@ -1,339 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the sampleUser API endpoints for ODM. These are typically used to find and retrieve sample metadata. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Sample SPoT as User -paths: - /api/v1/as-user/samples: - get: - description: |- - Retrieve sample metadata objects by searching/listing sample metadata. - - ## 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. - - ## 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 return all results iterate through pages using pageOffset values of `n*pageLimit` until the `resultsExhausted` response field is true. - - ## List operation - - This endpoint can be called with no `query` parameter. Doing so returns a list of all variant objects. - operationId: searchSamplesAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: |+ - Filter by sample metadata (key-value metadata pair(s)). E.g. `"Species or strain"="Homo sapiens"` - - in: query - name: filter - schema: - type: string - - description: Search for sample objects via a full-text query over all sample - metadata fields. E.g. `Clozapine`. Queries matching dictionary terms are - automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: |- - Attribute to sort by, with optional ascending/descending marker, of the form `"[+|-]"`. - - No marker or `"+"` indicates ascending sort, and `"-"` indicates descending sort. - - *Default:* sort by ID in ascending order. - in: query - name: sort - schema: - enum: - - id - - creation - - last_update - - name - - +id - - +creation - - +last_update - - +name - - -id - - -creation - - -last_update - - -name - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: List or search for sample metadata objects - tags: - - Sample SPoT as User - /api/v1/as-user/samples/{id}: - get: - operationId: getSampleAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Sample" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single sample object by ID (accession) - tags: - - Sample SPoT as User - /api/v1/as-user/samples/{id}/versions: - get: - operationId: getSampleVersionsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of object versions by ID - tags: - - Sample SPoT as User - /api/v1/as-user/samples/{id}/versions/{version}: - get: - operationId: getSampleByVersionAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Sample" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single sample object by ID (accession) - tags: - - Sample SPoT as User -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - Sample: - $ref: "./schemas/sample/Sample.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/schemas/afile/AFile.yaml b/openapi/v1/schemas/afile/AFile.yaml deleted file mode 100644 index 91bf3091..00000000 --- a/openapi/v1/schemas/afile/AFile.yaml +++ /dev/null @@ -1 +0,0 @@ -type: object diff --git a/openapi/v1/schemas/cell/Cell.yaml b/openapi/v1/schemas/cell/Cell.yaml deleted file mode 100644 index 25e67dd1..00000000 --- a/openapi/v1/schemas/cell/Cell.yaml +++ /dev/null @@ -1,31 +0,0 @@ -type: object -#schema is not described because of dynamic attributes' limited support in openapi-generator -description: |+ - Cell object having required, optional and dynamic attributes. - - **Required:** - - `cellId`: string - unique cell identifier, which consists of a cell group accession and a cell barcode, separated by a hyphen, e.g. `GSF123456-AAACCTGAGCGCTCCA-1`. - - `barcode`: string - raw barcode of the cell, e.g. `AAACCTGAGCGCTCCA-1`. - - `batch`: string - identifier of an origin object, such as a sample or a library, that this cell belongs to, e.g. `SAMPLE_001`. - - **Optional:** - - `cellType`: string - inferred or annotated type, e.g. `T cell`. - - `cluster`: string - clustering labels, e.g. `leiden_res1`. - - `nCounts`: integer - total UMI count (Unique Molecular Identifier), e.g. `1250`. - - `percentMito`: number - percentage of mitochondrial gene expression, e.g. `5.2`. - - `umap`: array of two numbers - dimensionality reduction results (Uniform Manifold Approximation and Projection), e.g. `[1.23, 0.45]`. - - `pca`: array of two numbers - dimensionality reduction results (Principal Component Analysis results), e.g. `[0.12, 0.34]`. - - **Dynamic:** - - Any additional attributes in a form of key-value pairs, which can vary between different cell objects. -example: - cellId: "GSF123456-AAACCTGAGCGCTCCA-1" - barcode: "AAACCTGAGCGCTCCA-1" - batch: "SAMPLE_001" - cellType: "T cell" - cluster: "leiden_res1" - nCounts: 1250 - percentMito: 5.2 - umap: [1.23, 0.45] - pca: [0.12, 0.34] - assay_custom: "10x 3' v2" diff --git a/openapi/v1/schemas/cell/CellListResponse.yaml b/openapi/v1/schemas/cell/CellListResponse.yaml deleted file mode 100644 index 6829ee88..00000000 --- a/openapi/v1/schemas/cell/CellListResponse.yaml +++ /dev/null @@ -1,33 +0,0 @@ -type: object -properties: - data: - items: - $ref: "#/components/schemas/Cell" - type: array - cursor: - type: string -components: - schemas: - Cell: - $ref: "./Cell.yaml" -example: - cursor: "GSF123456-AAAGATGGTTCCTCCA-1" - data: - - cellId: "GSF123456-AAACCTGAGCGCTCCA-1" - barcode: "AAACCTGAGCGCTCCA-1" - batch: "SAMPLE_001" - cellType: "T cell" - cluster: "leiden_res1" - nCounts: 1250 - percentMito: 5.2 - umap: [1.23, 0.45] - pca: [0.12, 0.34] - assay_custom: "10x 3' v2" - - cellId: "GSF222333-AAAGATGGTTCCTCCA-1" - barcode: "AAAGATGGTTCCTCCA-1" - batch: "SAMPLE_001" - cellType: "naive B cell" - nCounts: 340 - pca: [0.2, 2.8] - primary_custom: "True" - tissue_custom: "blood" diff --git a/openapi/v1/schemas/common/AccessionResponse.yaml b/openapi/v1/schemas/common/AccessionResponse.yaml deleted file mode 100644 index 7abf8406..00000000 --- a/openapi/v1/schemas/common/AccessionResponse.yaml +++ /dev/null @@ -1,8 +0,0 @@ -example: - genestack:accession: genestack:accession -properties: - genestack:accession: - type: string -required: - - genestack:accession -type: object diff --git a/openapi/v1/schemas/common/CommitInfo.yaml b/openapi/v1/schemas/common/CommitInfo.yaml deleted file mode 100644 index be5effd4..00000000 --- a/openapi/v1/schemas/common/CommitInfo.yaml +++ /dev/null @@ -1,17 +0,0 @@ -example: - author: author - message: message - version: version - timestamp: 0 -properties: - author: - type: string - message: - type: string - timestamp: - format: int64 - type: integer - version: - readOnly: true - type: string -type: object diff --git a/openapi/v1/schemas/common/IntegrationHelper.yaml b/openapi/v1/schemas/common/IntegrationHelper.yaml deleted file mode 100644 index 91bf3091..00000000 --- a/openapi/v1/schemas/common/IntegrationHelper.yaml +++ /dev/null @@ -1 +0,0 @@ -type: object diff --git a/openapi/v1/schemas/common/ListResponse.yaml b/openapi/v1/schemas/common/ListResponse.yaml deleted file mode 100644 index 3a8080f8..00000000 --- a/openapi/v1/schemas/common/ListResponse.yaml +++ /dev/null @@ -1,23 +0,0 @@ -example: - data: - - {} - - {} - meta: - pagination: - total: 6 - offset: 1 - count: 0 - limit: 5 -properties: - meta: - $ref: "#/components/schemas/MetaResponse" - data: - items: - properties: {} - type: object - type: array -type: object -components: - schemas: - MetaResponse: - $ref: "./MetaResponse.yaml" diff --git a/openapi/v1/schemas/common/MetaResponse.yaml b/openapi/v1/schemas/common/MetaResponse.yaml deleted file mode 100644 index b9ab8285..00000000 --- a/openapi/v1/schemas/common/MetaResponse.yaml +++ /dev/null @@ -1,14 +0,0 @@ -example: - pagination: - total: 6 - offset: 1 - count: 0 - limit: 5 -properties: - pagination: - $ref: "#/components/schemas/PaginationInfo" -type: object -components: - schemas: - PaginationInfo: - $ref: "./PaginationInfo.yaml" diff --git a/openapi/v1/schemas/common/MetadataContent.yaml b/openapi/v1/schemas/common/MetadataContent.yaml deleted file mode 100644 index 91bf3091..00000000 --- a/openapi/v1/schemas/common/MetadataContent.yaml +++ /dev/null @@ -1 +0,0 @@ -type: object diff --git a/openapi/v1/schemas/common/MetadataWithId.yaml b/openapi/v1/schemas/common/MetadataWithId.yaml deleted file mode 100644 index abe5d5d2..00000000 --- a/openapi/v1/schemas/common/MetadataWithId.yaml +++ /dev/null @@ -1,10 +0,0 @@ -example: - itemId: itemId - metadata: {} -properties: - itemId: - readOnly: true - type: string - metadata: - type: object -type: object diff --git a/openapi/v1/schemas/common/PaginationInfo.yaml b/openapi/v1/schemas/common/PaginationInfo.yaml deleted file mode 100644 index ccad66b8..00000000 --- a/openapi/v1/schemas/common/PaginationInfo.yaml +++ /dev/null @@ -1,19 +0,0 @@ -example: - total: 6 - offset: 1 - count: 0 - limit: 5 -properties: - count: - format: int32 - type: integer - total: - format: int64 - type: integer - offset: - format: int32 - type: integer - limit: - format: int32 - type: integer -type: object diff --git a/openapi/v1/schemas/common/ResponseFormat.yaml b/openapi/v1/schemas/common/ResponseFormat.yaml deleted file mode 100644 index 92d05d15..00000000 --- a/openapi/v1/schemas/common/ResponseFormat.yaml +++ /dev/null @@ -1,3 +0,0 @@ -enum: - - term_id -type: string diff --git a/openapi/v1/schemas/common/RunFilter.yaml b/openapi/v1/schemas/common/RunFilter.yaml deleted file mode 100644 index 1971944d..00000000 --- a/openapi/v1/schemas/common/RunFilter.yaml +++ /dev/null @@ -1,4 +0,0 @@ -items: - type: string - example: runId -type: array diff --git a/openapi/v1/schemas/common/RunsResponse.yaml b/openapi/v1/schemas/common/RunsResponse.yaml deleted file mode 100644 index f4211c1d..00000000 --- a/openapi/v1/schemas/common/RunsResponse.yaml +++ /dev/null @@ -1,27 +0,0 @@ -example: - experiment: experiment - warnings: - - warnings - - warnings - versionChainId: versionChainId - runs: - - - - -properties: - runs: - items: - $ref: "#/components/schemas/SignalRun" - type: array - experiment: - type: string - warnings: - items: - type: string - type: array - versionChainId: - type: string -type: object -components: - schemas: - SignalRun: - $ref: "./SignalRun.yaml" diff --git a/openapi/v1/schemas/common/SignalRun.yaml b/openapi/v1/schemas/common/SignalRun.yaml deleted file mode 100644 index 91bf3091..00000000 --- a/openapi/v1/schemas/common/SignalRun.yaml +++ /dev/null @@ -1 +0,0 @@ -type: object diff --git a/openapi/v1/schemas/expression/ExpressionItem.yaml b/openapi/v1/schemas/expression/ExpressionItem.yaml deleted file mode 100644 index 844ecf51..00000000 --- a/openapi/v1/schemas/expression/ExpressionItem.yaml +++ /dev/null @@ -1,57 +0,0 @@ -example: - itemId: itemId - itemOrigin: - runSourceId: runSourceId, - runId: runId, - groupId: groupId - metadata: {} - expression: 1.82 - feature: - genes: MYO9A, - groupingKey: VRSLGGISPSEDRR - gene: gene - description: description - value: - value: 1.82 -properties: - itemId: - type: string - itemOrigin: - type: object - properties: - runSourceId: - type: string - runId: - type: string - groupId: - type: string - metadata: - type: object - gene: - type: string - expression: - example: 1.82 - format: double - type: number - feature: - example: - genes: MYO9A, - groupingKey: VRSLGGISPSEDRR - oneOf: - - type: object - - type: string - readOnly: true - value: - example: - value: 1.82 - type: object - patternProperties: - "^.*$": - format: double - oneOf: - - type: number - - type: string # Inf or -Inf - description: - type: string - readOnly: true -type: object diff --git a/openapi/v1/schemas/expression/ExpressionResponse.yaml b/openapi/v1/schemas/expression/ExpressionResponse.yaml deleted file mode 100644 index ec96fd1e..00000000 --- a/openapi/v1/schemas/expression/ExpressionResponse.yaml +++ /dev/null @@ -1,37 +0,0 @@ -example: - cursor: cursor - data: - - itemId: itemId - itemOrigin: - runSourceId: runSourceId, - runId: runId, - groupId: groupId - metadata: {} - gene: gene - feature: feature - expression: 1.82 - value: - value: 1.82 - - itemId: itemId - itemOrigin: - runSourceId: runSourceId, - runId: runId, - groupId: groupId - metadata: {} - gene: gene - feature: feature - expression: 1.82 - value: - value: 1.82 -properties: - data: - items: - $ref: "#/components/schemas/ExpressionItem" - type: array - cursor: - type: string -type: object -components: - schemas: - ExpressionItem: - $ref: "./ExpressionItem.yaml" diff --git a/openapi/v1/schemas/flow-cytometry/FlowCytometryItem.yaml b/openapi/v1/schemas/flow-cytometry/FlowCytometryItem.yaml deleted file mode 100644 index b6448c68..00000000 --- a/openapi/v1/schemas/flow-cytometry/FlowCytometryItem.yaml +++ /dev/null @@ -1,43 +0,0 @@ -example: - itemId: itemId - itemOrigin: - runSourceId: runSourceId, - runId: runId, - groupId: groupId - metadata: {} - feature: - readoutType: readoutType - cellPopulation: cellPopulation - marker: marker - value: - value: 0.8008281904610115 - runId: runId -properties: - itemId: - type: string - itemOrigin: - type: object - properties: - runSourceId: - type: string - runId: - type: string - groupId: - type: string - metadata: - type: object - feature: - type: object - properties: - readoutType: - type: string - cellPopulation: - type: string - marker: - type: string - value: - type: object - properties: - value: - type: number -type: object diff --git a/openapi/v1/schemas/flow-cytometry/FlowCytometryResponse.yaml b/openapi/v1/schemas/flow-cytometry/FlowCytometryResponse.yaml deleted file mode 100644 index 696aceb5..00000000 --- a/openapi/v1/schemas/flow-cytometry/FlowCytometryResponse.yaml +++ /dev/null @@ -1,39 +0,0 @@ -example: - cursor: cursor - data: - - itemId: itemId - itemOrigin: - runSourceId: runSourceId, - runId: runId, - groupId: groupId - metadata: {} - feature: - readoutType: readoutType - cellPopulation: cellPopulation - marker: marker - value: - value: 0.8008281904610115 - - itemId: itemId - itemOrigin: - runSourceId: runSourceId, - runId: runId, - groupId: groupId - metadata: {} - feature: - readoutType: readoutType - cellPopulation: cellPopulation - marker: marker - value: - value: 0.8008281904610115 -properties: - data: - items: - $ref: "#/components/schemas/FlowCytometryItem" - type: array - cursor: - type: string -type: object -components: - schemas: - FlowCytometryItem: - $ref: "./FlowCytometryItem.yaml" diff --git a/openapi/v1/schemas/integration/AppliedFilter.yaml b/openapi/v1/schemas/integration/AppliedFilter.yaml deleted file mode 100644 index cd300f3f..00000000 --- a/openapi/v1/schemas/integration/AppliedFilter.yaml +++ /dev/null @@ -1,16 +0,0 @@ -properties: - type: - enum: - - FULL_TEXT - - SELECT - type: string - filterOptionId: - type: string - match: - type: string - mode: - enum: - - STRICT - - USE_NARROWER_TERMS - type: string -type: object diff --git a/openapi/v1/schemas/integration/AttributeInvalidValue.yaml b/openapi/v1/schemas/integration/AttributeInvalidValue.yaml deleted file mode 100644 index eb4ccb77..00000000 --- a/openapi/v1/schemas/integration/AttributeInvalidValue.yaml +++ /dev/null @@ -1,26 +0,0 @@ -example: - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage -properties: - value: - oneOf: - - properties: {} - type: object - - type: string - count: - format: int64 - type: integer - errors: - items: - $ref: "#/components/schemas/ValidationError" - type: array -type: object -components: - schemas: - ValidationError: - $ref: "./ValidationError.yaml" diff --git a/openapi/v1/schemas/integration/AttributeValidationSummary.yaml b/openapi/v1/schemas/integration/AttributeValidationSummary.yaml deleted file mode 100644 index 5291f307..00000000 --- a/openapi/v1/schemas/integration/AttributeValidationSummary.yaml +++ /dev/null @@ -1,29 +0,0 @@ -example: - attributeName: attributeName - attributeInvalidValues: - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage -properties: - attributeName: - type: string - attributeInvalidValues: - items: - $ref: "#/components/schemas/AttributeInvalidValue" - type: array -type: object -components: - schemas: - AttributeInvalidValue: - $ref: "./AttributeInvalidValue.yaml" diff --git a/openapi/v1/schemas/integration/BatchOfIds.yaml b/openapi/v1/schemas/integration/BatchOfIds.yaml deleted file mode 100644 index e8b2f386..00000000 --- a/openapi/v1/schemas/integration/BatchOfIds.yaml +++ /dev/null @@ -1,32 +0,0 @@ -description: Request model for getting links by many IDs. -example: - firstType: study - firstIds: - - firstIds - - firstIds - offset: 0 - limit: 0 -properties: - firstType: - description: Type of the objects. - example: study - type: string - firstIds: - description: Array of the object IDs with the same type. - items: - type: string - type: array - uniqueItems: true - offset: - description: 'Param says to skip that many links before beginning to return links. - Default: 0.' - format: int32 - type: integer - limit: - description: 'Param says to limit the count of returned links. Default: 1000.' - format: int32 - type: integer -required: -- firstIds -- firstType -type: object diff --git a/openapi/v1/schemas/integration/DataItem.yaml b/openapi/v1/schemas/integration/DataItem.yaml deleted file mode 100644 index 1c4590cb..00000000 --- a/openapi/v1/schemas/integration/DataItem.yaml +++ /dev/null @@ -1,6 +0,0 @@ -properties: - itemId: - type: string - metadata: - type: object -type: object diff --git a/openapi/v1/schemas/integration/DataPresentation.yaml b/openapi/v1/schemas/integration/DataPresentation.yaml deleted file mode 100644 index 45ccfc56..00000000 --- a/openapi/v1/schemas/integration/DataPresentation.yaml +++ /dev/null @@ -1,13 +0,0 @@ -properties: - itemId: - readOnly: true - type: string - metadata: - type: object - relationships: - $ref: "#/components/schemas/Relationships" -type: object -components: - schemas: - Relationships: - $ref: "./Relationships.yaml" diff --git a/openapi/v1/schemas/integration/FilterOption.yaml b/openapi/v1/schemas/integration/FilterOption.yaml deleted file mode 100644 index 96ccaea7..00000000 --- a/openapi/v1/schemas/integration/FilterOption.yaml +++ /dev/null @@ -1,16 +0,0 @@ -example: - filterId: filterId - name: name - count: 5 - id: id -properties: - id: - type: string - filterId: - type: string - name: - type: string - count: - format: int64 - type: integer -type: object diff --git a/openapi/v1/schemas/integration/FilterOptionGroup.yaml b/openapi/v1/schemas/integration/FilterOptionGroup.yaml deleted file mode 100644 index 897e5a54..00000000 --- a/openapi/v1/schemas/integration/FilterOptionGroup.yaml +++ /dev/null @@ -1,26 +0,0 @@ -example: - filterId: filterId - hasMoreOptions: true - options: - - filterId: filterId - name: name - count: 5 - id: id - - filterId: filterId - name: name - count: 5 - id: id -properties: - filterId: - type: string - hasMoreOptions: - type: boolean - options: - items: - $ref: "#/components/schemas/FilterOption" - type: array -type: object -components: - schemas: - FilterOption: - $ref: "./FilterOption.yaml" diff --git a/openapi/v1/schemas/integration/FindObjectsResponse.yaml b/openapi/v1/schemas/integration/FindObjectsResponse.yaml deleted file mode 100644 index 679cdcaa..00000000 --- a/openapi/v1/schemas/integration/FindObjectsResponse.yaml +++ /dev/null @@ -1,78 +0,0 @@ -example: - filterOptionGroups: - - filterId: filterId - hasMoreOptions: true - options: - - filterId: filterId - name: name - count: 5 - id: id - - filterId: filterId - name: name - count: 5 - id: id - - filterId: filterId - hasMoreOptions: true - options: - - filterId: filterId - name: name - count: 5 - id: id - - filterId: filterId - name: name - count: 5 - id: id - objectsPage: - filteredCount: 0 - pageRequest: - offset: 6 - limit: 50 - content: - - owner: owner - summary: - - values: - - values - - values - key: key - - values: - - values - - values - key: key - hasFacs: true - hasTranscriptomics: true - size: 1 - fileCreation: fileCreation - name: name - accession: accession - hasGenomic: true - - owner: owner - summary: - - values: - - values - - values - key: key - - values: - - values - - values - key: key - hasFacs: true - hasTranscriptomics: true - size: 1 - fileCreation: fileCreation - name: name - accession: accession - hasGenomic: true -properties: - objectsPage: - $ref: "#/components/schemas/ObjectsPage" - filterOptionGroups: - items: - $ref: "#/components/schemas/FilterOptionGroup" - type: array -type: object -components: - schemas: - ObjectsPage: - $ref: "./ObjectsPage.yaml" - FilterOptionGroup: - $ref: "./FilterOptionGroup.yaml" diff --git a/openapi/v1/schemas/integration/GroupValidationSummary.yaml b/openapi/v1/schemas/integration/GroupValidationSummary.yaml deleted file mode 100644 index c3399b6c..00000000 --- a/openapi/v1/schemas/integration/GroupValidationSummary.yaml +++ /dev/null @@ -1,47 +0,0 @@ -example: - groupAccession: groupAccession - attributes: - - attributeName: attributeName - attributeInvalidValues: - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - attributeName: attributeName - attributeInvalidValues: - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage -properties: - groupAccession: - type: string - attributes: - items: - $ref: "#/components/schemas/AttributeValidationSummary" - type: array -type: object -components: - schemas: - AttributeValidationSummary: - $ref: "./AttributeValidationSummary.yaml" diff --git a/openapi/v1/schemas/integration/IMetadata.yaml b/openapi/v1/schemas/integration/IMetadata.yaml deleted file mode 100644 index abbedd84..00000000 --- a/openapi/v1/schemas/integration/IMetadata.yaml +++ /dev/null @@ -1,21 +0,0 @@ -properties: - source: - format: uri - type: string - name: - type: string - public: - type: boolean - id: - type: string - content: - type: object - dataType: - type: string - contentMap: - type: object - metadataContent: - type: object - fileIdAssociatedWithTemplate: - type: string -type: object diff --git a/openapi/v1/schemas/integration/Link.yaml b/openapi/v1/schemas/integration/Link.yaml deleted file mode 100644 index f9627bb5..00000000 --- a/openapi/v1/schemas/integration/Link.yaml +++ /dev/null @@ -1,21 +0,0 @@ -description: Link between two objects. Each of them represented as a unique pair of - ID (accession) and unique type. -example: - firstId: firstId - firstType: firstType - secondId: secondId - secondType: secondType -properties: - firstId: - description: Object ID (accession) (e.g. accession of study) - type: string - firstType: - description: Type of the object (e.g. study) - type: string - secondId: - description: Object ID (accession) (e.g. accession of study) - type: string - secondType: - description: Type of the object (e.g. study) - type: string -type: object diff --git a/openapi/v1/schemas/integration/MetadataPresentation.yaml b/openapi/v1/schemas/integration/MetadataPresentation.yaml deleted file mode 100644 index bae5ce0b..00000000 --- a/openapi/v1/schemas/integration/MetadataPresentation.yaml +++ /dev/null @@ -1,20 +0,0 @@ -description: |- - A description of object metadata. - - This will contain: - - `genestack:accession`: the object ID - - `Study Title` (for studies) - - `Sample ID` (for samples) - - all other attributes defined in the linked template (if any) -properties: - metadata: - $ref: "#/components/schemas/IMetadata" - relationships: - $ref: "#/components/schemas/Relationships" -type: object -components: - schemas: - IMetadata: - $ref: "./IMetadata.yaml" - Relationships: - $ref: "./Relationships.yaml" diff --git a/openapi/v1/schemas/integration/MetainfoKeyForSummary.yaml b/openapi/v1/schemas/integration/MetainfoKeyForSummary.yaml deleted file mode 100644 index c22abc0d..00000000 --- a/openapi/v1/schemas/integration/MetainfoKeyForSummary.yaml +++ /dev/null @@ -1,13 +0,0 @@ -example: - values: - - values - - values - key: key -properties: - key: - type: string - values: - items: - type: string - type: array -type: object diff --git a/openapi/v1/schemas/integration/ObjectsPage.yaml b/openapi/v1/schemas/integration/ObjectsPage.yaml deleted file mode 100644 index 4b95d6b4..00000000 --- a/openapi/v1/schemas/integration/ObjectsPage.yaml +++ /dev/null @@ -1,57 +0,0 @@ -example: - filteredCount: 0 - pageRequest: - offset: 6 - limit: 50 - content: - - owner: owner - summary: - - values: - - values - - values - key: key - - values: - - values - - values - key: key - hasFacs: true - hasTranscriptomics: true - size: 1 - fileCreation: fileCreation - name: name - accession: accession - hasGenomic: true - - owner: owner - summary: - - values: - - values - - values - key: key - - values: - - values - - values - key: key - hasFacs: true - hasTranscriptomics: true - size: 1 - fileCreation: fileCreation - name: name - accession: accession - hasGenomic: true -properties: - filteredCount: - format: int64 - type: integer - pageRequest: - $ref: "#/components/schemas/PageRequest" - content: - items: - $ref: "#/components/schemas/StudySearchInfo" - type: array -type: object -components: - schemas: - PageRequest: - $ref: "./PageRequest.yaml" - StudySearchInfo: - $ref: "./StudySearchInfo.yaml" diff --git a/openapi/v1/schemas/integration/OmicsResponse.yaml b/openapi/v1/schemas/integration/OmicsResponse.yaml deleted file mode 100644 index 52fd3ad4..00000000 --- a/openapi/v1/schemas/integration/OmicsResponse.yaml +++ /dev/null @@ -1,24 +0,0 @@ -example: - cursor: cursor - data: - - {} - - {} - log: - - log - - log - resultsExhausted: true -properties: - data: - items: - properties: {} - type: object - type: array - resultsExhausted: - type: boolean - log: - items: - type: string - type: array - cursor: - type: string -type: object diff --git a/openapi/v1/schemas/integration/OmicsResponseDataPresentation.yaml b/openapi/v1/schemas/integration/OmicsResponseDataPresentation.yaml deleted file mode 100644 index 88dac7bb..00000000 --- a/openapi/v1/schemas/integration/OmicsResponseDataPresentation.yaml +++ /dev/null @@ -1,18 +0,0 @@ -properties: - data: - items: - $ref: "#/components/schemas/DataPresentation" - type: array - resultsExhausted: - type: boolean - log: - items: - type: string - type: array - cursor: - type: string -type: object -components: - schemas: - DataPresentation: - $ref: "./DataPresentation.yaml" diff --git a/openapi/v1/schemas/integration/OmicsResponseMetadataPresentation.yaml b/openapi/v1/schemas/integration/OmicsResponseMetadataPresentation.yaml deleted file mode 100644 index c4d2d6fd..00000000 --- a/openapi/v1/schemas/integration/OmicsResponseMetadataPresentation.yaml +++ /dev/null @@ -1,18 +0,0 @@ -properties: - data: - items: - $ref: "#/components/schemas/MetadataPresentation" - type: array - resultsExhausted: - type: boolean - log: - items: - type: string - type: array - cursor: - type: string -type: object -components: - schemas: - MetadataPresentation: - $ref: "./MetadataPresentation.yaml" diff --git a/openapi/v1/schemas/integration/OmicsResponseMetadataWithId.yaml b/openapi/v1/schemas/integration/OmicsResponseMetadataWithId.yaml deleted file mode 100644 index cd660ef2..00000000 --- a/openapi/v1/schemas/integration/OmicsResponseMetadataWithId.yaml +++ /dev/null @@ -1,18 +0,0 @@ -properties: - data: - items: - $ref: "#/components/schemas/MetadataWithId" - type: array - resultsExhausted: - type: boolean - log: - items: - type: string - type: array - cursor: - type: string -type: object -components: - schemas: - MetadataWithId: - $ref: "../common/MetadataWithId.yaml" diff --git a/openapi/v1/schemas/integration/PageRequest.yaml b/openapi/v1/schemas/integration/PageRequest.yaml deleted file mode 100644 index 817d8ba8..00000000 --- a/openapi/v1/schemas/integration/PageRequest.yaml +++ /dev/null @@ -1,15 +0,0 @@ -example: - offset: 6 - limit: 50 -properties: - offset: - description: 'Param says to skip that many links before beginning to return links. - Default: 0.' - format: int32 - type: integer - limit: - description: 'Param says to limit the count of returned links. Default: 1000.' - example: 50 - format: int32 - type: integer -type: object diff --git a/openapi/v1/schemas/integration/Relationships.yaml b/openapi/v1/schemas/integration/Relationships.yaml deleted file mode 100644 index bb234453..00000000 --- a/openapi/v1/schemas/integration/Relationships.yaml +++ /dev/null @@ -1,14 +0,0 @@ -properties: - sample: - readOnly: true - type: string - cell: - readOnly: true - type: string - library: - readOnly: true - type: string - preparation: - readOnly: true - type: string -type: object diff --git a/openapi/v1/schemas/integration/SearchStudyRequest.yaml b/openapi/v1/schemas/integration/SearchStudyRequest.yaml deleted file mode 100644 index d2cd3724..00000000 --- a/openapi/v1/schemas/integration/SearchStudyRequest.yaml +++ /dev/null @@ -1,30 +0,0 @@ -example: - filters: - - type: FULL_TEXT - match: text_to_search - mode: STRICT - - type: SELECT - filterOptionId: TUVUQURBVEFfU3R1ZHlfU291cmNlOlRlc3QgR0VP - page: - offset: 6 - limit: 50 -properties: - filters: - example: - - type: FULL_TEXT - match: text_to_search - mode: STRICT - - type: SELECT - filterOptionId: TUVUQURBVEFfU3R1ZHlfU291cmNlOlRlc3QgR0VP - items: - $ref: "#/components/schemas/AppliedFilter" - type: array - page: - $ref: "#/components/schemas/PageRequest" -type: object -components: - schemas: - AppliedFilter: - $ref: "./AppliedFilter.yaml" - PageRequest: - $ref: "./PageRequest.yaml" diff --git a/openapi/v1/schemas/integration/SourceTypePair.yaml b/openapi/v1/schemas/integration/SourceTypePair.yaml deleted file mode 100644 index 82e199f3..00000000 --- a/openapi/v1/schemas/integration/SourceTypePair.yaml +++ /dev/null @@ -1,13 +0,0 @@ -example: - firstType: firstType - secondType: secondType -properties: - firstType: - description: Type of the object (e.g. study) - readOnly: true - type: string - secondType: - description: Type of the object (e.g. study) - readOnly: true - type: string -type: object diff --git a/openapi/v1/schemas/integration/StreamingOutput.yaml b/openapi/v1/schemas/integration/StreamingOutput.yaml deleted file mode 100644 index 91bf3091..00000000 --- a/openapi/v1/schemas/integration/StreamingOutput.yaml +++ /dev/null @@ -1 +0,0 @@ -type: object diff --git a/openapi/v1/schemas/integration/StudySearchInfo.yaml b/openapi/v1/schemas/integration/StudySearchInfo.yaml deleted file mode 100644 index 9b8d9e2d..00000000 --- a/openapi/v1/schemas/integration/StudySearchInfo.yaml +++ /dev/null @@ -1,46 +0,0 @@ -example: - owner: owner - summary: - - values: - - values - - values - key: key - - values: - - values - - values - key: key - hasFacs: true - hasTranscriptomics: true - size: 1 - fileCreation: fileCreation - name: name - accession: accession - hasGenomic: true -properties: - accession: - type: string - name: - type: string - owner: - type: string - fileCreation: - format: int64 - type: string - size: - format: int64 - type: integer - hasFacs: - type: boolean - hasGenomic: - type: boolean - hasTranscriptomics: - type: boolean - summary: - items: - $ref: "#/components/schemas/MetainfoKeyForSummary" - type: array -type: object -components: - schemas: - MetainfoKeyForSummary: - $ref: "./MetainfoKeyForSummary.yaml" diff --git a/openapi/v1/schemas/integration/StudyValidationSummary.yaml b/openapi/v1/schemas/integration/StudyValidationSummary.yaml deleted file mode 100644 index 49c83492..00000000 --- a/openapi/v1/schemas/integration/StudyValidationSummary.yaml +++ /dev/null @@ -1,80 +0,0 @@ -example: - samples: - - groupAccession: groupAccession - attributes: - - attributeName: attributeName - attributeInvalidValues: - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - attributeName: attributeName - attributeInvalidValues: - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - groupAccession: groupAccession - attributes: - - attributeName: attributeName - attributeInvalidValues: - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - attributeName: attributeName - attributeInvalidValues: - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - count: 0 - value: {} - errors: - - errorType: VALUE_NOT_SET - errorMessage: errorMessage - - errorType: VALUE_NOT_SET - errorMessage: errorMessage -properties: - samples: - items: - $ref: "#/components/schemas/GroupValidationSummary" - type: array -type: object -components: - schemas: - GroupValidationSummary: - $ref: "./GroupValidationSummary.yaml" diff --git a/openapi/v1/schemas/integration/ValidationError.yaml b/openapi/v1/schemas/integration/ValidationError.yaml deleted file mode 100644 index 6ce7c01e..00000000 --- a/openapi/v1/schemas/integration/ValidationError.yaml +++ /dev/null @@ -1,15 +0,0 @@ -example: - errorType: VALUE_NOT_SET - errorMessage: errorMessage -properties: - errorType: - enum: - - VALUE_NOT_SET - - VOCABULARY_NOT_FOUND - - TYPE_NOT_MATCH - - MISSING_ATTRIBUTE - - SYNONYM_ATTRIBUTE - type: string - errorMessage: - type: string -type: object diff --git a/openapi/v1/schemas/job/ExceptionTypeAndMessage.yaml b/openapi/v1/schemas/job/ExceptionTypeAndMessage.yaml deleted file mode 100644 index 916133dd..00000000 --- a/openapi/v1/schemas/job/ExceptionTypeAndMessage.yaml +++ /dev/null @@ -1,9 +0,0 @@ -example: - type: type - message: message -properties: - type: - type: string - message: - type: string -type: object diff --git a/openapi/v1/schemas/job/ImportAFileFromMultipartRequest.yaml b/openapi/v1/schemas/job/ImportAFileFromMultipartRequest.yaml deleted file mode 100644 index 55fc15c1..00000000 --- a/openapi/v1/schemas/job/ImportAFileFromMultipartRequest.yaml +++ /dev/null @@ -1,22 +0,0 @@ -properties: - metadata: - type: string - format: binary - description: The metadata file to be used as the original metadata for the created objects. The file must contain a single record describing the uploaded attachment. - data: - type: string - format: binary - description: A file to import as an attachment. The file will be associated with a study and will be searchable by its name and metadata. - studyAccession: - example: GSF334953 - type: string - description: An accession of a study the file will be associated with. - dataClass: - example: Proteomics - type: string - description: A mandatory parameter with the value from a limited set of values (see request description). -required: -- data -- studyAccession -- dataClass -type: object diff --git a/openapi/v1/schemas/job/ImportAFileRequest.yaml b/openapi/v1/schemas/job/ImportAFileRequest.yaml deleted file mode 100644 index eb4ec551..00000000 --- a/openapi/v1/schemas/job/ImportAFileRequest.yaml +++ /dev/null @@ -1,34 +0,0 @@ -example: - metadataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-object-metadata.tsv - dataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-object.pdf - studyAccession: GSF334953 - dataClass: Proteomics -properties: - source: - enum: - - S3 - - HTTP - - LOCAL - example: HTTP - type: string - description: The source parameter is ignored and will be removed in version 1.61. The source is automatically extracted from the link - metadataLink: - example: https://mybucket.s3.amazonaws.com/my-experiment/my-object-metadata.tsv - type: string - description: Specifies the URL of a metadata file to be used as the original metadata for the created objects. The file must contain a single record describing the uploaded attachment. - dataLink: - example: https://mybucket.s3.amazonaws.com/my-experiment/my-object.pdf - type: string - description: Specifies a link to a file to import as an attachment. The file will be associated with a study and will be searchable by its name and metadata. - studyAccession: - example: GSF334953 - type: string - dataClass: - example: Proteomics - type: string - description: A mandatory parameter with the value from a limited set of values (see request description). -required: -- dataLink -- studyAccession -- dataClass -type: object diff --git a/openapi/v1/schemas/job/ImportCellsFromMultipartRequest.yaml b/openapi/v1/schemas/job/ImportCellsFromMultipartRequest.yaml deleted file mode 100644 index 4f109f4e..00000000 --- a/openapi/v1/schemas/job/ImportCellsFromMultipartRequest.yaml +++ /dev/null @@ -1,12 +0,0 @@ -properties: - studyId: - type: string - example: GSF1234567 - description: The ID (accession) of the study for organising files in the internal storage; linking to the target entity must be done through a separate endpoint. - data: - type: string - format: binary -required: - - studyId - - data -type: object diff --git a/openapi/v1/schemas/job/ImportCellsRequest.yaml b/openapi/v1/schemas/job/ImportCellsRequest.yaml deleted file mode 100644 index c854b4a6..00000000 --- a/openapi/v1/schemas/job/ImportCellsRequest.yaml +++ /dev/null @@ -1,9 +0,0 @@ -example: - dataLink: https://mybucket.s3.amazonaws.com/my-experiment/cells.tsv -properties: - dataLink: - example: https://mybucket.s3.amazonaws.com/my-experiment/cells.tsv - type: string -required: -- dataLink -type: object diff --git a/openapi/v1/schemas/job/ImportExpressionSignalRunFromMultipartRequest.yaml b/openapi/v1/schemas/job/ImportExpressionSignalRunFromMultipartRequest.yaml deleted file mode 100644 index d5f182fc..00000000 --- a/openapi/v1/schemas/job/ImportExpressionSignalRunFromMultipartRequest.yaml +++ /dev/null @@ -1,31 +0,0 @@ -allOf: -- $ref: "#/components/schemas/ImportSignalRunFomMultipartRequest" -properties: - numberOfFeatureAttributes: - description: Integer value that specifies the number of columns related to the - feature in the uploaded data frame, and indicates the starting position of the - sample data. This attribute is not needed if the uploaded file is in GCT format. - example: 5 - type: integer - dataClass: - description: "A mandatory parameter with the following possible values: `Bulk - transcriptomics`, `Single-cell transcriptomics`, `Differential abundance (FC, - pval, etc.)`, `Pathway analysis`, `Proteomics`, `Single-cell proteomics`, `Metabolomics`, - `Lipidomics`, `Epigenomics`, `DNA methylation`, `Chemoinformatics`, `Imaging features`, - `Gene panel data`, `Biomarker data`, `Physical measures`, `Blood counts`, `Other body - fluid counts`, `Nanopore`, `Flow Cytometry (FCS)`, `Document`, `Other`. \nIn case the parameter is not set - the dataClass is automatically defined as `Other`." - example: Proteomics - type: string - measurementSeparator: - description: 'This parameter is necessary when your file contains multiple measurement - columns for each sample, library, or preparation. It represents the character - that distinguishes the sample/library/preparation name from the measurement - name in column headers. Supported separators include `. , : ; _ - / \ |`, with - the allowance for multi-character separators.' - example: ':' - type: string -components: - schemas: - ImportSignalRunFomMultipartRequest: - $ref: "./ImportSignalRunFomMultipartRequest.yaml" diff --git a/openapi/v1/schemas/job/ImportExpressionSignalRunRequest.yaml b/openapi/v1/schemas/job/ImportExpressionSignalRunRequest.yaml deleted file mode 100644 index 138236c9..00000000 --- a/openapi/v1/schemas/job/ImportExpressionSignalRunRequest.yaml +++ /dev/null @@ -1,39 +0,0 @@ -allOf: -- $ref: "#/components/schemas/ImportSignalRunRequest" -example: - metadataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-omics-metadata.tsv - dataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-omics-data.gz - templateId: GSF334953 - previousVersion: GSF334953 - numberOfFeatureAttributes: 5 - dataClass: Proteomics - measurementSeparator: ':' -properties: - numberOfFeatureAttributes: - description: Integer value that specifies the number of columns related to the - feature in the uploaded data frame, and indicates the starting position of the - sample data. This attribute is not needed if the uploaded file is in GCT format. - example: 5 - type: integer - dataClass: - description: "A mandatory parameter with the following possible values: `Bulk - transcriptomics`, `Single-cell transcriptomics`, `Differential abundance (FC, - pval, etc.)`, `Pathway analysis`, `Proteomics`, `Single-cell proteomics`, `Metabolomics`, - `Lipidomics`, `Epigenomics`, `DNA methylation`, `Chemoinformatics`, `Imaging features`, - `Gene panel data`, `Biomarker data`, `Physical measures`, `Blood counts`, `Other body - fluid counts`, `Nanopore`, `Flow Cytometry (FCS)`, `Document`, `Other`. \nIn case the parameter is not set - the dataClass is automatically defined as `Other`." - example: Proteomics - type: string - measurementSeparator: - description: 'This parameter is necessary when your file contains multiple measurement - columns for each sample, library, or preparation. It represents the character - that distinguishes the sample/library/preparation name from the measurement - name in column headers. Supported separators include `. , : ; _ - / \ |`, with - the allowance for multi-character separators.' - example: ':' - type: string -components: - schemas: - ImportSignalRunRequest: - $ref: "./ImportSignalRunRequest.yaml" diff --git a/openapi/v1/schemas/job/ImportMetadataFromMultipartRequest.yaml b/openapi/v1/schemas/job/ImportMetadataFromMultipartRequest.yaml deleted file mode 100644 index 47b4d9f3..00000000 --- a/openapi/v1/schemas/job/ImportMetadataFromMultipartRequest.yaml +++ /dev/null @@ -1,15 +0,0 @@ -properties: - studyId: - type: string - example: GSF1234567 - description: The ID (accession) of the study for organising files in the internal storage; linking to the target entity must be done through a separate endpoint. - templateId: - example: GSF334953 - type: string - metadata: - type: string - format: binary -required: - - studyId - - metadata -type: object diff --git a/openapi/v1/schemas/job/ImportMetadataRequest.yaml b/openapi/v1/schemas/job/ImportMetadataRequest.yaml deleted file mode 100644 index d600e38a..00000000 --- a/openapi/v1/schemas/job/ImportMetadataRequest.yaml +++ /dev/null @@ -1,21 +0,0 @@ -example: - metadataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-object-metadata.tsv - templateId: GSF334953 -properties: - source: - enum: - - S3 - - HTTP - - LOCAL - example: HTTP - type: string - description: The source parameter is ignored and will be removed in version 1.61. The source is automatically extracted from the link - metadataLink: - example: https://mybucket.s3.amazonaws.com/my-experiment/my-object-metadata.tsv - type: string - templateId: - example: GSF334953 - type: string -required: -- metadataLink -type: object diff --git a/openapi/v1/schemas/job/ImportSignalRunFomMultipartRequest.yaml b/openapi/v1/schemas/job/ImportSignalRunFomMultipartRequest.yaml deleted file mode 100644 index ca06cd25..00000000 --- a/openapi/v1/schemas/job/ImportSignalRunFomMultipartRequest.yaml +++ /dev/null @@ -1,21 +0,0 @@ -properties: - studyId: - type: string - example: GSF1234567 - description: The ID (accession) of the study for organising files in the internal storage; linking to the target entity must be done through a separate endpoint. - metadata: - type: string - format: binary - data: - type: string - format: binary - templateId: - example: GSF334953 - type: string - previousVersion: - example: GSF334953 - type: string -required: - - studyId - - data -type: object diff --git a/openapi/v1/schemas/job/ImportSignalRunRequest.yaml b/openapi/v1/schemas/job/ImportSignalRunRequest.yaml deleted file mode 100644 index 9c4194a0..00000000 --- a/openapi/v1/schemas/job/ImportSignalRunRequest.yaml +++ /dev/null @@ -1,30 +0,0 @@ -description: import signal data request -example: - metadataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-omics-metadata.tsv - dataLink: https://mybucket.s3.amazonaws.com/my-experiment/my-omics-data.gz - templateId: GSF334953 - previousVersion: GSF334953 -properties: - source: - enum: - - S3 - - HTTP - - LOCAL - example: HTTP - type: string - description: The source parameter is ignored and will be removed in version 1.61. The source is automatically extracted from the link - metadataLink: - example: https://mybucket.s3.amazonaws.com/my-experiment/my-omics-metadata.tsv - type: string - dataLink: - example: https://mybucket.s3.amazonaws.com/my-experiment/my-omics-data.gz - type: string - templateId: - example: GSF334953 - type: string - previousVersion: - example: GSF334953 - type: string -required: -- dataLink -type: object diff --git a/openapi/v1/schemas/job/Info.yaml b/openapi/v1/schemas/job/Info.yaml deleted file mode 100644 index cfd3af82..00000000 --- a/openapi/v1/schemas/job/Info.yaml +++ /dev/null @@ -1,48 +0,0 @@ -description: job execution information -example: - jobName: Protein folding - startedBy: job@genestack.com - createTime: 2000-01-23T04:56:07+00:00 - jobExecId: 12345 - endTime: 2000-01-23T04:56:07+00:00 - status: STARTED -properties: - jobExecId: - description: job execution id - example: 12345 - format: int64 - type: integer - startedBy: - description: user name who started the job - example: job@genestack.com - type: string - jobName: - description: actual job name - example: Protein folding - type: string - status: - description: current job status - enum: - - COMPLETED - - STARTING - - RUNNING - - STOPPING - - STOPPED - - FAILED - - ABANDONED - - UNKNOWN - example: STARTED - type: string - createTime: - format: date-time - type: string - endTime: - format: date-time - type: string -required: -- createTime -- jobExecId -- jobName -- startedBy -- status -type: object diff --git a/openapi/v1/schemas/job/JobRuntimeError.yaml b/openapi/v1/schemas/job/JobRuntimeError.yaml deleted file mode 100644 index fc3b0436..00000000 --- a/openapi/v1/schemas/job/JobRuntimeError.yaml +++ /dev/null @@ -1,19 +0,0 @@ -example: - stack: - - type: type - message: message - - type: type - message: message - stage: stage -properties: - stage: - type: string - stack: - items: - $ref: "#/components/schemas/ExceptionTypeAndMessage" - type: array -type: object -components: - schemas: - ExceptionTypeAndMessage: - $ref: "./ExceptionTypeAndMessage.yaml" diff --git a/openapi/v1/schemas/job/Output.yaml b/openapi/v1/schemas/job/Output.yaml deleted file mode 100644 index f4a6601c..00000000 --- a/openapi/v1/schemas/job/Output.yaml +++ /dev/null @@ -1,48 +0,0 @@ -description: job execution output -example: - result: {} - errors: - - stack: - - type: type - message: message - - type: type - message: message - stage: stage - - stack: - - type: type - message: message - - type: type - message: message - stage: stage - status: COMPLETED -properties: - status: - description: current job status - enum: - - COMPLETED - - STARTING - - RUNNING - - STOPPING - - STOPPED - - FAILED - - ABANDONED - - UNKNOWN - example: COMPLETED - type: string - result: - description: job result object (available if job completed successfully) - properties: {} - type: object - errors: - description: array of errors occurred during execution of the job (available if - job failed) - items: - $ref: "#/components/schemas/JobRuntimeError" - type: array -required: -- status -type: object -components: - schemas: - JobRuntimeError: - $ref: "./JobRuntimeError.yaml" diff --git a/openapi/v1/schemas/library/Library.yaml b/openapi/v1/schemas/library/Library.yaml deleted file mode 100644 index 91bf3091..00000000 --- a/openapi/v1/schemas/library/Library.yaml +++ /dev/null @@ -1 +0,0 @@ -type: object diff --git a/openapi/v1/schemas/manage-data/DetachedCollection.yaml b/openapi/v1/schemas/manage-data/DetachedCollection.yaml deleted file mode 100644 index 55bd2a9a..00000000 --- a/openapi/v1/schemas/manage-data/DetachedCollection.yaml +++ /dev/null @@ -1,25 +0,0 @@ -example: - cursor: cursor - data: - - createdAt: 2000-01-23T04:56:07+00:00 - genestack:accession: genestack:accession - detachedObjectType: SAMPLE_GROUP - ownerEmail: ownerEmail - - createdAt: 2000-01-23T04:56:07+00:00 - genestack:accession: genestack:accession - detachedObjectType: SAMPLE_GROUP - ownerEmail: ownerEmail -properties: - data: - items: - $ref: "#/components/schemas/DetachedObject" - type: array - cursor: - type: string -required: -- data -type: object -components: - schemas: - DetachedObject: - $ref: "./DetachedObject.yaml" diff --git a/openapi/v1/schemas/manage-data/DetachedObject.yaml b/openapi/v1/schemas/manage-data/DetachedObject.yaml deleted file mode 100644 index 99b1c1fc..00000000 --- a/openapi/v1/schemas/manage-data/DetachedObject.yaml +++ /dev/null @@ -1,30 +0,0 @@ -example: - createdAt: 2000-01-23T04:56:07+00:00 - genestack:accession: genestack:accession - detachedObjectType: SAMPLE_GROUP - ownerEmail: ownerEmail -properties: - genestack:accession: - type: string - detachedObjectType: - enum: - - STUDY - - SAMPLE_GROUP - - LIBRARY_GROUP - - PREPARATION_GROUP - - CELL_GROUP - - TABULAR_DATA - - GENE_VARIANT - - FLOW_CYTOMETRY - type: string - ownerEmail: - type: string - createdAt: - format: date-time - type: string -required: -- createdAt -- detachedObjectType -- genestack:accession -- ownerEmail -type: object diff --git a/openapi/v1/schemas/manage-data/ManagedObject.yaml b/openapi/v1/schemas/manage-data/ManagedObject.yaml deleted file mode 100644 index 602b67fb..00000000 --- a/openapi/v1/schemas/manage-data/ManagedObject.yaml +++ /dev/null @@ -1,21 +0,0 @@ -example: - createdAt: 2000-01-23T04:56:07+00:00 - genestack:accession: genestack:accession - objectType: objectType - ownerEmail: ownerEmail -properties: - genestack:accession: - type: string - objectType: - type: string - ownerEmail: - type: string - createdAt: - format: date-time - type: string -required: -- createdAt -- genestack:accession -- objectType -- ownerEmail -type: object diff --git a/openapi/v1/schemas/preparation/Preparation.yaml b/openapi/v1/schemas/preparation/Preparation.yaml deleted file mode 100644 index 91bf3091..00000000 --- a/openapi/v1/schemas/preparation/Preparation.yaml +++ /dev/null @@ -1 +0,0 @@ -type: object diff --git a/openapi/v1/schemas/reference-data/XrefSetCreateRequest.yaml b/openapi/v1/schemas/reference-data/XrefSetCreateRequest.yaml deleted file mode 100644 index 093b0e72..00000000 --- a/openapi/v1/schemas/reference-data/XrefSetCreateRequest.yaml +++ /dev/null @@ -1,26 +0,0 @@ -description: Create XrefSet request body -example: - metadata: - key: metadata - xrefSetType: gene-transcript - dataLink: '"http://example-url.com/my-mapping.tsv"' -properties: - xrefSetType: - description: Type of data stored in XrefSet - enum: - - gene-transcript - type: string - dataLink: - description: Mapping file link - example: '"http://example-url.com/my-mapping.tsv"' - type: string - metadata: - patternProperties: - "^.*$": - type: string - description: Additional user metadata - type: object -required: -- dataLink -- xrefSetType -type: object diff --git a/openapi/v1/schemas/reference-data/XrefSetCreateResponse.yaml b/openapi/v1/schemas/reference-data/XrefSetCreateResponse.yaml deleted file mode 100644 index 34aed5f4..00000000 --- a/openapi/v1/schemas/reference-data/XrefSetCreateResponse.yaml +++ /dev/null @@ -1,56 +0,0 @@ -description: Create XrefSet response body -example: - lastUpdated: 1602838500612 - metadata: - key: metadata - createdDate: 1602838500612 - createdBy: '"User007"' - warnings: - - warnings - - warnings - xrefSetType: gene-transcript - xrefSetId: '"GSF0000013"' -properties: - xrefSetId: - description: Accession of the created XrefSet - example: '"GSF0000013"' - type: string - createdBy: - description: Name of the user created XrefSet - example: '"User007"' - type: string - createdDate: - description: Date of XrefSet creation - example: 1602838500612 - format: int64 - type: integer - lastUpdated: - description: Date of XrefSet last update. For a new entity lastUpdated = createdDate - example: 1602838500612 - format: int64 - type: integer - xrefSetType: - description: Type of data stored in XrefSet - enum: - - gene-transcript - type: string - metadata: - patternProperties: - "^.*$": - type: string - description: Additional user metadata - type: object - warnings: - description: Warnings, if any - items: - type: string - type: array -required: -- createdBy -- createdDate -- lastUpdated -- metadata -- warnings -- xrefSetId -- xrefSetType -type: object diff --git a/openapi/v1/schemas/reference-data/XrefSetMetadata.yaml b/openapi/v1/schemas/reference-data/XrefSetMetadata.yaml deleted file mode 100644 index 340e7627..00000000 --- a/openapi/v1/schemas/reference-data/XrefSetMetadata.yaml +++ /dev/null @@ -1,29 +0,0 @@ -description: Xrefset metadata -example: - lastUpdated: 1594846270242 - createdDate: 1594846270242 - data: - key: data - createdBy: '"Genestack Superuser"' - xrefSetId: '"GSF000477"' -properties: - xrefSetId: - example: '"GSF000477"' - type: string - createdBy: - example: '"Genestack Superuser"' - type: string - createdDate: - example: 1594846270242 - format: int64 - type: integer - lastUpdated: - example: 1594846270242 - format: int64 - type: integer - data: - patternProperties: - "^.*$": - type: string - type: object -type: object diff --git a/openapi/v1/schemas/reference-data/XrefSetSearchResult.yaml b/openapi/v1/schemas/reference-data/XrefSetSearchResult.yaml deleted file mode 100644 index 085a1607..00000000 --- a/openapi/v1/schemas/reference-data/XrefSetSearchResult.yaml +++ /dev/null @@ -1,19 +0,0 @@ -description: Result of a search query for xrefsets -example: - cursor: '"GSF0000013#ENSG00000231103.2#ENST00000617423.4"' - result: - - sourceId: '"ENSG00000231103.2"' - targetIds: '["ENST00000617423.4", "ENST00000334232.8"]' - xrefSetId: '"GSF0000013"' - - sourceId: '"ENSG00000231103.2"' - targetIds: '["ENST00000617423.4", "ENST00000334232.8"]' - xrefSetId: '"GSF0000013"' -properties: - cursor: - example: '"GSF0000013#ENSG00000231103.2#ENST00000617423.4"' - type: string - result: - items: - $ref: "XrefSetSearchResultEntry.yaml" - type: array -type: object diff --git a/openapi/v1/schemas/reference-data/XrefSetSearchResultEntry.yaml b/openapi/v1/schemas/reference-data/XrefSetSearchResultEntry.yaml deleted file mode 100644 index a20a604c..00000000 --- a/openapi/v1/schemas/reference-data/XrefSetSearchResultEntry.yaml +++ /dev/null @@ -1,17 +0,0 @@ -example: - sourceId: '"ENSG00000231103.2"' - targetIds: '["ENST00000617423.4", "ENST00000334232.8"]' - xrefSetId: '"GSF0000013"' -properties: - xrefSetId: - example: '"GSF0000013"' - type: string - sourceId: - example: '"ENSG00000231103.2"' - type: string - targetIds: - example: '["ENST00000617423.4", "ENST00000334232.8"]' - items: - type: string - type: array -type: object diff --git a/openapi/v1/schemas/reference-genome/RGItem.yaml b/openapi/v1/schemas/reference-genome/RGItem.yaml deleted file mode 100644 index 53af5e3b..00000000 --- a/openapi/v1/schemas/reference-genome/RGItem.yaml +++ /dev/null @@ -1,31 +0,0 @@ -example: - genestack:accession: GSF000009 - annotationUrl: https://ftp.ensembl.org/pub/release-112/gtf/homo_sapiens/Homo_sapiens.GRCh38.112.gtf.gz - organism: Homo sapiens - assembly: GRCh38 - release: 112 - name: Homo sapiens reference genome GRCh38.112 - initializationStatus: Complete - createdAt: 2000-01-23T04:56:070Z - ownerEmail: ownerEmail -properties: - genestack:accession: - type: string - annotationUrl: - type: string - format: uri - organism: - type: string - assembly: - type: string - release: - type: string - name: - type: string - initializationStatus: - type: string - createdAt: - type: string - ownerEmail: - type: string -type: object diff --git a/openapi/v1/schemas/reference-genome/UploadRGRequest.yaml b/openapi/v1/schemas/reference-genome/UploadRGRequest.yaml deleted file mode 100644 index 6f624ad6..00000000 --- a/openapi/v1/schemas/reference-genome/UploadRGRequest.yaml +++ /dev/null @@ -1,23 +0,0 @@ -example: - annotationUrl: https://ftp.ensembl.org/pub/release-112/gtf/homo_sapiens/Homo_sapiens.GRCh38.112.gtf.gz - organism: Homo sapiens - assembly: GRCh38 - release: "112" - name: Homo sapiens reference genome GRCh38.112 -properties: - annotationUrl: - type: string - format: uri - organism: - type: string - assembly: - type: string - release: - type: string - name: - type: string -required: -- organism -- assembly -- release -type: object diff --git a/openapi/v1/schemas/sample/Sample.yaml b/openapi/v1/schemas/sample/Sample.yaml deleted file mode 100644 index 91bf3091..00000000 --- a/openapi/v1/schemas/sample/Sample.yaml +++ /dev/null @@ -1 +0,0 @@ -type: object diff --git a/openapi/v1/schemas/scim/BaseErrorResponse.yaml b/openapi/v1/schemas/scim/BaseErrorResponse.yaml deleted file mode 100644 index b095cc65..00000000 --- a/openapi/v1/schemas/scim/BaseErrorResponse.yaml +++ /dev/null @@ -1,10 +0,0 @@ -properties: - error: - $ref: "#/components/schemas/ErrorMessage" -required: -- error -type: object -components: - schemas: - ErrorMessage: - $ref: "./ErrorMessage.yaml" diff --git a/openapi/v1/schemas/scim/Email.yaml b/openapi/v1/schemas/scim/Email.yaml deleted file mode 100644 index 34d51324..00000000 --- a/openapi/v1/schemas/scim/Email.yaml +++ /dev/null @@ -1,14 +0,0 @@ -example: - type: work - value: value - primary: true -properties: - type: - enum: - - work - type: string - value: - type: string - primary: - type: boolean -type: object diff --git a/openapi/v1/schemas/scim/ErrorMessage.yaml b/openapi/v1/schemas/scim/ErrorMessage.yaml deleted file mode 100644 index e2f428bf..00000000 --- a/openapi/v1/schemas/scim/ErrorMessage.yaml +++ /dev/null @@ -1,7 +0,0 @@ -properties: - message: - description: Detailed error message - type: string -required: -- message -type: object diff --git a/openapi/v1/schemas/scim/FilterGroupsResponse.yaml b/openapi/v1/schemas/scim/FilterGroupsResponse.yaml deleted file mode 100644 index 3a43740a..00000000 --- a/openapi/v1/schemas/scim/FilterGroupsResponse.yaml +++ /dev/null @@ -1,26 +0,0 @@ -properties: - Resources: - description: List of groups - items: - $ref: "#/components/schemas/GroupResponse" - type: array - itemsPerPage: - format: int64 - type: integer - schemas: - items: - enum: - - urn:ietf:params:scim:api:messages:2.0:ListResponse - type: string - type: array - startIndex: - format: int64 - type: integer - totalResults: - format: int64 - type: integer -type: object -components: - schemas: - GroupResponse: - $ref: "./GroupResponse.yaml" diff --git a/openapi/v1/schemas/scim/FilterUsersResponse.yaml b/openapi/v1/schemas/scim/FilterUsersResponse.yaml deleted file mode 100644 index 6294c5cb..00000000 --- a/openapi/v1/schemas/scim/FilterUsersResponse.yaml +++ /dev/null @@ -1,26 +0,0 @@ -properties: - Resources: - description: List of users - items: - $ref: "#/components/schemas/UserResponse" - type: array - itemsPerPage: - format: int64 - type: integer - schemas: - items: - enum: - - urn:ietf:params:scim:api:messages:2.0:ListResponse - type: string - type: array - startIndex: - format: int64 - type: integer - totalResults: - format: int64 - type: integer -type: object -components: - schemas: - UserResponse: - $ref: "./UserResponse.yaml" diff --git a/openapi/v1/schemas/scim/Group.yaml b/openapi/v1/schemas/scim/Group.yaml deleted file mode 100644 index ce4b620a..00000000 --- a/openapi/v1/schemas/scim/Group.yaml +++ /dev/null @@ -1,38 +0,0 @@ -example: - displayName: displayName - schemas: - - urn:ietf:params:scim:schemas:core:2.0:Group - - urn:ietf:params:scim:schemas:core:2.0:Group - members: - - display: display - value: value - - display: display - value: value - externalId: externalId - id: id -properties: - externalId: - description: External unique resource id - type: string - id: - description: Unique resource id - type: string - schemas: - items: - enum: - - urn:ietf:params:scim:schemas:core:2.0:Group - type: string - type: array - members: - items: - $ref: "#/components/schemas/Member" - type: array - displayName: - type: string -required: -- displayName -type: object -components: - schemas: - Member: - $ref: "./Member.yaml" diff --git a/openapi/v1/schemas/scim/GroupPatch.yaml b/openapi/v1/schemas/scim/GroupPatch.yaml deleted file mode 100644 index daf63b73..00000000 --- a/openapi/v1/schemas/scim/GroupPatch.yaml +++ /dev/null @@ -1,31 +0,0 @@ -example: - schemas: - - urn:ietf:params:scim:api:messages:2.0:PatchOp - - urn:ietf:params:scim:api:messages:2.0:PatchOp - Operations: - - op: add - path: path - value: {} - - op: add - path: path - value: {} -properties: - Operations: - description: Patch operations list - items: - $ref: "#/components/schemas/PatchOperation" - type: array - schemas: - items: - enum: - - urn:ietf:params:scim:api:messages:2.0:PatchOp - type: string - type: array -required: -- Operations -- schemas -type: object -components: - schemas: - PatchOperation: - $ref: "./PatchOperation.yaml" diff --git a/openapi/v1/schemas/scim/GroupResponse.yaml b/openapi/v1/schemas/scim/GroupResponse.yaml deleted file mode 100644 index acbbaf7a..00000000 --- a/openapi/v1/schemas/scim/GroupResponse.yaml +++ /dev/null @@ -1,12 +0,0 @@ -allOf: -- $ref: "#/components/schemas/Group" -- properties: - meta: - $ref: "#/components/schemas/Meta" - type: object -components: - schemas: - Group: - $ref: "./Group.yaml" - Meta: - $ref: "./Meta.yaml" diff --git a/openapi/v1/schemas/scim/Member.yaml b/openapi/v1/schemas/scim/Member.yaml deleted file mode 100644 index e12a32d1..00000000 --- a/openapi/v1/schemas/scim/Member.yaml +++ /dev/null @@ -1,16 +0,0 @@ -example: - display: display - value: value -properties: - value: - type: string - display: - type: string - $ref: - description: The URI of the member resource - format: uri - type: string -required: -- $ref -- value -type: object diff --git a/openapi/v1/schemas/scim/Meta.yaml b/openapi/v1/schemas/scim/Meta.yaml deleted file mode 100644 index fe4f24b4..00000000 --- a/openapi/v1/schemas/scim/Meta.yaml +++ /dev/null @@ -1,14 +0,0 @@ -description: resource metadata -properties: - created: - format: date-time - type: string - lastModified: - format: date-time - type: string - resourceType: - enum: - - User - - Group - type: string -type: object diff --git a/openapi/v1/schemas/scim/PatchOperation.yaml b/openapi/v1/schemas/scim/PatchOperation.yaml deleted file mode 100644 index b48b7e07..00000000 --- a/openapi/v1/schemas/scim/PatchOperation.yaml +++ /dev/null @@ -1,20 +0,0 @@ -example: - op: add - path: path - value: {} -properties: - op: - enum: - - add - - replace - - remove - type: string - path: - type: string - value: - description: Corresponding 'value' of that field specified by 'path' - properties: {} - type: object -required: -- op -type: object diff --git a/openapi/v1/schemas/scim/SCIMErrorResponse.yaml b/openapi/v1/schemas/scim/SCIMErrorResponse.yaml deleted file mode 100644 index f7412161..00000000 --- a/openapi/v1/schemas/scim/SCIMErrorResponse.yaml +++ /dev/null @@ -1,30 +0,0 @@ -properties: - detail: - description: Detailed error message - type: string - schemas: - items: - enum: - - urn:ietf:params:scim:api:messages:2.0:Error - type: string - type: array - scimType: - description: Bad request type when status code is 400 - enum: - - uniqueness - - tooMany - - mutability - - sensitive - - invalidSyntax - - invalidFilter - - invalidPath - - invalidValue - - invalidVers - - noTarget - type: string - status: - description: Same as HTTP status code, e.g. 400, 403, etc. - type: string -required: -- status -type: object diff --git a/openapi/v1/schemas/scim/User.yaml b/openapi/v1/schemas/scim/User.yaml deleted file mode 100644 index 5f91e2a5..00000000 --- a/openapi/v1/schemas/scim/User.yaml +++ /dev/null @@ -1,49 +0,0 @@ -example: - emails: - - type: work - value: value - primary: true - - type: work - value: value - primary: true - displayName: displayName - schemas: - - urn:ietf:params:scim:schemas:core:2.0:User - - urn:ietf:params:scim:schemas:core:2.0:User - active: true - externalId: externalId - id: id - userName: userName -properties: - active: - description: User status - type: boolean - emails: - items: - $ref: "#/components/schemas/Email" - type: array - externalId: - description: External unique resource id - type: string - id: - description: Unique resource id - type: string - schemas: - items: - enum: - - urn:ietf:params:scim:schemas:core:2.0:User - type: string - type: array - userName: - type: string - displayName: - type: string -required: -- active -- displayName -- emails -type: object -components: - schemas: - Email: - $ref: "./Email.yaml" diff --git a/openapi/v1/schemas/scim/UserPatch.yaml b/openapi/v1/schemas/scim/UserPatch.yaml deleted file mode 100644 index daf63b73..00000000 --- a/openapi/v1/schemas/scim/UserPatch.yaml +++ /dev/null @@ -1,31 +0,0 @@ -example: - schemas: - - urn:ietf:params:scim:api:messages:2.0:PatchOp - - urn:ietf:params:scim:api:messages:2.0:PatchOp - Operations: - - op: add - path: path - value: {} - - op: add - path: path - value: {} -properties: - Operations: - description: Patch operations list - items: - $ref: "#/components/schemas/PatchOperation" - type: array - schemas: - items: - enum: - - urn:ietf:params:scim:api:messages:2.0:PatchOp - type: string - type: array -required: -- Operations -- schemas -type: object -components: - schemas: - PatchOperation: - $ref: "./PatchOperation.yaml" diff --git a/openapi/v1/schemas/scim/UserResponse.yaml b/openapi/v1/schemas/scim/UserResponse.yaml deleted file mode 100644 index b47ace64..00000000 --- a/openapi/v1/schemas/scim/UserResponse.yaml +++ /dev/null @@ -1,12 +0,0 @@ -allOf: -- $ref: "#/components/schemas/User" -- properties: - meta: - $ref: "#/components/schemas/Meta" - type: object -components: - schemas: - User: - $ref: "./User.yaml" - Meta: - $ref: "./Meta.yaml" diff --git a/openapi/v1/schemas/study/Study.yaml b/openapi/v1/schemas/study/Study.yaml deleted file mode 100644 index 91bf3091..00000000 --- a/openapi/v1/schemas/study/Study.yaml +++ /dev/null @@ -1 +0,0 @@ -type: object diff --git a/openapi/v1/schemas/tasks/TaskInfo.yaml b/openapi/v1/schemas/tasks/TaskInfo.yaml deleted file mode 100644 index abb8be38..00000000 --- a/openapi/v1/schemas/tasks/TaskInfo.yaml +++ /dev/null @@ -1,43 +0,0 @@ -example: - application: application - createdBy: createdBy - endedAt: 6 - name: name - startedAt: 0 - id: id - status: CREATED -properties: - id: - readOnly: true - type: string - name: - readOnly: true - type: string - status: - enum: - - CREATED - - QUEUEING - - QUEUED - - STARTING - - RUNNING - - DONE - - FAILED - - BLOCKED_BY_DEPENDENCY_FAILURE - - KILLED - readOnly: true - type: string - application: - readOnly: true - type: string - startedAt: - format: int64 - readOnly: true - type: integer - endedAt: - format: int64 - readOnly: true - type: integer - createdBy: - readOnly: true - type: string -type: object diff --git a/openapi/v1/schemas/variant/VariantItem.yaml b/openapi/v1/schemas/variant/VariantItem.yaml deleted file mode 100644 index 0edf25e6..00000000 --- a/openapi/v1/schemas/variant/VariantItem.yaml +++ /dev/null @@ -1,82 +0,0 @@ -example: - ref: reference - itemId: itemId - itemOrigin: - runSourceId: runSourceId, - runId: runId, - groupId: groupId - metadata: {} - id: - - variationId - - variationId - variant: - chrom: chromosome - pos: 0 - id: - - id - ref: A - alt: - - GC - - GAATTTA - qual: 10 - filter: - - PASS - info: - key: - - info - - info - genotype: - key: genotype -properties: - itemId: - type: string - itemOrigin: - type: object - properties: - runSourceId: - type: string - runId: - type: string - groupId: - type: string - metadata: - type: object - variant: - type: object - properties: - chrom: - type: string - pos: - format: int64 - type: integer - id: - type: array - items: - type: string - ref: - type: string - alt: - type: array - items: - type: string - qual: - type: number - filter: - type: array - items: - type: string - info: - type: object - patternProperties: - "^.*$": - type: array - items: - oneOf: - - type: string - - type: number - genotype: - type: object - patternProperties: - "^.*$": - type: string -type: object diff --git a/openapi/v1/schemas/variant/VariantMetadataWithId.yaml b/openapi/v1/schemas/variant/VariantMetadataWithId.yaml deleted file mode 100644 index 92f53380..00000000 --- a/openapi/v1/schemas/variant/VariantMetadataWithId.yaml +++ /dev/null @@ -1,15 +0,0 @@ -example: - itemId: itemId - metadata: {} - annotation: {} -properties: - itemId: - readOnly: true - type: string - metadata: - type: object - annotation: - type: object - referenceGenome: - type: object -type: object diff --git a/openapi/v1/schemas/variant/VariantResponse.yaml b/openapi/v1/schemas/variant/VariantResponse.yaml deleted file mode 100644 index d85e9b72..00000000 --- a/openapi/v1/schemas/variant/VariantResponse.yaml +++ /dev/null @@ -1,71 +0,0 @@ -example: - cursor: cursor - data: - - ref: reference - itemId: itemId - itemOrigin: - runSourceId: runSourceId, - runId: runId, - groupId: groupId - metadata: {} - id: - - variationId - - variationId - variant: - chrom: chromosome - pos: 0 - id: - - id - ref: reference - alt: - - alteration - - alteration - qual: 10 - filter: - - PASS - info: - key: - - info - - info - genotype: - key: genotype - - ref: reference - itemId: itemId - itemOrigin: - runSourceId: runSourceId, - runId: runId, - groupId: groupId - metadata: {} - id: - - variationId - - variationId - variant: - chrom: chromosome - pos: 0 - id: - - id - ref: reference - alt: - - alteration - - alteration - qual: 10 - filter: - - PASS - info: - key: - - info - - info - genotype: - key: genotype -properties: - data: - items: - $ref: "#/components/schemas/VariantItem" - type: array - cursor: - type: string -type: object -components: - schemas: - VariantItem: - $ref: "VariantItem.yaml" diff --git a/openapi/v1/scimGroups.yaml b/openapi/v1/scimGroups.yaml deleted file mode 100644 index 45cbdd80..00000000 --- a/openapi/v1/scimGroups.yaml +++ /dev/null @@ -1,373 +0,0 @@ -openapi: 3.1.0 -info: - description: "This swagger page describes the API endpoints to add, edit and remove\ - \ groups. The endpoints are developed according to the SCIM 2.0 specification." - title: ODM API - version: default-released -tags: -- name: Groups -paths: - /api/v1/scim/Groups: - get: - description: |- - The endpoint returns a list of groups that the user has access to: where the user is a member of the group or if the user has the "Manage Groups" permission, then a list of all groups. - The list can be filtered by group attributes using the filter parameter. If no filtering parameters are passed, then all available groups are returned. If there are no groups in the response body, the endpoint returns 200 OK. - operationId: findGroups - parameters: - - description: |- - Filter by group attributes. The parameter name is case-sensitive, therefore parameters FILTER, fiLter, and other options are ignored. - Supported operators: -   eq - equal, the attribute and operator values must be identical for a match; -   Using other operators returns an error. - Groups can be filtered by displayName only. - Attribute names and attribute operators used in filters are case insensitive. - Examples of the request: -   filter=displayName eq "Curator". - in: query - name: filter - schema: - type: string - - description: "If excludedAttributes=members is specified in the request, groups\ - \ are returned without the members attribute. Other attributes are not supported\ - \ in excludedAttributes parameter and ignored in the request → all attributes\ - \ are returned in the response body." - in: query - name: excludedAttributes - schema: - type: string - - description: The 1-based index of the first result in the current set of list - results. - in: query - name: startIndex - schema: - format: int32 - type: integer - - description: The number of resources returned in a list response page. The - value by default is 100. - in: query - name: count - schema: - format: int32 - type: integer - responses: - "200": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/FilterGroupsResponse" - description: The request was successful. - "400": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: Incorrect syntax in the request. See the error message for - details. - "401": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: |- - 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": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of available groups - tags: - - Groups - post: - description: |- - The endpoint creates a new user group in ODM. The endpoint does not update an existing group. A user who calls the endpoint is added to the group automatically with the "Group admin" role. The "members" attribute in the request body must be empty, otherwise the endpoint returns an error. - The endpoint does not require any user permission. - The endpoint does not check the uniqueness of the group name. The user can create any number of groups with the same name. - If there are attributes in the request body that ODM does not support, then ODM ignores them. - operationId: createGroup - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/Group" - required: true - responses: - "201": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/GroupResponse" - description: The operation is successful. The response body contains the - representation of the newly created group. - "400": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: "The object cannot be created, the supplied data or metadata\ - \ are incorrect. See the error message for details." - "401": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: |- - 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). - "409": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: "The object cannot be created, data conflict. See the error\ - \ message for details." - "500": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: "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." - security: - - Genestack-API-Token: [] - - Access-token: [] - summary: Add a new user group - tags: - - Groups - x-codegen-request-body-name: body - /api/v1/scim/Groups/{id}: - delete: - description: |- - The endpoint deletes a group in ODM. The group can be deleted, even if it has members: admins and not admins. Users of this group are not deactivated. - Permissions to call the endpoint: -   - If the user does not have the "Manage groups" permission: -     * the user has "Group admin" role - the user can delete the group; -     * the user has "Group member" role - the group can not be deleted, an error is returned; -     * the user is not a member of the specified group - the group can not be deleted, an error is returned. -   - If the user has the "Manage groups" permission - the user can delete the group regardless of user’s membership in this group. - operationId: deleteGroup - parameters: - - description: "String, unique identifier of the group in ODM." - in: path - name: id - required: true - schema: - type: string - responses: - "204": - content: {} - description: The group has been successfully removed. No data is returned. - "400": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: The supplied group ID is invalid. - "401": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: |- - 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). - "403": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: Operation is not permitted. The "Group admin" role in the group - or the "Manage groups" permission is required. - "404": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: There are no groups with the specified id. - "500": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: "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." - security: - - Genestack-API-Token: [] - - Access-token: [] - summary: Delete a group - tags: - - Groups - get: - description: |- - The endpoint returns a not deleted group by id, where id is an internal group id in ODM. Access to the group is required: -   - If the user has the "Manage groups" permission, the endpoint returns not deleted group on the instance regardless of user’s membership in this group; -   - If the user does not have the "Manage groups" permission, the endpoint returns only groups in which the user is a member. Otherwise, 404 Not Found is returned. - operationId: getGroup - parameters: - - description: "String, unique identifier of the group in ODM." - in: path - name: id - required: true - schema: - type: string - - description: "If excludedAttributes=members is specified in the request, Groups\ - \ are returned without the members attribute. Other attributes are not supported\ - \ in excludedAttributes parameter and ignored in the request → all attributes\ - \ are returned in the response body." - in: query - name: excludedAttributes - schema: - type: string - responses: - "200": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/GroupResponse" - description: The request was successful. - "400": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: The supplied group ID is invalid. - "401": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: |- - 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": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: There are no available groups with the specified id. - "500": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a group by id - tags: - - Groups - patch: - description: |- - The endpoint updates one or several attributes of a specific group, where id is internal group id in ODM. Also the endpoints adds a new user to the group and removes users from the group. - - Supported operators in the request body: replace, add, remove. For details of the syntax of using these operators, we recommend that you refer to the SCIM 2.0 specification. - - The list of group attributes that can be edited: displayName, externalId, members. If the user tries to edit other attributes, e.g. id, an error is returned. If the user tries to edit attributes that are not supported in the ODM group scheme, this attribute is ignored. If the request body includes only attributes that are not supported by ODM, the endpoint returns 200 OK. - - A PATCH request, regardless of the number of operations, is treated as atomic. If a single operation encounters an error condition, the original user attributes are restored, and a failure status is returned. - - The endpoint requires access to the group as admin of the group: the user has the "Admin group" role in the group or the user has the "Manage groups" permission. - operationId: patchGroup - parameters: - - description: "String, unique identifier of the group in ODM." - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/GroupPatch" - required: true - responses: - "204": - content: {} - description: Group is successfully updated. No data is returned - "400": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: "The object cannot be updated, the supplied data or metadata\ - \ are incorrect. See the error message for details." - "401": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: |- - 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). - "403": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: Operation is not permitted. The "Group admin" role in the group - or the "Manage groups" permission is required. - "404": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: There are no groups with the specified id. - "500": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: "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." - security: - - Genestack-API-Token: [] - - Access-token: [] - summary: Update a group - tags: - - Groups - x-codegen-request-body-name: body -components: - schemas: - Group: - $ref: "./schemas/scim/Group.yaml" - Member: - $ref: "./schemas/scim/Member.yaml" - GroupPatch: - $ref: "./schemas/scim/GroupPatch.yaml" - PatchOperation: - $ref: "./schemas/scim/PatchOperation.yaml" - FilterGroupsResponse: - $ref: "./schemas/scim/FilterGroupsResponse.yaml" - GroupResponse: - $ref: "./schemas/scim/GroupResponse.yaml" - Meta: - $ref: "./schemas/scim/Meta.yaml" - SCIMErrorResponse: - $ref: "./schemas/scim/SCIMErrorResponse.yaml" - BaseErrorResponse: - $ref: "./schemas/scim/BaseErrorResponse.yaml" - ErrorMessage: - $ref: "./schemas/scim/ErrorMessage.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/scimUsers.yaml b/openapi/v1/scimUsers.yaml deleted file mode 100644 index bcfe92ff..00000000 --- a/openapi/v1/scimUsers.yaml +++ /dev/null @@ -1,376 +0,0 @@ -openapi: 3.1.0 -info: - description: "This swagger page describes the API endpoints to add, edit and remove\ - \ users. The endpoints are developed according to the SCIM 2.0 specification." - title: ODM API - version: default-released -tags: -- name: Users -paths: - /api/v1/scim/Users: - get: - description: "The endpoint returns a list of active users. The list can be filtered\ - \ by user attributes using the filter parameter. If no filtering parameters\ - \ are passed, then all users are returned. If there are no users in the response\ - \ body, the endpoint returns 200 OK. The \"Manage organization\" permission\ - \ is required." - operationId: findUsers - parameters: - - description: |- - Filter by user attributes. The parameter name is case-sensitive, therefore parameters FILTER, fiLter, and other options are ignored. - Supported operators: -   eq - equal, the attribute and operator values must be identical for a match; -   and - logical "and", the filter is only a match if both expressions evaluate to true; -   Using other operators returns an error. - Attribute names and attribute operators used in filters are case insensitive. - Examples of the request: -   filter=emails[type eq "work" and value eq "user@example.com"] - returns a user with login = user@example.com -   filter=userName eq "bjensen" -   filter=emails[type eq "work" and value eq "user@example.com"] and userName eq "bjensen". - in: query - name: filter - schema: - type: string - - description: The 1-based index of the first result in the current set of list - results. - in: query - name: startIndex - schema: - format: int32 - type: integer - - description: The number of resources returned in a list response page. The - value by default is 100. - in: query - name: count - schema: - format: int32 - type: integer - responses: - "200": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/FilterUsersResponse" - description: The request was successful. - "400": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: Incorrect syntax in the request. See the error message for - details. - "401": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: |- - 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). - "403": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: Operation is not permitted. The "Manage organization" permission - is required. - "500": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of all active users - tags: - - Users - post: - description: |- - The endpoint creates a new user in ODM or updates the existing user. A user can be updated by this endpoint if the user has the same login as in the request body. The "Manage organization" permission is required. The endpoint does not allow to specify the user's password and user permissions, these parameters can be set in the web application by a user with the "Manage organization" permission. - Only one email can be specified. - operationId: createUser - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/User" - required: true - responses: - "201": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/UserResponse" - description: The operation is successful. The response body contains the - representation of the newly created or updated user. - "400": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: "The object cannot be created, the supplied data or metadata\ - \ are incorrect. See the error message for details." - "401": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: |- - 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). - "403": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: Operation is not permitted. The "Manage organization" permission - is required. - "409": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: "The object cannot be created, data conflict. See the error\ - \ message for details." - "500": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: "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." - security: - - Genestack-API-Token: [] - - Access-token: [] - summary: Add a new user - tags: - - Users - x-codegen-request-body-name: body - /api/v1/scim/Users/{id}: - delete: - operationId: deleteUser - parameters: - - description: "String, unique identifier of the user in ODM." - in: path - name: id - required: true - schema: - type: string - responses: - "204": - content: {} - description: The user has been successfully deactivated. No data is returned. - "400": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: The supplied user ID is invalid. - "401": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: |- - 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). - "403": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: Operation is not permitted. The "Manage organization" permission - is required. - "404": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: There are no users with the specified id. - "500": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: "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." - security: - - Genestack-API-Token: [] - - Access-token: [] - summary: Deactivate a user - tags: - - Users - get: - description: "The endpoint returns an active user by id, where id is internal\ - \ user id in ODM. The \"Manage organization\" permission is required." - operationId: getUser - parameters: - - description: "String, unique identifier of the user in ODM." - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/UserResponse" - description: The request was successful. - "400": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: The supplied user ID is invalid. - "401": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: |- - 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). - "403": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: Operation is not permitted. The "Manage organization" permission - is required. - "404": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: There are no available users with the specified id. - "500": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a user by id - tags: - - Users - patch: - description: |- - The endpoint updates one or several attributes of a specific user, where id is internal user id in ODM. - - Supported operators in the request body: replace, add, remove. For details of the syntax of using these operators, we recommend that you refer to the SCIM 2.0 specification. - - The list of user attributes that can be edited: userName, externalId, displayName, active. If the user tries to edit other attributes, e.g. id, an error is returned. If the user tries to edit attributes that are not supported in the ODM user scheme, e.g. name name.familyName, this attribute is ignored. If the request body includes only attributes that are not supported by ODM, the endpoint returns 200 OK. - - A PATCH request, regardless of the number of operations, is treated as atomic. If a single operation encounters an error condition, the original user attributes are restored, and a failure status is returned. - - It is possible to update attributes of the deactivated users. - - The endpoint requires the "Manage organization" permission. - operationId: patchUser - parameters: - - description: "String, unique identifier of the user in ODM." - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UserPatch" - required: true - responses: - "200": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/UserResponse" - description: User is successfully updated. The response body contains the - representation of the updated user. - "400": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: "The object cannot be updated, the supplied data or metadata\ - \ are incorrect. See the error message for details." - "401": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: |- - 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). - "403": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: Operation is not permitted. The "Manage organization" permission - is required. - "404": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/SCIMErrorResponse" - description: There are no users with the specified id. - "500": - content: - application/scim+json: - schema: - $ref: "#/components/schemas/BaseErrorResponse" - description: "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." - security: - - Genestack-API-Token: [] - - Access-token: [] - summary: Update a user - tags: - - Users - x-codegen-request-body-name: body -components: - schemas: - User: - $ref: "./schemas/scim/User.yaml" - Email: - $ref: "./schemas/scim/Email.yaml" - UserPatch: - $ref: "./schemas/scim/UserPatch.yaml" - PatchOperation: - $ref: "./schemas/scim/PatchOperation.yaml" - FilterUsersResponse: - $ref: "./schemas/scim/FilterUsersResponse.yaml" - UserResponse: - $ref: "./schemas/scim/UserResponse.yaml" - Meta: - $ref: "./schemas/scim/Meta.yaml" - SCIMErrorResponse: - $ref: "./schemas/scim/SCIMErrorResponse.yaml" - BaseErrorResponse: - $ref: "./schemas/scim/BaseErrorResponse.yaml" - ErrorMessage: - $ref: "./schemas/scim/ErrorMessage.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/studyCurator.yaml b/openapi/v1/studyCurator.yaml deleted file mode 100644 index f881a10e..00000000 --- a/openapi/v1/studyCurator.yaml +++ /dev/null @@ -1,397 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the studyCurator APIs. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Study SPoT as Curator -paths: - /api/v1/as-curator/studies: - get: - description: |- - Retrieve study metadata objects by searching/listing study metadata. - - ## 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. - - ## 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 return all results iterate through pages using pageOffset values of `n * pageLimit` until the `resultsExhausted` response field is true. - - ## List operation - - This endpoint can be called with no `query` parameter. Doing so returns a list of all study objects. - operationId: searchStudiesAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: |+ - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - - - in: query - name: filter - schema: - type: string - - description: Search for study objects via a full-text query over all study - metadata fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching - dictionary terms are automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: |- - Attribute to sort by, with optional ascending/descending marker, of the form `"[+|-]"`. - - No marker or `"+"` indicates ascending sort, and `"-"` indicates descending sort. - - *Default:* sort by ID in ascending order. - in: query - name: sort - schema: - enum: - - id - - creation - - last_update - - name - - +id - - +creation - - +last_update - - +name - - -id - - -creation - - -last_update - - -name - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: List or search for study metadata objects - tags: - - Study SPoT as Curator - /api/v1/as-curator/studies/{id}: - get: - operationId: getStudyAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Study" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single study object by ID (accession) - tags: - - Study SPoT as Curator - patch: - description: |- - ## 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. - operationId: updateStudyAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/MetadataContent" - description: "Metadata in the form of `{key: value, key2: value2, ...}`" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Study" - description: "The objects was successfully created. The returned value is\ - \ the updated object, along with any warnings." - "400": - content: {} - description: The supplied object ID or metadata is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Update a study object - tags: - - Study SPoT as Curator - x-codegen-request-body-name: body - /api/v1/as-curator/studies/{id}/versions: - get: - operationId: getStudyVersionsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of object versions by ID - tags: - - Study SPoT as Curator - /api/v1/as-curator/studies/{id}/versions/{version}: - get: - operationId: getStudyByVersionAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Study" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single study object by ID (accession) - tags: - - Study SPoT as Curator -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - MetadataContent: - $ref: "./schemas/common/MetadataContent.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - Study: - $ref: "./schemas/study/Study.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/studyUser.yaml b/openapi/v1/studyUser.yaml deleted file mode 100644 index ca54d746..00000000 --- a/openapi/v1/studyUser.yaml +++ /dev/null @@ -1,340 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the studyUser API endpoints for ODM. These are typically used to find and retrieve study metadata. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Study SPoT as User -paths: - /api/v1/as-user/studies: - get: - description: |- - Retrieve study metadata objects by searching/listing study metadata. - - ## 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. - - ## 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 return all results iterate through pages using pageOffset values of `n * pageLimit` until the `resultsExhausted` response field is true. - - ## List operation - - This endpoint can be called with no `query` parameter. Doing so returns a list of all study objects. - operationId: searchStudiesAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: |+ - Filter by study metadata (key-value metadata pair(s)). E.g. `"Study Source"=ArrayExpress` - - - in: query - name: filter - schema: - type: string - - description: Search for study objects via a full-text query over all study - metadata fields. E.g. `"RNA-Seq of human dendritic cells"`. Queries matching - dictionary terms are automatically expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: |- - Attribute to sort by, with optional ascending/descending marker, of the form `"[+|-]"`. - - No marker or `"+"` indicates ascending sort, and `"-"` indicates descending sort. - - *Default:* sort by ID in ascending order. - in: query - name: sort - schema: - enum: - - id - - creation - - last_update - - name - - +id - - +creation - - +last_update - - +name - - -id - - -creation - - -last_update - - -name - type: string - - description: Maximum number of results to return. This value must be between - 0 and 2000 (inclusive). - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - text/tab-separated-values: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: List or search for study metadata objects - tags: - - Study SPoT as User - /api/v1/as-user/studies/{id}: - get: - operationId: getStudyAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Study" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single study object by ID (accession) - tags: - - Study SPoT as User - /api/v1/as-user/studies/{id}/versions: - get: - operationId: getStudyVersionsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of object versions by ID - tags: - - Study SPoT as User - /api/v1/as-user/studies/{id}/versions/{version}: - get: - operationId: getStudyByVersionAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Study" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single study object by ID (accession) - tags: - - Study SPoT as User -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - Study: - $ref: "./schemas/study/Study.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/tasks.yaml b/openapi/v1/tasks.yaml deleted file mode 100644 index 30f42ac3..00000000 --- a/openapi/v1/tasks.yaml +++ /dev/null @@ -1,102 +0,0 @@ -openapi: 3.1.0 -info: - description: | - These API endpoints serve to work with asynchronous tasks. - title: Tasks API - version: default-released -tags: -- name: Tasks API -paths: - /api/v1/tasks/publish-versions: - post: - description: This endpoint publishes all information from staging and creates - new metadata versions for each study/associated objects with unpublished changes.Only - curators with the ACCESS_ALL_DATA permission can use this method. - operationId: publishAllStudies - parameters: - - description: Supply text to name this version. If not supplied the version - name is set to “Auto-published by API call” - in: query - name: versionMessage - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/TaskInfo" - description: Task information. - "401": - content: {} - description: |- - 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). - "403": - content: {} - description: Forbidden - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Asynchronous task that publishes all pending versions across all studies - in the instance. - tags: - - Tasks API - /api/v1/tasks/{id}: - get: - description: Supply the accession (id) of an ODM task to retrieve metadata about - that task. - operationId: getTaskInfo - parameters: - - description: Accession of the task. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/TaskInfo" - description: Task information. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve information about any ODM task. - tags: - - Tasks API -components: - schemas: - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - TaskInfo: - $ref: "./schemas/tasks/TaskInfo.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/variantCurator.yaml b/openapi/v1/variantCurator.yaml deleted file mode 100644 index 59340c20..00000000 --- a/openapi/v1/variantCurator.yaml +++ /dev/null @@ -1,716 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the variantCurator APIs. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Variant SPoT as Curator -paths: - /api/v1/as-curator/variants: - get: - description: |+ - Retrieve all variant 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. - - operationId: getAllVariantsAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by variant metadata (key-value metadata pair(s)). E.g. - `"Variant Source"=dbSNP`. - in: query - name: filter - schema: - type: string - - description: Search for variant objects via a full text query over all variant - metadata. E.g. `dbSNP`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Specify a chromosome interval to find genes between these positions. E.g. `2:233364596-233385916`. Multiple intervals can be provided as a list. - in: query - name: variantRegion - schema: - items: - type: string - example: 2:233364596-233385916 - type: array - style: form - - description: Specify the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. By providing the gene name, such as `TP53`, variants located within the same genomic region as the specified gene will be retrieved. Multiple genes can be provided as a list. - in: query - name: variantFeature - schema: - items: - type: string - example: ENSG00000227232 - type: array - style: form - - description: One or more specific variation IDs can be specified. E.g. `rs838705` - in: query - name: variantId - schema: - items: - type: string - example: rs334 - type: array - style: form - - description: |- - The parameter allows to retrieve gene variants based on the filters defined in the vcf file. If not specified, all variants are returned. - - 1. pass - return gene variants which passed all filters - 2. noPass - return gene variants which failed one or more filters - in: query - name: variantFilter - schema: - enum: - - pass - - noPass - type: string - - description: |- - Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(info.DB)`. - Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. - Due to the limits of precision in floating point numbers, we use a small range of 0.0000001 to identify close matches. - This means any differences smaller than that won't be detected. For more precise results, please use range queries. - Combine multiple filters for `INFO` fields using `AND` (`&&`), `OR` (`||`) logical operators and parentheses - in: query - name: variantInfo - schema: - type: string - - description: Autogenerated numeric ID that corresponds to a column and is used to link data from the same run to a sample. Multiple values can be provided as a list. - in: query - name: runFilter - schema: - $ref: "#/components/schemas/RunFilter" - style: form - - description: Column name from the file to which all data for a sample is related. Multiple values can be provided as a list to retrieve data from multiple columns. - explode: true - in: query - name: runSourceFilter - schema: - items: - type: string - example: Run Source ID - type: array - style: form - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/VariantResponse" - description: Retrieved variant data. - "400": - content: {} - description: Variant data cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve multiple variant data and metadata objects - tags: - - Variant SPoT as Curator - /api/v1/as-curator/variants/group: - get: - description: |- - 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 return all results iterate through pages using pageOffset values of `n*pageLimit` until the `resultsExhausted` response field is true. - - ## List operation - - This endpoint can be called with no `query` parameter. Doing so returns a list of all data objects. - operationId: searchGroupsAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by variant metadata (key-value metadata pair(s)). E.g. - `"Variant Source"=dbSNP`. - in: query - name: filter - schema: - type: string - - description: Search for variant objects via a full text query over all variant - metadata. E.g. `dbSNP`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve groups that match a query - tags: - - Variant SPoT as Curator - /api/v1/as-curator/variants/group/by/run/{id}: - get: - operationId: getVariantGroupByRunAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (runId) of the run. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/VariantMetadataWithId" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single group object by run ID (runId) - tags: - - Variant SPoT as Curator - /api/v1/as-curator/variants/group/{id}: - get: - operationId: getVariantGroupAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Variant group identifier (groupId). - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/VariantMetadataWithId" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single variant group by ID (groupId) - tags: - - Variant SPoT as Curator - /api/v1/as-curator/variants/runs/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: searchVariantRunsAsCurator - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve run objects related to the given group - tags: - - Variant SPoT as Curator - /api/v1/as-curator/variants/{id}: - get: - operationId: getVariantAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Variant object unique identifier (itemId). - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/VariantItem" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single variant object by ID (itemId) - tags: - - Variant SPoT as Curator - /api/v1/as-curator/variants/{id}/versions: - get: - operationId: getVariantVersionsAsCurator - parameters: - - description: Variant object run ID (runId). - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of variant object versions by run ID (runId) - tags: - - Variant SPoT as Curator - /api/v1/as-curator/variants/{id}/versions/{version}: - get: - operationId: getVariantByVersionAsCurator - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Variant object run ID (runId). - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the variant object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SignalRun" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single variant object by run ID and its version - tags: - - Variant SPoT as Curator -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - MetadataContent: - $ref: "./schemas/common/MetadataContent.yaml" - VariantMetadataWithId: - $ref: "./schemas/variant/VariantMetadataWithId.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - RunFilter: - $ref: "./schemas/common/RunFilter.yaml" - RunsResponse: - $ref: "./schemas/common/RunsResponse.yaml" - SignalRun: - $ref: "./schemas/common/SignalRun.yaml" - VariantItem: - $ref: "./schemas/variant/VariantItem.yaml" - VariantResponse: - $ref: "./schemas/variant/VariantResponse.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/openapi/v1/variantUser.yaml b/openapi/v1/variantUser.yaml deleted file mode 100644 index 718a2d47..00000000 --- a/openapi/v1/variantUser.yaml +++ /dev/null @@ -1,715 +0,0 @@ -openapi: 3.1.0 -info: - description: |- - This swagger page describes the variantUser API endpoints for ODM. These are typically used to find and retrieve variant data and metadata. - - Before carrying out any API calls you will need an API token. API tokens can be obtained under your profile within the Genestack software. - - To try out calls in this swagger page: - - 1. Click the 'Authorize' button below to enter your API token - 2. Scroll to the 'Parameters' section for the method you wish to try out and click the 'Try it out' button - 3. Enter parameter values that you wish to try - 4. Scroll to the bottom of the Parameters section and click the 'Execute' bar that appears - - - The server response will be in the section that follows. - title: ODM API - version: default-released -tags: -- name: Variant SPoT as User -paths: - /api/v1/as-user/variants: - get: - description: |+ - Retrieve all variant 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. - - operationId: getAllVariantsAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by variant metadata (key-value metadata pair(s)). E.g. - `"Variant Source"=dbSNP`. - in: query - name: filter - schema: - type: string - - description: Search for variant objects via a full text query over all variant - metadata. E.g. `dbSNP`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: Specify a chromosome interval to find genes between these positions. E.g. `2:233364596-233385916`. Multiple intervals can be provided as a list. - in: query - name: variantRegion - schema: - items: - type: string - example: 2:233364596-233385916 - type: array - style: form - - description: Specify the name of the reference gene associated with a specific location in the reference genome which corresponds to the VCF file (variant group) from which the variant information is derived. By providing the gene name, such as `TP53`, variants located within the same genomic region as the specified gene will be retrieved. Multiple genes can be provided as a list. - in: query - name: variantFeature - schema: - items: - type: string - example: ENSG00000227232 - type: array - style: form - - description: One or more specific variation IDs can be specified. E.g. `rs838705` - in: query - name: variantId - schema: - items: - type: string - example: rs334 - type: array - style: form - - description: |- - The parameter allows to retrieve gene variants based on the filters defined in the vcf file. If not specified, all variants are returned. - - 1. pass - return gene variants which passed all filters - 2. noPass - return gene variants which failed one or more filters - in: query - name: variantFilter - schema: - enum: - - pass - - noPass - type: string - - description: |- - Filter by vcf `INFO` fields. E.g. to filter all variants annotated in dbSNP add `exists(info.DB)`. - Use `!exists(INFO.KEY)` to exclude variants having the key from the search results. - Provide `info.key=value` pair to search for an exact match or `info.key!=value` to exclude it from the search. - Due to the limits of precision in floating point numbers, we use a small range of 0.0000001 to identify close matches. - This means any differences smaller than that won't be detected. For more precise results, please use range queries. - Combine multiple filters for `INFO` fields using `AND` (`&&`), `OR` (`||`) logical operators and parentheses - in: query - name: variantInfo - schema: - type: string - - description: Autogenerated numeric ID that corresponds to a column and is used to link data from the same run to a sample. Multiple values can be provided as a list. - in: query - name: runFilter - schema: - $ref: "#/components/schemas/RunFilter" - style: form - - description: Column name from the file to which all data for a sample is related. Multiple values can be provided as a list to retrieve data from multiple columns. - explode: true - in: query - name: runSourceFilter - schema: - items: - type: string - example: Run Source ID - type: array - style: form - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - - description: The page tag to resume results from (see paging above). - in: query - name: cursor - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/VariantResponse" - description: Retrieved variant data. - "400": - content: {} - description: Variant data cannot be retrieved. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve multiple variant data and metadata objects - tags: - - Variant SPoT as User - /api/v1/as-user/variants/group: - get: - description: |- - 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 return all results iterate through pages using pageOffset values of `n*pageLimit` until the `resultsExhausted` response field is true. - - ## List operation - - This endpoint can be called with no `query` parameter. Doing so returns a list of all data objects. - operationId: searchVariantGroupsAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Filter by variant metadata (key-value metadata pair(s)). E.g. - `"Variant Source"=dbSNP`. - in: query - name: filter - schema: - type: string - - description: Search for variant objects via a full text query over all variant - metadata. E.g. `dbSNP`. Queries matching dictionary terms are automatically - expanded to include synonyms. - in: query - name: query - schema: - type: string - - description: |- - 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. - in: query - name: searchSpecificTerms - schema: - type: boolean - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - - description: |- - 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` or ``:`v` or ``:`` - in: query - name: useVersions - schema: - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is a list of - objects. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve groups that match a query - tags: - - Variant SPoT as User - /api/v1/as-user/variants/group/by/run/{id}: - get: - operationId: getVariantGroupByRunAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Unique identifier (runId) of the run. - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/VariantMetadataWithId" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single group object by run ID (runId) - tags: - - Variant SPoT as User - /api/v1/as-user/variants/group/{id}: - get: - operationId: getVariantGroupAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Variant group identifier (groupId). - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/VariantMetadataWithId" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single variant group by ID (groupId) - tags: - - Variant SPoT as User - /api/v1/as-user/variants/runs/by/group/{id}: - get: - description: |+ - ## 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. - - operationId: searchVariantRunsAsUser - parameters: - - description: Unique identifier (accession) of the object. - in: path - name: id - required: true - schema: - type: string - - description: "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." - in: query - name: pageOffset - schema: - format: int32 - type: integer - - description: Maximum number of results to return per page (see Paging above). - This value must be between 0 and 2000 (inclusive). The default is 2000. - in: query - name: pageLimit - schema: - format: int32 - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListResponse" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve run objects related to the given group - tags: - - Variant SPoT as User - /api/v1/as-user/variants/{id}: - get: - operationId: getVariantAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Variant object unique identifier (itemId). - in: path - name: id - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/VariantItem" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single variant object by ID (itemId) - tags: - - Variant SPoT as User - /api/v1/as-user/variants/{id}/versions: - get: - operationId: getVariantVersionsAsUser - parameters: - - description: Variant object run ID (runId). - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: "#/components/schemas/CommitInfo" - type: array - description: The request was successful. The returned value is the list - of object versions. - "401": - content: {} - description: |- - 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": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a list of variant object versions by run ID (runId) - tags: - - Variant SPoT as User - /api/v1/as-user/variants/{id}/versions/{version}: - get: - operationId: getVariantByVersionAsUser - parameters: - - description: Supply this parameter with the value `term_id` as part of the - query to return extended information including IDs for values and dictionaries. - in: query - name: responseFormat - schema: - $ref: "#/components/schemas/ResponseFormat" - - description: Variant object run ID (runId). - in: path - name: id - required: true - schema: - type: string - - description: Unique version of the variant object. - in: path - name: version - required: true - schema: - type: string - - description: |- - 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. - in: query - name: returnedMetadataFields - schema: - enum: - - minimal_data - - extended_data_included - - original_data_included - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SignalRun" - description: The request was successful. The returned value is the object. - "400": - content: {} - description: The supplied object ID is invalid. - "401": - content: {} - description: |- - 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": - content: {} - description: No object exists with the given ID. - "500": - content: {} - description: "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." - security: - - Access-token: [] - - Genestack-API-Token: [] - summary: Retrieve a single variant object by run ID and its version - tags: - - Variant SPoT as User -components: - schemas: - CommitInfo: - $ref: "./schemas/common/CommitInfo.yaml" - IntegrationHelper: - $ref: "./schemas/common/IntegrationHelper.yaml" - ListResponse: - $ref: "./schemas/common/ListResponse.yaml" - MetaResponse: - $ref: "./schemas/common/MetaResponse.yaml" - MetadataContent: - $ref: "./schemas/common/MetadataContent.yaml" - VariantMetadataWithId: - $ref: "./schemas/variant/VariantMetadataWithId.yaml" - PaginationInfo: - $ref: "./schemas/common/PaginationInfo.yaml" - ResponseFormat: - $ref: "./schemas/common/ResponseFormat.yaml" - RunFilter: - $ref: "./schemas/common/RunFilter.yaml" - SignalRun: - $ref: "./schemas/common/SignalRun.yaml" - VariantItem: - $ref: "./schemas/variant/VariantItem.yaml" - VariantResponse: - $ref: "./schemas/variant/VariantResponse.yaml" - securitySchemes: - Access-token: - in: header - name: Authorization - type: apiKey - Genestack-API-Token: - in: header - name: Genestack-API-Token - type: apiKey diff --git a/requirements.R b/requirements.R index dce1d7df..d9c6ff1f 100644 --- a/requirements.R +++ b/requirements.R @@ -1,15 +1,18 @@ -library(parallel) -Ncpus <- detectCores() +# Set CRAN mirror +options(repos = c(CRAN = "https://cran.rstudio.com/")) -publicRepo <- "https://packagemanager.rstudio.com/all/__linux__/jammy/latest" -options("repos" = c(PUBLIC = publicRepo)) +# Set number of cores for parallel installation +Ncpus <- parallel::detectCores() -install.packages("remotes", Ncpus = Ncpus) +# Install remotes if not already installed +if (!requireNamespace("remotes", quietly = TRUE)) { + install.packages("remotes", Ncpus = Ncpus) +} -# Install public packages -remotes::install_version("jsonlite", version = "1.8.8", Ncpus = Ncpus) -remotes::install_version("curl", version = "5.2.0", Ncpus = Ncpus) +# Install packages with specific versions using remotes +remotes::install_version("jsonlite", version = "2.0.0", Ncpus = Ncpus) +remotes::install_version("curl", version = "7.0.0", Ncpus = Ncpus) remotes::install_version("httr", version = "1.4.7", Ncpus = Ncpus) remotes::install_version("base64enc", version = "0.1-3", Ncpus = Ncpus) remotes::install_version("stringr", version = "1.5.1", Ncpus = Ncpus) -remotes::install_version("testthat", version = "3.2.1", Ncpus = Ncpus) +remotes::install_version("testthat", version = "3.2.3", Ncpus = Ncpus)