Skip to content

Commit b5cdf3a

Browse files
committed
Enabling BioBB REST API
1 parent 002b133 commit b5cdf3a

File tree

5 files changed

+43
-43
lines changed

5 files changed

+43
-43
lines changed

biobb_godmd/docs/source/command_line.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ godmd_prep -h
3434
Syntax: input_argument (datatype) : Definition
3535

3636
Config input / output arguments for this building block:
37-
* **input_pdb_orig_path** (*string*): Input PDB file to be used as origin in the conformational transition. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/1ake_A.pdb). Accepted formats: PDB
38-
* **input_pdb_target_path** (*string*): Input PDB file to be used as target in the conformational transition. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/4ake_A.pdb). Accepted formats: PDB
39-
* **output_aln_orig_path** (*string*): Output GOdMD alignment file corresponding to the origin structure of the conformational transition. File type: output. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/1ake_A.aln). Accepted formats: ALN, TXT
40-
* **output_aln_target_path** (*string*): Output GOdMD alignment file corresponding to the target structure of the conformational transition. File type: output. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/4ake_A.aln). Accepted formats: ALN, TXT
37+
* **input_pdb_orig_path** (*string*): Input PDB file to be used as origin in the conformational transition. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/1ake_A.pdb). Accepted formats: PDB
38+
* **input_pdb_target_path** (*string*): Input PDB file to be used as target in the conformational transition. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/4ake_A.pdb). Accepted formats: PDB
39+
* **output_aln_orig_path** (*string*): Output GOdMD alignment file corresponding to the origin structure of the conformational transition. File type: output. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/1ake_A.aln). Accepted formats: ALN, TXT
40+
* **output_aln_target_path** (*string*): Output GOdMD alignment file corresponding to the target structure of the conformational transition. File type: output. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/4ake_A.aln). Accepted formats: ALN, TXT
4141
### Config
4242
Syntax: input_parameter (datatype) - (default_value) Definition
4343

