-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from omics-datascience/swagger
Swagger
- Loading branch information
Showing
17 changed files
with
444 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
tags: | ||
- Accionable Genes and Drugs | ||
summary: "Cancer related drugs" | ||
description: "Gets a list of drugs from the PharmGKB database related to a list of genes." | ||
operationId: "Cancer related drugs" | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
gene_ids: | ||
type: array | ||
description: "List of gene identifiers." | ||
items: | ||
type: string | ||
example: ["JAK2", "EGFR"] | ||
responses: | ||
200: | ||
description: "List of all information related to drugs and genes." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
tags: | ||
- Accionable Genes and Drugs | ||
summary: "Drugs that regulate a gene expression." | ||
description: "Service that takes gene symbol and returns a link to https://go.drugbank.com with all the drugs that upregulate and down regulate its expresion. Useful for embeding." | ||
operationId: "Drugs that regulate genetic expression." | ||
parameters: | ||
- in: path | ||
name: gene_id | ||
description: "Identifier of the gene." | ||
required: true | ||
schema: | ||
type: string | ||
example: "TP53" | ||
responses: | ||
200: | ||
description: "URL that points to the information on the DrugBank website." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
tags: | ||
- Gene Expression | ||
summary: "Gene expression" | ||
description: "Gets gene expression in healthy tissue." | ||
operationId: "Gene expression in healthy tissues" | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
gene_ids: | ||
type: array | ||
description: "List of gene identifiers." | ||
items: | ||
type: string | ||
example: ["BRCA1", "BRCA2"] | ||
tissue: | ||
type: string | ||
enum: | ||
- Adipose Tissue | ||
- Adrenal Gland | ||
- Bladder | ||
- Blood | ||
- Blood Vessel | ||
- Brain | ||
- Breast | ||
- Cervix Uteri | ||
- Colon | ||
- Esophagus | ||
- Fallopian Tube | ||
- Heart | ||
- Kidney | ||
- Liver | ||
- Lung | ||
- Muscle | ||
- Nerve | ||
- Ovary | ||
- Pancreas | ||
- Pituitary | ||
- Prostate | ||
- Salivary Gland | ||
- Skin | ||
- Small Intestine | ||
- Spleen | ||
- Stomach | ||
- Testis | ||
- Thyroid | ||
- Uterus | ||
- Vagina | ||
example: "Skin" | ||
type: | ||
type: string | ||
enum: | ||
- json | ||
- gzip | ||
example: "gzip" | ||
responses: | ||
200: | ||
description: "Expression values of each gene according to the GTEx database." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
tags: | ||
- Gene Nomenclature | ||
summary: "Gene symbol finder" | ||
description: "Service that takes a string of any length and returns a list of genes that contain that search criteria." | ||
operationId: "Gene symbol finder" | ||
parameters: | ||
- in: query | ||
name: query | ||
description: "Gene search string." | ||
required: true | ||
schema: | ||
type: string | ||
example: "TP" | ||
- in: query | ||
name: limit | ||
description: "Limit the number of results returned (Default 50)." | ||
required: false | ||
schema: | ||
type: integer | ||
example: 10 | ||
responses: | ||
200: | ||
description: "List of genes containing that search criterion in bioinformatics databases." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
tags: | ||
- Gene Nomenclature | ||
summary: "Gene symbol validator" | ||
description: "Searches the identifier of a list of genes of different genomics databases and returns the approved symbols according to HGNC nomenclature." | ||
operationId: "Gene symbol" | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
gene_ids: | ||
type: array | ||
description: "List of gene identifiers." | ||
items: | ||
type: string | ||
example: ["FANCS", "BRCC1"] | ||
responses: | ||
200: | ||
description: "HGNC approved gene symbols." |
Oops, something went wrong.