Skip to content

BETAAnalyticsOmicsQueriesAsCuratorApi

All URIs are relative to http://localhost

Method HTTP request Description
CellRatioAsCurator POST /api/v1/as-curator/omics/cells/analytics/cell-ratio [BETA] Compute cell ratio statistics across groups or metadata attributes in single-cell data.
DifferentialExpressionAsCurator POST /api/v1/as-curator/omics/cells/analytics/differential-expression [BETA] Perform differential gene expression analytics between case and control cell groups
GeneSummaryAsCurator POST /api/v1/as-curator/omics/cells/analytics/gene-summary [BETA] Compute and retrieve descriptive statistics and visual summaries for single-cell data.

CellRatioAsCurator

CRResponse CellRatioAsCurator(cr_request)

[BETA] Compute cell ratio statistics across groups or metadata attributes in single-cell data.

This endpoint calculates cell ratio statistics based on single-cell metadata. It allows quantifying the proportion of cells that meet specific criteria (countSelected, e.g. expression threshold, cell type, or cluster) relative to a defined reference group or the total cell population (countAvailable) defined by study, samples, library, or preparation metadata. countAvailable parameter returns all cells specified in study, sample, library, or preparation queries and filters. In case exQuery is selected, only cells linked to cell expression will be counted in countSelected parameter. The endpoint supports filtering by study, sample, library, or preparation metadata and filtering by cell expression or cell metadata fields. Request and response parameters are subject to change as this feature is in BETA.

Example

library(odmApi)

# [BETA] Compute cell ratio statistics across groups or metadata attributes in single-cell data.
#
# prepare function argument(s)
var_cr_request <- CRRequest$new(DERequest_caseGroup$new("studyFilter_example", "studyQuery_example", "sampleFilter_example", "sampleQuery_example", "libraryFilter_example", "libraryQuery_example", "preparationFilter_example", "preparationQuery_example", "cellQuery_example", "searchSpecificTerms_example"), "exQuery_example") # CRRequest | 

api_instance <- BETAAnalyticsOmicsQueriesAsCuratorApi$new()
# Configure API key authorization: Access-token
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure API key authorization: Genestack-API-Token
# api_instance$api_client$api_keys["Genestack-API-Token"] <- Sys.getenv("API_KEY")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$CellRatioAsCurator(var_cr_requestdata_file = "result.txt")
result <- api_instance$CellRatioAsCurator(var_cr_request)
dput(result)

Parameters

Name Type Description Notes
cr_request CRRequest

Return type

CRResponse

Authorization

Access-token, Genestack-API-Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Cell ratio result -
400 Entities cannot be retrieved. -
401 User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI Profile page). -
500 An internal server error occurred. This indicates an unexpected failure in the Genestack system, please file a bug report to support@genestack.com, including the error details. -

DifferentialExpressionAsCurator

DEResponse DifferentialExpressionAsCurator(de_request)

[BETA] Perform differential gene expression analytics between case and control cell groups

This endpoint computes differential gene expression between two specified cell groups (case vs control) within single-cell data. Consult /omics search endpoints to find description of parameters within the cell groups. The response includes per-gene metrics that characterize expression differences between the two groups: - Gene name - gene identifier. - Case cell count - number of cells expressing the gene in the case group. - Control cell count - number of cells expressing the gene in the control group. - Average expression (case) - mean expression level across case cells. - Average expression (control) - mean expression level across control cells. - Expression difference - numerical difference between average expressions. - Fold change - ratio of average expressions between case and control groups. - U statistic - Mann–Whitney U test statistic that measures the difference between Case and Control groups. - p-value - the probability of observing results as extreme as (or more extreme than) those obtained, assuming that the null hypothesis is true. Results are sorted by absolute value of fold change in descending order, allowing easy identification of the most differentially expressed genes. Request and response parameters are subject to change as this feature is in BETA.

Example

library(odmApi)