@@ -50,7 +50,7 @@ Config parameters for this building block:
5050
* **restart** (*boolean*): (False) Do not execute if output files exist..
5151
* **sandbox_path** (*string*): (./) Parent path to the sandbox directory..
5252
### YAML
53-
#### [Common config file](https://github.com/bioexcel/biobb_godmd/blob/master/biobb_godmd/test/data/config/config_godmd_prep.yml)
53+
#### [Common config file](https://github.com/bioexcel/biobb_godmd/blob/main/biobb_godmd/test/data/config/config_godmd_prep.yml)
5454
```python
5555
properties:
5656
gapextend: '2'
@@ -62,7 +62,7 @@ properties:
6262
godmd_prep --config config_godmd_prep.yml --input_pdb_orig_path 1ake_A.pdb --input_pdb_target_path 4ake_A.pdb --output_aln_orig_path 1ake_A.aln --output_aln_target_path 4ake_A.aln
6363
```
6464
### JSON
65-
#### [Common config file](https://github.com/bioexcel/biobb_godmd/blob/master/biobb_godmd/test/data/config/config_godmd_prep.json)
65+
#### [Common config file](https://github.com/bioexcel/biobb_godmd/blob/main/biobb_godmd/test/data/config/config_godmd_prep.json)
6666
```python
6767
{
6868
"properties": {
@@ -114,15 +114,15 @@ godmd_run -h
114114
Syntax: input_argument (datatype) : Definition
115115

116116
Config input / output arguments for this building block:
117-
* **input_pdb_orig_path** (*string*): Input PDB file to be used as origin in the conformational transition. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/1ake_A.pdb). Accepted formats: PDB
118-
* **input_pdb_target_path** (*string*): Input PDB file to be used as target in the conformational transition. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/4ake_A.pdb). Accepted formats: PDB
119-
* **input_aln_orig_path** (*string*): Input GOdMD alignment file corresponding to the origin structure of the conformational transition. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/1ake_A.aln). Accepted formats: ALN, TXT
120-
* **input_aln_target_path** (*string*): Input GOdMD alignment file corresponding to the target structure of the conformational transition. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/4ake_A.aln). Accepted formats: ALN, TXT
121-
* **input_config_path** (*string*): Input GOdMD configuration file. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/params.in). Accepted formats: IN, TXT
122-
* **output_log_path** (*string*): Output log file. File type: output. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/reference/godmd/godmd.log). Accepted formats: LOG, OUT, TXT, O
123-
* **output_ene_path** (*string*): Output energy file. File type: output. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/reference/godmd/godmd_ene.out). Accepted formats: LOG, OUT, TXT, O
124-
* **output_trj_path** (*string*): Output trajectory file. File type: output. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/reference/godmd/godmd_trj.mdcrd). Accepted formats: TRJ, CRD, MDCRD, X
125-
* **output_pdb_path** (*string*): Output structure file. File type: output. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/reference/godmd/godmd_pdb.pdb). Accepted formats: PDB
117+
* **input_pdb_orig_path** (*string*): Input PDB file to be used as origin in the conformational transition. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/1ake_A.pdb). Accepted formats: PDB
118+
* **input_pdb_target_path** (*string*): Input PDB file to be used as target in the conformational transition. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/4ake_A.pdb). Accepted formats: PDB
119+
* **input_aln_orig_path** (*string*): Input GOdMD alignment file corresponding to the origin structure of the conformational transition. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/1ake_A.aln). Accepted formats: ALN, TXT
120+
* **input_aln_target_path** (*string*): Input GOdMD alignment file corresponding to the target structure of the conformational transition. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/4ake_A.aln). Accepted formats: ALN, TXT
121+
* **input_config_path** (*string*): Input GOdMD configuration file. File type: input. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/params.in). Accepted formats: IN, TXT
122+
* **output_log_path** (*string*): Output log file. File type: output. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/reference/godmd/godmd.log). Accepted formats: LOG, OUT, TXT, O
123+
* **output_ene_path** (*string*): Output energy file. File type: output. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/reference/godmd/godmd_ene.out). Accepted formats: LOG, OUT, TXT, O
124+
* **output_trj_path** (*string*): Output trajectory file. File type: output. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/reference/godmd/godmd_trj.mdcrd). Accepted formats: TRJ, CRD, MDCRD, X
125+
* **output_pdb_path** (*string*): Output structure file. File type: output. [Sample file](https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/reference/godmd/godmd_pdb.pdb). Accepted formats: PDB
126126
### Config
127127
Syntax: input_parameter (datatype) - (default_value) Definition
128128

@@ -133,7 +133,7 @@ Config parameters for this building block:
133133
* **restart** (*boolean*): (False) Do not execute if output files exist..
134134
* **sandbox_path** (*string*): (./) Parent path to the sandbox directory..
135135
### YAML
136-
#### [Common config file](https://github.com/bioexcel/biobb_godmd/blob/master/biobb_godmd/test/data/config/config_godmd_run.yml)
136+
#### [Common config file](https://github.com/bioexcel/biobb_godmd/blob/main/biobb_godmd/test/data/config/config_godmd_run.yml)
137137
```python
138138
properties:
139139
remove_tmp: true
@@ -144,7 +144,7 @@ properties:
144144
godmd_run --config config_godmd_run.yml --input_pdb_orig_path 1ake_A.pdb --input_pdb_target_path 4ake_A.pdb --input_aln_orig_path 1ake_A.aln --input_aln_target_path 4ake_A.aln --input_config_path params.in --output_log_path godmd.log --output_ene_path godmd_ene.out --output_trj_path godmd_trj.mdcrd --output_pdb_path godmd_pdb.pdb
145145
```
146146
### JSON
147-
#### [Common config file](https://github.com/bioexcel/biobb_godmd/blob/master/biobb_godmd/test/data/config/config_godmd_run.json)
147+
#### [Common config file](https://github.com/bioexcel/biobb_godmd/blob/main/biobb_godmd/test/data/config/config_godmd_run.json)
148148
```python
149149
{
150150
"properties": {

biobb_godmd/godmd/godmd_prep.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class GOdMDPrep(BiobbObject):
1818
| Prepares input files for the GOdMD tool.
1919
2020
Args:
21-
input_pdb_orig_path (str): Input PDB file to be used as origin in the conformational transition. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/1ake_A.pdb>`_. Accepted formats: pdb (edam:format_1476).
22-
input_pdb_target_path (str): Input PDB file to be used as target in the conformational transition. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/4ake_A.pdb>`_. Accepted formats: pdb (edam:format_1476).
23-
output_aln_orig_path (str): Output GOdMD alignment file corresponding to the origin structure of the conformational transition. File type: output. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/1ake_A.aln>`_. Accepted formats: aln (edam:format_2330), txt (edam:format_2330).
24-
output_aln_target_path (str): Output GOdMD alignment file corresponding to the target structure of the conformational transition. File type: output. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/4ake_A.aln>`_. Accepted formats: aln (edam:format_2330), txt (edam:format_2330).
21+
input_pdb_orig_path (str): Input PDB file to be used as origin in the conformational transition. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/1ake_A.pdb>`_. Accepted formats: pdb (edam:format_1476).
22+
input_pdb_target_path (str): Input PDB file to be used as target in the conformational transition. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/4ake_A.pdb>`_. Accepted formats: pdb (edam:format_1476).
23+
output_aln_orig_path (str): Output GOdMD alignment file corresponding to the origin structure of the conformational transition. File type: output. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/1ake_A.aln>`_. Accepted formats: aln (edam:format_2330), txt (edam:format_2330).
24+
output_aln_target_path (str): Output GOdMD alignment file corresponding to the target structure of the conformational transition. File type: output. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/4ake_A.aln>`_. Accepted formats: aln (edam:format_2330), txt (edam:format_2330).
2525
properties (dict - Python dictionary object containing the tool parameters, not input/output files):
2626
* **gapopen** (*float*) - (12.0) Standard gap penalty: score taken away when a gap is created.
2727
* **gapextend** (*float*) - (2.0) Penalty added to the standard gap penalty for each base or residue in the gap.

biobb_godmd/godmd/godmd_run.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ class GOdMDRun(BiobbObject):
2121
| Computes conformational transition trajectories for proteins using GOdMD tool.
2222
2323
Args:
24-
input_pdb_orig_path (str): Input PDB file to be used as origin in the conformational transition. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/1ake_A.pdb>`_. Accepted formats: pdb (edam:format_1476).
25-
input_pdb_target_path (str): Input PDB file to be used as target in the conformational transition. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/4ake_A.pdb>`_. Accepted formats: pdb (edam:format_1476).
26-
input_aln_orig_path (str): Input GOdMD alignment file corresponding to the origin structure of the conformational transition. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/1ake_A.aln>`_. Accepted formats: aln (edam:format_2330), txt (edam:format_2330).
27-
input_aln_target_path (str): Input GOdMD alignment file corresponding to the target structure of the conformational transition. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/4ake_A.aln>`_. Accepted formats: aln (edam:format_2330), txt (edam:format_2330).
28-
input_config_path (str) (Optional): Input GOdMD configuration file. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/params.in>`_. Accepted formats: in (edam:format_2330), txt (edam:format_2330).
29-
output_log_path (str): Output log file. File type: output. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/reference/godmd/godmd.log>`_. Accepted formats: log (edam:format_2330), out (edam:format_2330), txt (edam:format_2330), o (edam:format_2330).
30-
output_ene_path (str): Output energy file. File type: output. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/reference/godmd/godmd_ene.out>`_. Accepted formats: log (edam:format_2330), out (edam:format_2330), txt (edam:format_2330), o (edam:format_2330).
31-
output_trj_path (str): Output trajectory file. File type: output. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/reference/godmd/godmd_trj.mdcrd>`_. Accepted formats: trj (edam:format_3878), crd (edam:format_3878), mdcrd (edam:format_3878), x (edam:format_3878).
32-
output_pdb_path (str): Output structure file. File type: output. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/reference/godmd/godmd_pdb.pdb>`_. Accepted formats: pdb (edam:format_1476).
24+
input_pdb_orig_path (str): Input PDB file to be used as origin in the conformational transition. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/1ake_A.pdb>`_. Accepted formats: pdb (edam:format_1476).
25+
input_pdb_target_path (str): Input PDB file to be used as target in the conformational transition. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/4ake_A.pdb>`_. Accepted formats: pdb (edam:format_1476).
26+
input_aln_orig_path (str): Input GOdMD alignment file corresponding to the origin structure of the conformational transition. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/1ake_A.aln>`_. Accepted formats: aln (edam:format_2330), txt (edam:format_2330).
27+
input_aln_target_path (str): Input GOdMD alignment file corresponding to the target structure of the conformational transition. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/4ake_A.aln>`_. Accepted formats: aln (edam:format_2330), txt (edam:format_2330).
28+
input_config_path (str) (Optional): Input GOdMD configuration file. File type: input. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/params.in>`_. Accepted formats: in (edam:format_2330), txt (edam:format_2330).
29+
output_log_path (str): Output log file. File type: output. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/reference/godmd/godmd.log>`_. Accepted formats: log (edam:format_2330), out (edam:format_2330), txt (edam:format_2330), o (edam:format_2330).
30+
output_ene_path (str): Output energy file. File type: output. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/reference/godmd/godmd_ene.out>`_. Accepted formats: log (edam:format_2330), out (edam:format_2330), txt (edam:format_2330), o (edam:format_2330).
31+
output_trj_path (str): Output trajectory file. File type: output. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/reference/godmd/godmd_trj.mdcrd>`_. Accepted formats: trj (edam:format_3878), crd (edam:format_3878), mdcrd (edam:format_3878), x (edam:format_3878).
32+
output_pdb_path (str): Output structure file. File type: output. `Sample file <https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/reference/godmd/godmd_pdb.pdb>`_. Accepted formats: pdb (edam:format_1476).
3333
properties (dict - Python dictionary object containing the tool parameters, not input/output files):
3434
* **godmdin** (*dict*) - ({}) GOdMD options specification.
3535
* **binary_path** (*str*) - ("discrete") Binary path.

biobb_godmd/json_schemas/godmd_prep.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"type": "string",
2727
"description": "Input PDB file to be used as origin in the conformational transition",
2828
"filetype": "input",
29-
"sample": "https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/1ake_A.pdb",
29+
"sample": "https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/1ake_A.pdb",
3030
"enum": [
3131
".*\\.pdb$"
3232
],
@@ -42,7 +42,7 @@
4242
"type": "string",
4343
"description": "Input PDB file to be used as target in the conformational transition",
4444
"filetype": "input",
45-
"sample": "https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/4ake_A.pdb",
45+
"sample": "https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/4ake_A.pdb",
4646
"enum": [
4747
".*\\.pdb$"
4848
],
@@ -58,7 +58,7 @@
5858
"type": "string",
5959
"description": "Output GOdMD alignment file corresponding to the origin structure of the conformational transition",
6060
"filetype": "output",
61-
"sample": "https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/1ake_A.aln",
61+
"sample": "https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/1ake_A.aln",
6262
"enum": [
6363
".*\\.aln$",
6464
".*\\.txt$"
@@ -80,7 +80,7 @@
8080
"type": "string",
8181
"description": "Output GOdMD alignment file corresponding to the target structure of the conformational transition",
8282
"filetype": "output",
83-
"sample": "https://github.com/bioexcel/biobb_godmd/raw/master/biobb_godmd/test/data/godmd/4ake_A.aln",
83+
"sample": "https://github.com/bioexcel/biobb_godmd/raw/main/biobb_godmd/test/data/godmd/4ake_A.aln",
8484
"enum": [
8585
".*\\.aln$",
8686
".*\\.txt$"

0 commit comments

Comments
 (0)