You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEPLOYING.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,6 @@ Below are the steps to perform a production deployment of BioAPI.
32
32
33
33
BioAPI uses three genomic databases for its operation. These databases must be loaded in MongoDB. You can import all the databases in two ways:
34
34
35
-
36
35
### Import using public DB backup (recommended)
37
36
38
37
To import all databases in MongoDB:
@@ -67,7 +66,6 @@ To import all databases in MongoDB:
67
66
4. Stop services with the command `docker compose -f docker-compose.dev.yml down`
68
67
5. Roll up the changes in the `docker-compose.dev.yml` file to remove the backup file from the `volumes` section. Restart all the services again.
69
68
70
-
71
69
### Manually import the different databases
72
70
73
71
Alternatively (but **not recommended** due to high computational demands) you can run a separate ETL process to download from source, process and import the databases into MongoDB.
@@ -101,6 +99,7 @@ docker-compose up -d
101
99
```
102
100
103
101
By default, BioAPI runs on `localhost:8000`.
102
+
Test BioAPI with Swagger on `localhost:8000/apidocs`
104
103
105
104
If you want to stop all services, you can execute:
# @doc(description='Gene Groups', tags=['Genes'], params={"gene_id": {"description": "Identifier of the gene for any database", "type": "string", "required": True}})
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."
5
+
operationId: "Drugs that regulate genetic expression."
6
+
parameters:
7
+
- in: path
8
+
name: gene_id
9
+
description: "Identifier of the gene."
10
+
required: true
11
+
schema:
12
+
type: string
13
+
example: "TP53"
14
+
responses:
15
+
200:
16
+
description: "URL that points to the information on the DrugBank website."
Copy file name to clipboardExpand all lines: bio-api/swagger_specs/genesOfItsGroup.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
tags:
2
-
- Genes information
2
+
- Genes Information
3
3
summary: "Gene Groups"
4
4
description: "Gets the identifier of a gene, validates it and then returns the group of genes to which it belongs according to HGNC, and all the other genes that belong to the same group."
0 commit comments