# [BETA] Perform differential gene expression analytics between case and control cell groups
#
# prepare function argument(s)
var_de_request <- DERequest$new(DERequest_caseGroup$new("studyFilter_example", "studyQuery_example", "sampleFilter_example", "sampleQuery_example", "libraryFilter_example", "libraryQuery_example", "preparationFilter_example", "preparationQuery_example", "cellQuery_example", "searchSpecificTerms_example"), DERequest_caseGroup$new("studyFilter_example", "studyQuery_example", "sampleFilter_example", "sampleQuery_example", "libraryFilter_example", "libraryQuery_example", "preparationFilter_example", "preparationQuery_example", "cellQuery_example", "searchSpecificTerms_example"), "exQuery_example", 123, 123) # DERequest | 

api_instance <- BETAAnalyticsOmicsQueriesAsCuratorApi$new()
# Configure API key authorization: Access-token
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure API key authorization: Genestack-API-Token
# api_instance$api_client$api_keys["Genestack-API-Token"] <- Sys.getenv("API_KEY")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$DifferentialExpressionAsCurator(var_de_requestdata_file = "result.txt")
result <- api_instance$DifferentialExpressionAsCurator(var_de_request)
dput(result)

Parameters

Name Type Description Notes
de_request DERequest

Return type

DEResponse

Authorization

Access-token, Genestack-API-Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Differential expression result -
400 Entities cannot be retrieved. -
401 User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI Profile page). -
500 An internal server error occurred. This indicates an unexpected failure in the Genestack system, please file a bug report to support@genestack.com, including the error details. -

GeneSummaryAsCurator

GSResponse GeneSummaryAsCurator(gs_request)

[BETA] Compute and retrieve descriptive statistics and visual summaries for single-cell data.

This endpoint provides descriptive statistical metrics for gene expression across single-cell datasets. It aggregates and summarizes expression data for each gene to help assess variability, distribution, and intensity of expression within the population of cells. The computed metrics include: - Gene name - gene identifier. - Cell count - number of cells with measurable expression for each gene. - Mean expression value - Median expression value - Quantiles - configurable expression percentiles. - Histogram (density) - binned distribution of expression levels for visualization. - Standard deviation - dispersion of expression values. - Minimum and maximum values - range of expression across cells. Results are sorted by gene name. Request and response parameters are subject to change as this feature is in BETA.

Example

library(odmApi)

# [BETA] Compute and retrieve descriptive statistics and visual summaries for single-cell data.
#
# prepare function argument(s)
var_gs_request <- GSRequest$new(c("geneNames_example"), DERequest_caseGroup$new("studyFilter_example", "studyQuery_example", "sampleFilter_example", "sampleQuery_example", "libraryFilter_example", "libraryQuery_example", "preparationFilter_example", "preparationQuery_example", "cellQuery_example", "searchSpecificTerms_example"), "exQuery_example") # GSRequest | 

api_instance <- BETAAnalyticsOmicsQueriesAsCuratorApi$new()
# Configure API key authorization: Access-token
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure API key authorization: Genestack-API-Token
# api_instance$api_client$api_keys["Genestack-API-Token"] <- Sys.getenv("API_KEY")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$GeneSummaryAsCurator(var_gs_requestdata_file = "result.txt")
result <- api_instance$GeneSummaryAsCurator(var_gs_request)
dput(result)

Parameters

Name Type Description Notes
gs_request GSRequest

Return type

GSResponse

Authorization

Access-token, Genestack-API-Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Gene summary result -
400 Invalid data in the request. See the error message for details. -
401 User is not authenticated. Please supply a valid Access Token in the `Authorization` HTTP header (e.g. Authorization: bearer [token]) or Genestack API token in the `Genestack-API-Token` header (this token may be obtained from the Genestack UI Profile page). -
500 An internal server error occurred. This indicates an unexpected failure in the Genestack system, please file a bug report to support@genestack.com, including the error details.\" -