biobb-io 5.2.0__py3-none-any.whl → 5.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- biobb_io/__init__.py +1 -1
- biobb_io/api/api_binding_site.py +2 -2
- biobb_io/api/canonical_fasta.py +2 -2
- biobb_io/api/common.py +13 -12
- biobb_io/api/ligand.py +3 -3
- biobb_io/api/mmcif.py +2 -2
- biobb_io/api/pdb.py +2 -2
- biobb_io/api/pdb_cluster_zip.py +3 -3
- biobb_io/api/pdb_variants.py +3 -3
- biobb_io/api/structure_info.py +2 -2
- {biobb_io-5.2.0.dist-info → biobb_io-5.2.1.dist-info}/METADATA +13 -25
- biobb_io-5.2.1.dist-info/RECORD +25 -0
- {biobb_io-5.2.0.dist-info → biobb_io-5.2.1.dist-info}/WHEEL +1 -1
- biobb_io-5.2.0.dist-info/RECORD +0 -25
- {biobb_io-5.2.0.dist-info/licenses → biobb_io-5.2.1.dist-info}/LICENSE +0 -0
- {biobb_io-5.2.0.dist-info → biobb_io-5.2.1.dist-info}/entry_points.txt +0 -0
- {biobb_io-5.2.0.dist-info → biobb_io-5.2.1.dist-info}/top_level.txt +0 -0
biobb_io/__init__.py
CHANGED
biobb_io/api/api_binding_site.py
CHANGED
|
@@ -95,7 +95,7 @@ class ApiBindingSite(BiobbObject):
|
|
|
95
95
|
)
|
|
96
96
|
|
|
97
97
|
self.pdb_code = self.pdb_code.strip().lower()
|
|
98
|
-
url = "https://www.ebi.ac.uk/pdbe/api/pdb/entry/binding_sites/%s"
|
|
98
|
+
url = "https://www.ebi.ac.uk/pdbe/api/v2/pdb/entry/binding_sites/%s/1"
|
|
99
99
|
|
|
100
100
|
# get JSON object
|
|
101
101
|
json_string = download_binding_site(
|
|
@@ -104,7 +104,7 @@ class ApiBindingSite(BiobbObject):
|
|
|
104
104
|
|
|
105
105
|
# get number of binding sites
|
|
106
106
|
fu.log(
|
|
107
|
-
"%d binding sites found" % (len(json.loads(json_string)[self.pdb_code])),
|
|
107
|
+
"%d binding sites found" % (len(json.loads(json_string)[self.pdb_code]['data'])),
|
|
108
108
|
self.out_log,
|
|
109
109
|
self.global_log,
|
|
110
110
|
)
|
biobb_io/api/canonical_fasta.py
CHANGED
|
@@ -18,13 +18,13 @@ class CanonicalFasta(BiobbObject):
|
|
|
18
18
|
"""
|
|
19
19
|
| biobb_io CanonicalFasta
|
|
20
20
|
| This class is a wrapper for downloading a FASTA structure from the Protein Data Bank.
|
|
21
|
-
| Wrapper for the `Protein Data Bank <https://www.rcsb.org/>`_ and the `MMB PDB mirror <
|
|
21
|
+
| Wrapper for the `Protein Data Bank <https://www.rcsb.org/>`_ and the `MMB PDB mirror <https://mdb-login.bsc.es/api/>`_ for downloading a single FASTA structure.
|
|
22
22
|
|
|
23
23
|
Args:
|
|
24
24
|
output_fasta_path (str): Path to the canonical FASTA file. File type: output. `Sample file <https://github.com/bioexcel/biobb_io/raw/master/biobb_io/test/reference/api/canonical_fasta.fasta>`_. Accepted formats: fasta (edam:format_1929).
|
|
25
25
|
properties (dic - Python dictionary object containing the tool parameters, not input/output files):
|
|
26
26
|
* **pdb_code** (*str*) - (None) RSCB PDB code.
|
|
27
|
-
* **api_id** (*str*) - ("pdbe") Identifier of the PDB REST API from which the PDB structure will be downloaded. Values: pdbe (`PDB in Europe REST API <https://www.ebi.ac.uk/pdbe/pdbe-rest-api>`_), pdb (`RCSB PDB REST API <https://data.rcsb.org/>`_), mmb (`MMB PDB mirror API <
|
|
27
|
+
* **api_id** (*str*) - ("pdbe") Identifier of the PDB REST API from which the PDB structure will be downloaded. Values: pdbe (`PDB in Europe REST API <https://www.ebi.ac.uk/pdbe/pdbe-rest-api>`_), pdb (`RCSB PDB REST API <https://data.rcsb.org/>`_), mmb (`MMB PDB mirror API <https://mdb-login.bsc.es/api/>`_).
|
|
28
28
|
* **remove_tmp** (*bool*) - (True) [WF property] Remove temporal files.
|
|
29
29
|
* **restart** (*bool*) - (False) [WF property] Do not execute if output files exist.
|
|
30
30
|
* **sandbox_path** (*str*) - ("./") [WF property] Parent path to the sandbox directory.
|
biobb_io/api/common.py
CHANGED
|
@@ -57,7 +57,7 @@ def download_pdb(pdb_code, api_id, out_log=None, global_log=None):
|
|
|
57
57
|
"""
|
|
58
58
|
|
|
59
59
|
if api_id == "mmb":
|
|
60
|
-
url = "https://
|
|
60
|
+
url = "https://mdb-login.bsc.es/api/pdb/" + pdb_code + "/coords/?"
|
|
61
61
|
elif api_id == "pdb":
|
|
62
62
|
url = "https://files.rcsb.org/download/" + pdb_code + ".pdb"
|
|
63
63
|
elif api_id == "pdbe":
|
|
@@ -73,7 +73,7 @@ def download_af(uniprot_code, out_log=None, global_log=None, classname=None):
|
|
|
73
73
|
String: Content of the pdb file.
|
|
74
74
|
"""
|
|
75
75
|
|
|
76
|
-
url = "https://alphafold.ebi.ac.uk/files/AF-" + uniprot_code + "-F1-
|
|
76
|
+
url = "https://alphafold.ebi.ac.uk/files/AF-" + uniprot_code + "-F1-model_v6.pdb"
|
|
77
77
|
|
|
78
78
|
fu.log("Downloading %s from: %s" % (uniprot_code, url), out_log, global_log)
|
|
79
79
|
|
|
@@ -146,7 +146,7 @@ def download_mmcif(pdb_code, api_id, out_log=None, global_log=None):
|
|
|
146
146
|
"""
|
|
147
147
|
|
|
148
148
|
if api_id == "mmb":
|
|
149
|
-
url = "
|
|
149
|
+
url = "https://mdb-login.bsc.es/api/pdb/" + pdb_code + ".cif"
|
|
150
150
|
elif api_id == "pdb":
|
|
151
151
|
url = "https://files.rcsb.org/download/" + pdb_code + ".cif"
|
|
152
152
|
elif api_id == "pdbe":
|
|
@@ -163,11 +163,12 @@ def download_ligand(ligand_code, api_id, out_log=None, global_log=None):
|
|
|
163
163
|
"""
|
|
164
164
|
|
|
165
165
|
if api_id == "mmb":
|
|
166
|
-
url = "
|
|
166
|
+
url = "https://mdb-login.bsc.es/api/pdbMonomer/" + ligand_code.lower()
|
|
167
167
|
text = requests.get(url, verify=True).content.decode("utf-8")
|
|
168
168
|
elif api_id == "pdbe":
|
|
169
169
|
url = (
|
|
170
|
-
"https://www.ebi.ac.uk/pdbe/static/files/pdbechem_v2/" + ligand_code.upper() + "_ideal.pdb"
|
|
170
|
+
# "https://www.ebi.ac.uk/pdbe/static/files/pdbechem_v2/" + ligand_code.upper() + "_ideal.pdb"
|
|
171
|
+
"https://files.rcsb.org/ligands/view/" + ligand_code.upper() + ".cif"
|
|
171
172
|
)
|
|
172
173
|
text = urllib.request.urlopen(url).read().decode("utf-8")
|
|
173
174
|
|
|
@@ -186,11 +187,11 @@ def download_fasta(pdb_code, api_id, out_log=None, global_log=None):
|
|
|
186
187
|
"""
|
|
187
188
|
|
|
188
189
|
if api_id == "mmb":
|
|
189
|
-
url = "
|
|
190
|
+
url = "https://mdb-login.bsc.es/api/pdb/" + pdb_code + ".fasta"
|
|
190
191
|
elif api_id == "pdb":
|
|
191
192
|
url = "https://www.rcsb.org/fasta/entry/" + pdb_code
|
|
192
193
|
elif api_id == "pdbe":
|
|
193
|
-
url = "https://www.ebi.ac.uk/pdbe/
|
|
194
|
+
url = "https://www.ebi.ac.uk/pdbe/api/v2/pdb/entry/" + pdb_code + "/fasta"
|
|
194
195
|
|
|
195
196
|
fu.log("Downloading %s from: %s" % (pdb_code, url), out_log, global_log)
|
|
196
197
|
return requests.get(url, verify=True).content.decode("utf-8")
|
|
@@ -198,7 +199,7 @@ def download_fasta(pdb_code, api_id, out_log=None, global_log=None):
|
|
|
198
199
|
|
|
199
200
|
def download_binding_site(
|
|
200
201
|
pdb_code,
|
|
201
|
-
url="https://www.ebi.ac.uk/pdbe/api/pdb/entry/binding_sites/%s",
|
|
202
|
+
url="https://www.ebi.ac.uk/pdbe/api/v2/pdb/entry/binding_sites/%s/1",
|
|
202
203
|
out_log=None,
|
|
203
204
|
global_log=None,
|
|
204
205
|
):
|
|
@@ -231,7 +232,7 @@ def download_ideal_sdf(ligand_code, api_id, out_log=None, global_log=None):
|
|
|
231
232
|
text = requests.get(url, verify=True).content.decode("utf-8")
|
|
232
233
|
elif api_id == "pdbe":
|
|
233
234
|
url = (
|
|
234
|
-
"https://
|
|
235
|
+
"https://files.wwpdb.org/pub/pdb/refdata/chem_comp/" + ligand_code.upper()[-1] + "/" + ligand_code.upper() + "/" + ligand_code.upper() + "_ideal.sdf"
|
|
235
236
|
)
|
|
236
237
|
text = urllib.request.urlopen(url).read().decode("utf-8")
|
|
237
238
|
|
|
@@ -242,7 +243,7 @@ def download_ideal_sdf(ligand_code, api_id, out_log=None, global_log=None):
|
|
|
242
243
|
|
|
243
244
|
def download_str_info(
|
|
244
245
|
pdb_code,
|
|
245
|
-
url="
|
|
246
|
+
url="https://mdb-login.bsc.es/api/pdb/%s.json",
|
|
246
247
|
out_log=None,
|
|
247
248
|
global_log=None,
|
|
248
249
|
):
|
|
@@ -312,7 +313,7 @@ def get_cluster_pdb_codes(pdb_code, cluster, out_log=None, global_log=None):
|
|
|
312
313
|
Returns:
|
|
313
314
|
String list: The list of pdb_codes of the selected cluster.
|
|
314
315
|
"""
|
|
315
|
-
url = "
|
|
316
|
+
url = "https://mdb-login.bsc.es/api/pdb/"
|
|
316
317
|
pdb_codes = set()
|
|
317
318
|
|
|
318
319
|
url = url + pdb_code.lower() + "/clusters/cl-" + str(cluster) + ".json"
|
|
@@ -356,7 +357,7 @@ def get_uniprot(pdb_code, url, out_log=None, global_log=None):
|
|
|
356
357
|
|
|
357
358
|
|
|
358
359
|
def get_variants(
|
|
359
|
-
uniprot_id, url="
|
|
360
|
+
uniprot_id, url="https://mdb-login.bsc.es/api", out_log=None, global_log=None
|
|
360
361
|
):
|
|
361
362
|
"""Returns the variants of the `uniprot_id` code.
|
|
362
363
|
|
biobb_io/api/ligand.py
CHANGED
|
@@ -18,13 +18,13 @@ class Ligand(BiobbObject):
|
|
|
18
18
|
"""
|
|
19
19
|
| biobb_io Ligand
|
|
20
20
|
| This class is a wrapper for downloading a PDB ligand from the Protein Data Bank.
|
|
21
|
-
| Wrapper for the `Protein Data Bank in Europe <https://www.ebi.ac.uk/pdbe/>`_ and the `MMB PDB mirror <
|
|
21
|
+
| Wrapper for the `Protein Data Bank in Europe <https://www.ebi.ac.uk/pdbe/>`_ and the `MMB PDB mirror <https://mdb-login.bsc.es/api/>`_ for downloading a single PDB ligand.
|
|
22
22
|
|
|
23
23
|
Args:
|
|
24
24
|
output_pdb_path (str): Path to the output PDB ligand file. File type: output. `Sample file <https://github.com/bioexcel/biobb_io/raw/master/biobb_io/test/reference/api/output_ligand.pdb>`_. Accepted formats: pdb (edam:format_1476).
|
|
25
25
|
properties (dic - Python dictionary object containing the tool parameters, not input/output files):
|
|
26
26
|
* **ligand_code** (*str*) - (None) RSCB PDB ligand code.
|
|
27
|
-
* **api_id** (*str*) - ("pdbe") Identifier of the PDB REST API from which the PDB structure will be downloaded. Values: pdbe (`PDB in Europe REST API <https://www.ebi.ac.uk/pdbe/pdbe-rest-api>`_), mmb (`MMB PDB mirror API <
|
|
27
|
+
* **api_id** (*str*) - ("pdbe") Identifier of the PDB REST API from which the PDB structure will be downloaded. Values: pdbe (`PDB in Europe REST API <https://www.ebi.ac.uk/pdbe/pdbe-rest-api>`_), mmb (`MMB PDB mirror API <https://mdb-login.bsc.es/api/>`_).
|
|
28
28
|
* **remove_tmp** (*bool*) - (True) [WF property] Remove temporal files.
|
|
29
29
|
* **restart** (*bool*) - (False) [WF property] Do not execute if output files exist.
|
|
30
30
|
* **sandbox_path** (*str*) - ("./") [WF property] Parent path to the sandbox directory.
|
|
@@ -114,7 +114,7 @@ def ligand(output_pdb_path: str, properties: Optional[dict] = None, **kwargs) ->
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
ligand.__doc__ = Ligand.__doc__
|
|
117
|
-
main = Ligand.get_main(ligand, "Wrapper for the Protein Data Bank in Europe (https://www.ebi.ac.uk/pdbe/) and the MMB PDB mirror (
|
|
117
|
+
main = Ligand.get_main(ligand, "Wrapper for the Protein Data Bank in Europe (https://www.ebi.ac.uk/pdbe/) and the MMB PDB mirror (https://mdb-login.bsc.es/api/) for downloading a single PDB ligand.")
|
|
118
118
|
|
|
119
119
|
if __name__ == "__main__":
|
|
120
120
|
main()
|
biobb_io/api/mmcif.py
CHANGED
|
@@ -18,13 +18,13 @@ class Mmcif(BiobbObject):
|
|
|
18
18
|
"""
|
|
19
19
|
| biobb_io Mmcif
|
|
20
20
|
| This class is a wrapper for downloading a MMCIF structure from the Protein Data Bank.
|
|
21
|
-
| Wrapper for the `Protein Data Bank in Europe <https://www.ebi.ac.uk/pdbe/>`_, the `Protein Data Bank <https://www.rcsb.org/>`_ and the `MMB PDB mirror <
|
|
21
|
+
| Wrapper for the `Protein Data Bank in Europe <https://www.ebi.ac.uk/pdbe/>`_, the `Protein Data Bank <https://www.rcsb.org/>`_ and the `MMB PDB mirror <https://mdb-login.bsc.es/api/>`_ for downloading a single MMCIF structure.
|
|
22
22
|
|
|
23
23
|
Args:
|
|
24
24
|
output_mmcif_path (str): Path to the output MMCIF file. File type: output. `Sample file <https://github.com/bioexcel/biobb_io/raw/master/biobb_io/test/reference/api/ref_output.mmcif>`_. Accepted formats: cif (edam:format_1477), mmcif (edam:format_1477).
|
|
25
25
|
properties (dic - Python dictionary object containing the tool parameters, not input/output files):
|
|
26
26
|
* **pdb_code** (*str*) - (None) RSCB PDB code.
|
|
27
|
-
* **api_id** (*str*) - ("pdbe") Identifier of the PDB REST API from which the MMCIF structure will be downloaded. Values: pdbe (`PDB in Europe REST API <https://www.ebi.ac.uk/pdbe/pdbe-rest-api>`_), pdb (`RCSB PDB REST API <https://data.rcsb.org/>`_), mmb (`MMB PDB mirror API <
|
|
27
|
+
* **api_id** (*str*) - ("pdbe") Identifier of the PDB REST API from which the MMCIF structure will be downloaded. Values: pdbe (`PDB in Europe REST API <https://www.ebi.ac.uk/pdbe/pdbe-rest-api>`_), pdb (`RCSB PDB REST API <https://data.rcsb.org/>`_), mmb (`MMB PDB mirror API <https://mdb-login.bsc.es/api/>`_).
|
|
28
28
|
* **remove_tmp** (*bool*) - (True) [WF property] Remove temporal files.
|
|
29
29
|
* **restart** (*bool*) - (False) [WF property] Do not execute if output files exist.
|
|
30
30
|
* **sandbox_path** (*str*) - ("./") [WF property] Parent path to the sandbox directory.
|
biobb_io/api/pdb.py
CHANGED
|
@@ -18,14 +18,14 @@ class Pdb(BiobbObject):
|
|
|
18
18
|
"""
|
|
19
19
|
| biobb_io Pdb
|
|
20
20
|
| This class is a wrapper for downloading a PDB structure from the Protein Data Bank.
|
|
21
|
-
| Wrapper for the `Protein Data Bank in Europe <https://www.ebi.ac.uk/pdbe/>`_, the `Protein Data Bank <https://www.rcsb.org/>`_ and the `MMB PDB mirror <
|
|
21
|
+
| Wrapper for the `Protein Data Bank in Europe <https://www.ebi.ac.uk/pdbe/>`_, the `Protein Data Bank <https://www.rcsb.org/>`_ and the `MMB PDB mirror <https://mdb-login.bsc.es/api/>`_ for downloading a single PDB structure.
|
|
22
22
|
|
|
23
23
|
Args:
|
|
24
24
|
output_pdb_path (str): Path to the output PDB file. File type: output. `Sample file <https://github.com/bioexcel/biobb_io/raw/master/biobb_io/test/reference/api/output_pdb.pdb>`_. Accepted formats: pdb (edam:format_1476).
|
|
25
25
|
properties (dic - Python dictionary object containing the tool parameters, not input/output files):
|
|
26
26
|
* **pdb_code** (*str*) - (None) RSCB PDB code.
|
|
27
27
|
* **filter** (*str*) - (["ATOM", "MODEL", "ENDMDL"]) Array of groups to be kept. If value is None or False no filter will be applied. All the possible values are defined in the `official PDB specification <http://www.wwpdb.org/documentation/file-format-content/format33/v3.3.html)>`_.
|
|
28
|
-
* **api_id** (*str*) - ("pdbe") Identifier of the PDB REST API from which the PDB structure will be downloaded. Values: pdbe (`PDB in Europe REST API <https://www.ebi.ac.uk/pdbe/pdbe-rest-api>`_), pdb (`RCSB PDB REST API <https://data.rcsb.org/>`_), mmb (`MMB PDB mirror API <
|
|
28
|
+
* **api_id** (*str*) - ("pdbe") Identifier of the PDB REST API from which the PDB structure will be downloaded. Values: pdbe (`PDB in Europe REST API <https://www.ebi.ac.uk/pdbe/pdbe-rest-api>`_), pdb (`RCSB PDB REST API <https://data.rcsb.org/>`_), mmb (`MMB PDB mirror API <https://mdb-login.bsc.es/api/>`_).
|
|
29
29
|
* **remove_tmp** (*bool*) - (True) [WF property] Remove temporal files.
|
|
30
30
|
* **restart** (*bool*) - (False) [WF property] Do not execute if output files exist.
|
|
31
31
|
* **sandbox_path** (*str*) - ("./") [WF property] Parent path to the sandbox directory.
|
biobb_io/api/pdb_cluster_zip.py
CHANGED
|
@@ -21,7 +21,7 @@ class PdbClusterZip(BiobbObject):
|
|
|
21
21
|
"""
|
|
22
22
|
| biobb_io PdbClusterZip
|
|
23
23
|
| This class is a wrapper for downloading a PDB cluster from the Protein Data Bank.
|
|
24
|
-
| Wrapper for the `Protein Data Bank in Europe <https://www.ebi.ac.uk/pdbe/>`_, the `Protein Data Bank <https://www.rcsb.org/>`_ and the `MMB PDB mirror <
|
|
24
|
+
| Wrapper for the `Protein Data Bank in Europe <https://www.ebi.ac.uk/pdbe/>`_, the `Protein Data Bank <https://www.rcsb.org/>`_ and the `MMB PDB mirror <https://mdb-login.bsc.es/api/>`_ for downloading a PDB cluster.
|
|
25
25
|
|
|
26
26
|
Args:
|
|
27
27
|
output_pdb_zip_path (str): Path to the ZIP file containing the output PDB files. File type: output. `Sample file <https://github.com/bioexcel/biobb_io/raw/master/biobb_io/test/reference/api/output_pdb_cluster.zip>`_. Accepted formats: zip (edam:format_3987).
|
|
@@ -29,7 +29,7 @@ class PdbClusterZip(BiobbObject):
|
|
|
29
29
|
* **pdb_code** (*str*) - (None) RSCB PDB code.
|
|
30
30
|
* **filter** (*str*) - (["ATOM", "MODEL", "ENDMDL"]) Array of groups to be kept. If value is None or False no filter will be applied. All the possible values are defined in the official PDB specification (http://www.wwpdb.org/documentation/file-format-content/format33/v3.3.html)
|
|
31
31
|
* **cluster** (*int*) - (90) Sequence Similarity Cutoff. Values: 50 (structures having less than 50% sequence identity to each other), 70 (structures having less than 70% sequence identity to each other), 90 (structures having less than 90% sequence identity to each other), 95 (structures having less than 95% sequence identity to each other).
|
|
32
|
-
* **api_id** (*str*) - ("pdbe") Identifier of the PDB REST API from which the PDB structure will be downloaded. Values: pdbe (`PDB in Europe REST API <https://www.ebi.ac.uk/pdbe/pdbe-rest-api>`_), pdb (`RCSB PDB REST API <https://data.rcsb.org/>`_), mmb (`MMB PDB mirror API <
|
|
32
|
+
* **api_id** (*str*) - ("pdbe") Identifier of the PDB REST API from which the PDB structure will be downloaded. Values: pdbe (`PDB in Europe REST API <https://www.ebi.ac.uk/pdbe/pdbe-rest-api>`_), pdb (`RCSB PDB REST API <https://data.rcsb.org/>`_), mmb (`MMB PDB mirror API <https://mdb-login.bsc.es/api/>`_).
|
|
33
33
|
* **remove_tmp** (*bool*) - (True) [WF property] Remove temporal files.
|
|
34
34
|
* **restart** (*bool*) - (False) [WF property] Do not execute if output files exist.
|
|
35
35
|
* **sandbox_path** (*str*) - ("./") [WF property] Parent path to the sandbox directory.
|
|
@@ -146,7 +146,7 @@ def pdb_cluster_zip(
|
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
pdb_cluster_zip.__doc__ = PdbClusterZip.__doc__
|
|
149
|
-
main = PdbClusterZip.get_main(pdb_cluster_zip, "Wrapper for the Protein Data Bank in Europe (https://www.ebi.ac.uk/pdbe/), the Protein Data Bank (https://www.rcsb.org/) and the MMB PDB mirror (
|
|
149
|
+
main = PdbClusterZip.get_main(pdb_cluster_zip, "Wrapper for the Protein Data Bank in Europe (https://www.ebi.ac.uk/pdbe/), the Protein Data Bank (https://www.rcsb.org/) and the MMB PDB mirror (https://mdb-login.bsc.es/api/) for downloading a PDB cluster.")
|
|
150
150
|
|
|
151
151
|
if __name__ == "__main__":
|
|
152
152
|
main()
|
biobb_io/api/pdb_variants.py
CHANGED
|
@@ -21,7 +21,7 @@ class PdbVariants(BiobbObject):
|
|
|
21
21
|
"""
|
|
22
22
|
| biobb_io PdbVariants
|
|
23
23
|
| This class creates a text file containing a list of all the variants mapped to a PDB code from the corresponding UNIPROT entries.
|
|
24
|
-
| Wrapper for the `UNIPROT <http://www.uniprot.org/>`_ mirror of the `MMB group REST API <
|
|
24
|
+
| Wrapper for the `UNIPROT <http://www.uniprot.org/>`_ mirror of the `MMB group REST API <https://mdb-login.bsc.es/api/>`_ for creating a list of all the variants mapped to a PDB code from the corresponding UNIPROT entries.
|
|
25
25
|
|
|
26
26
|
Args:
|
|
27
27
|
output_mutations_list_txt (str): Path to the TXT file containing an ASCII comma separated values of the mutations. File type: output. `Sample file <https://github.com/bioexcel/biobb_io/raw/master/biobb_io/test/reference/api/output_pdb_variants.txt>`_. Accepted formats: txt (edam:format_2330).
|
|
@@ -96,7 +96,7 @@ class PdbVariants(BiobbObject):
|
|
|
96
96
|
|
|
97
97
|
self.pdb_code = self.pdb_code.strip().lower()
|
|
98
98
|
|
|
99
|
-
url = "
|
|
99
|
+
url = "https://mdb-login.bsc.es/api"
|
|
100
100
|
uniprot_id = get_uniprot(self.pdb_code, url, self.out_log, self.global_log)
|
|
101
101
|
url_mapPDBRes = (
|
|
102
102
|
url + "/uniprot/" + uniprot_id + "/mapPDBRes?pdbId=" + self.pdb_code
|
|
@@ -169,7 +169,7 @@ def pdb_variants(
|
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
pdb_variants.__doc__ = PdbVariants.__doc__
|
|
172
|
-
main = PdbVariants.get_main(pdb_variants, "Wrapper for the UNIPROT (http://www.uniprot.org/) mirror of the MMB group REST API (
|
|
172
|
+
main = PdbVariants.get_main(pdb_variants, "Wrapper for the UNIPROT (http://www.uniprot.org/) mirror of the MMB group REST API (https://mdb-login.bsc.es/api/) for creating a list of all the variants mapped to a PDB code from the corresponding UNIPROT entries.")
|
|
173
173
|
|
|
174
174
|
if __name__ == "__main__":
|
|
175
175
|
main()
|
biobb_io/api/structure_info.py
CHANGED
|
@@ -18,7 +18,7 @@ class StructureInfo(BiobbObject):
|
|
|
18
18
|
"""
|
|
19
19
|
| biobb_io StructureInfo
|
|
20
20
|
| This class is a wrapper for getting all the available information of a structure from the Protein Data Bank.
|
|
21
|
-
| Wrapper for the `MMB PDB mirror <
|
|
21
|
+
| Wrapper for the `MMB PDB mirror <https://mdb-login.bsc.es/api/>`_ for getting all the available information of a structure from the Protein Data Bank.
|
|
22
22
|
|
|
23
23
|
Args:
|
|
24
24
|
output_json_path (str): Path to the output JSON file with all the structure information. File type: output. `Sample file <https://github.com/bioexcel/biobb_io/raw/master/biobb_io/test/reference/api/ref_str_info.json>`_. Accepted formats: json (edam:format_3464).
|
|
@@ -92,7 +92,7 @@ class StructureInfo(BiobbObject):
|
|
|
92
92
|
)
|
|
93
93
|
|
|
94
94
|
self.pdb_code = self.pdb_code.strip().lower()
|
|
95
|
-
url = "
|
|
95
|
+
url = "https://mdb-login.bsc.es/api/pdb/%s.json"
|
|
96
96
|
|
|
97
97
|
# Downloading PDB file
|
|
98
98
|
json_string = download_str_info(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
2
|
-
Name:
|
|
3
|
-
Version: 5.2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: biobb-io
|
|
3
|
+
Version: 5.2.1
|
|
4
4
|
Summary: Biobb_io is the Biobb module collection to fetch data to be consumed by the rest of the Biobb building blocks.
|
|
5
5
|
Home-page: https://github.com/bioexcel/biobb_io
|
|
6
6
|
Author: Biobb developers
|
|
@@ -17,26 +17,14 @@ Classifier: Operating System :: Unix
|
|
|
17
17
|
Requires-Python: >=3.10
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
|
-
Requires-Dist:
|
|
21
|
-
Dynamic: author
|
|
22
|
-
Dynamic: author-email
|
|
23
|
-
Dynamic: classifier
|
|
24
|
-
Dynamic: description
|
|
25
|
-
Dynamic: description-content-type
|
|
26
|
-
Dynamic: home-page
|
|
27
|
-
Dynamic: keywords
|
|
28
|
-
Dynamic: license-file
|
|
29
|
-
Dynamic: project-url
|
|
30
|
-
Dynamic: requires-dist
|
|
31
|
-
Dynamic: requires-python
|
|
32
|
-
Dynamic: summary
|
|
20
|
+
Requires-Dist: biobb-common ==5.2.0
|
|
33
21
|
|
|
34
22
|
[](https://GitHub.com/bioexcel/biobb_io/tags/)
|
|
35
23
|
[](https://pypi.python.org/pypi/biobb-io/)
|
|
36
24
|
[](https://anaconda.org/bioconda/biobb_io)
|
|
37
25
|
[](https://anaconda.org/bioconda/biobb_io)
|
|
38
26
|
[](https://quay.io/repository/biocontainers/biobb_io?tab=tags)
|
|
39
|
-
[](https://depot.galaxyproject.org/singularity/biobb_io:5.2.
|
|
27
|
+
[](https://depot.galaxyproject.org/singularity/biobb_io:5.2.1--pyhdfd78af_0)
|
|
40
28
|
|
|
41
29
|
[](https://github.com/bioexcel/biobb_io)
|
|
42
30
|
[](https://pypi.org/project/biobb-io/)
|
|
@@ -74,7 +62,7 @@ The latest documentation of this package can be found in our readthedocs site:
|
|
|
74
62
|
[latest API documentation](http://biobb-io.readthedocs.io/en/latest/).
|
|
75
63
|
|
|
76
64
|
### Version
|
|
77
|
-
v5.2.
|
|
65
|
+
v5.2.1 2025.2
|
|
78
66
|
|
|
79
67
|
### Installation
|
|
80
68
|
Using PIP:
|
|
@@ -83,7 +71,7 @@ Using PIP:
|
|
|
83
71
|
|
|
84
72
|
* Installation:
|
|
85
73
|
|
|
86
|
-
pip install "biobb_io==5.
|
|
74
|
+
pip install "biobb_io==5.2.1"
|
|
87
75
|
|
|
88
76
|
* Usage: [Python API documentation](https://biobb-io.readthedocs.io/en/latest/modules.html)
|
|
89
77
|
|
|
@@ -91,7 +79,7 @@ Using ANACONDA:
|
|
|
91
79
|
* Installation:
|
|
92
80
|
|
|
93
81
|
|
|
94
|
-
conda install -c bioconda "biobb_io==5.
|
|
82
|
+
conda install -c bioconda "biobb_io==5.2.1"
|
|
95
83
|
|
|
96
84
|
|
|
97
85
|
* Usage: With conda installation BioBBs can be used with the [Python API documentation](https://biobb-io.readthedocs.io/en/latest/modules.html) and the [Command Line documentation](https://biobb-io.readthedocs.io/en/latest/command_line.html)
|
|
@@ -100,12 +88,12 @@ Using DOCKER:
|
|
|
100
88
|
* Installation:
|
|
101
89
|
|
|
102
90
|
|
|
103
|
-
docker pull quay.io/biocontainers/biobb_io:5.2.
|
|
91
|
+
docker pull quay.io/biocontainers/biobb_io:5.2.1--pyhdfd78af_0
|
|
104
92
|
|
|
105
93
|
* Usage:
|
|
106
94
|
|
|
107
95
|
|
|
108
|
-
docker run quay.io/biocontainers/biobb_io:5.2.
|
|
96
|
+
docker run quay.io/biocontainers/biobb_io:5.2.1--pyhdfd78af_0 <command>
|
|
109
97
|
|
|
110
98
|
|
|
111
99
|
The command list and specification can be found at the [Command Line documentation](https://biobb-io.readthedocs.io/en/latest/command_line.html).
|
|
@@ -117,7 +105,7 @@ Using SINGULARITY:
|
|
|
117
105
|
* Installation:
|
|
118
106
|
|
|
119
107
|
|
|
120
|
-
singularity pull --name biobb_io.sif https://depot.galaxyproject.org/singularity/biobb_io:5.2.
|
|
108
|
+
singularity pull --name biobb_io.sif https://depot.galaxyproject.org/singularity/biobb_io:5.2.1--pyhdfd78af_0
|
|
121
109
|
|
|
122
110
|
|
|
123
111
|
* Usage:
|
|
@@ -132,8 +120,8 @@ The command list and specification can be found at the [Command Line documentati
|
|
|
132
120
|
### Copyright & Licensing
|
|
133
121
|
This software has been developed in the [MMB group](http://mmb.irbbarcelona.org) at the [BSC](http://www.bsc.es/) & [IRB](https://www.irbbarcelona.org/) for the [European BioExcel](http://bioexcel.eu/), funded by the European Commission (EU Horizon Europe [101093290](https://cordis.europa.eu/project/id/101093290), EU H2020 [823830](http://cordis.europa.eu/projects/823830), EU H2020 [675728](http://cordis.europa.eu/projects/675728)).
|
|
134
122
|
|
|
135
|
-
* (c) 2015-
|
|
136
|
-
* (c) 2015-
|
|
123
|
+
* (c) 2015-2026 [Barcelona Supercomputing Center](https://www.bsc.es/)
|
|
124
|
+
* (c) 2015-2026 [Institute for Research in Biomedicine](https://www.irbbarcelona.org/)
|
|
137
125
|
|
|
138
126
|
Licensed under the
|
|
139
127
|
[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0), see the file LICENSE for details.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
biobb_io/__init__.py,sha256=0UYKlC_5BLNwipIP_D-5dKDohnUNRVUh2aNNf1O3lRI,77
|
|
2
|
+
biobb_io/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
biobb_io/api/__init__.py,sha256=s4K59-8EX7yX2qBtB8717ynIEjQ0lVNTp0BDSoc_raM,558
|
|
4
|
+
biobb_io/api/alphafold.py,sha256=EsUHtbypku6rNtMaDrnKf3KLoanuOOB0LOZOnenmoP0,4371
|
|
5
|
+
biobb_io/api/api_binding_site.py,sha256=MoLqQc_oEa0EM3CBmBEcaUsdovEXSl08DByU1gx9fG4,4832
|
|
6
|
+
biobb_io/api/canonical_fasta.py,sha256=VRcvi4eYe8UfrdMxneED0bUR6oIIBxL7Z8vKWhQynxk,4747
|
|
7
|
+
biobb_io/api/common.py,sha256=Ru8rhtPTumdql56vDG9BXzqvp6YEyRR6CKV83IcVt6M,15898
|
|
8
|
+
biobb_io/api/ideal_sdf.py,sha256=BKpFIPcZ8vV6ayQXCmP3Kt_rcQf3ltQCRTtcCqGHriE,4566
|
|
9
|
+
biobb_io/api/ligand.py,sha256=N3roz0nbBdSW3RWmEdh6s1-NEZXgrgaThUWytdrX6Vs,4601
|
|
10
|
+
biobb_io/api/mddb.py,sha256=RWw1MgTTUpvdV-k7ZGNxBr4_wMXf29kGMZKdDj9UTYA,7135
|
|
11
|
+
biobb_io/api/memprotmd_sim.py,sha256=UKgc4UJPukjmBwelVcKbFqGqQhA9BOtfrlJiHf_aW5Q,4120
|
|
12
|
+
biobb_io/api/memprotmd_sim_list.py,sha256=aF4bXr--GZ8byK3ydtvrIL1OesvPLeTERAHsZ5r6AeE,4076
|
|
13
|
+
biobb_io/api/memprotmd_sim_search.py,sha256=VkbHE_qVoQov3iJQFaOy43ZSahCqOHy-7F2s9idcXxE,6436
|
|
14
|
+
biobb_io/api/mmcif.py,sha256=6rHPSj4IcF0nCO2qSNph2ueFj0qWjIMx8ctY9wF5oV0,4622
|
|
15
|
+
biobb_io/api/pdb.py,sha256=gJI5rrf0OeSayPoa2A-4E0dmmi4RpQ1uO3nDYxzji5k,4969
|
|
16
|
+
biobb_io/api/pdb_cluster_zip.py,sha256=FWNnWaq2VnapKWY2eyEo_4oa0rKQ_uXiwI6D_zTnwhg,6622
|
|
17
|
+
biobb_io/api/pdb_variants.py,sha256=Hi7Iv95Yr4vdPF_5jCcesEzD-yGDkh3Kz2VKP9xySH8,6698
|
|
18
|
+
biobb_io/api/structure_info.py,sha256=GeWJefLCn44NT8AqxGKEd853vcJlx1r0I0ykDdyijCo,4437
|
|
19
|
+
biobb_io/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
+
biobb_io-5.2.1.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
21
|
+
biobb_io-5.2.1.dist-info/METADATA,sha256=areSXPTzUEO4pwQTu-AOiJBWZEBoL0pfrXmECedHuB0,6794
|
|
22
|
+
biobb_io-5.2.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
23
|
+
biobb_io-5.2.1.dist-info/entry_points.txt,sha256=dDYvVClLKe_Aa3HaMm-7WuS2d16FKGxlnKl816Cf5T4,644
|
|
24
|
+
biobb_io-5.2.1.dist-info/top_level.txt,sha256=1VPldlX2AnFaqODGFJK10WN8AOQuulpX88bLSaQdoS8,9
|
|
25
|
+
biobb_io-5.2.1.dist-info/RECORD,,
|
biobb_io-5.2.0.dist-info/RECORD
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
biobb_io/__init__.py,sha256=Xvx_Rj0RAAmZIhyokvORbIxSt6YB6ylDI6ziG0z8U84,77
|
|
2
|
-
biobb_io/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
biobb_io/api/__init__.py,sha256=s4K59-8EX7yX2qBtB8717ynIEjQ0lVNTp0BDSoc_raM,558
|
|
4
|
-
biobb_io/api/alphafold.py,sha256=EsUHtbypku6rNtMaDrnKf3KLoanuOOB0LOZOnenmoP0,4371
|
|
5
|
-
biobb_io/api/api_binding_site.py,sha256=2n2iPJozRKBZ7N_6nEibt8bx58Tp2TTzKpH5g6L5_7c,4819
|
|
6
|
-
biobb_io/api/canonical_fasta.py,sha256=ohuVq410Vk_OvnMVYxReb9QUuce3Ki3FFhV_DJhKZW8,4753
|
|
7
|
-
biobb_io/api/common.py,sha256=KY3ayHCaGBe9zTLDdDc_wK13xXeIaEHTegeWPR2t02M,15766
|
|
8
|
-
biobb_io/api/ideal_sdf.py,sha256=BKpFIPcZ8vV6ayQXCmP3Kt_rcQf3ltQCRTtcCqGHriE,4566
|
|
9
|
-
biobb_io/api/ligand.py,sha256=pMd5wvYqYNlVYT5MatrX346whVfwYY58B2RR_FqEwhE,4610
|
|
10
|
-
biobb_io/api/mddb.py,sha256=RWw1MgTTUpvdV-k7ZGNxBr4_wMXf29kGMZKdDj9UTYA,7135
|
|
11
|
-
biobb_io/api/memprotmd_sim.py,sha256=UKgc4UJPukjmBwelVcKbFqGqQhA9BOtfrlJiHf_aW5Q,4120
|
|
12
|
-
biobb_io/api/memprotmd_sim_list.py,sha256=aF4bXr--GZ8byK3ydtvrIL1OesvPLeTERAHsZ5r6AeE,4076
|
|
13
|
-
biobb_io/api/memprotmd_sim_search.py,sha256=VkbHE_qVoQov3iJQFaOy43ZSahCqOHy-7F2s9idcXxE,6436
|
|
14
|
-
biobb_io/api/mmcif.py,sha256=M8Tlto6d2hLTUwZGo6zIUGO5bzN6ZwMqYoiMMu1b-rM,4628
|
|
15
|
-
biobb_io/api/pdb.py,sha256=uRCMPSvuOSUObMsxlRC513wJ2bmFEh9P8FPtG30yfp0,4975
|
|
16
|
-
biobb_io/api/pdb_cluster_zip.py,sha256=2Ps9R2QhBvTflrRjyz3k6x1CzDnF57E76ng8SguvGjk,6631
|
|
17
|
-
biobb_io/api/pdb_variants.py,sha256=BGIbsHl64IANiq2R39dycIxBRGPjm3u1oGpTyeWQ2nA,6707
|
|
18
|
-
biobb_io/api/structure_info.py,sha256=aoh_Do7QipPgsse7ay-nlddeGCrK-YEjUHbg1Q21HgE,4443
|
|
19
|
-
biobb_io/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
-
biobb_io-5.2.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
21
|
-
biobb_io-5.2.0.dist-info/METADATA,sha256=B3RCQFlwvu7FMRM1StyFKIKxmbGZ5LCUmfjc6Wt9URk,7051
|
|
22
|
-
biobb_io-5.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
23
|
-
biobb_io-5.2.0.dist-info/entry_points.txt,sha256=dDYvVClLKe_Aa3HaMm-7WuS2d16FKGxlnKl816Cf5T4,644
|
|
24
|
-
biobb_io-5.2.0.dist-info/top_level.txt,sha256=1VPldlX2AnFaqODGFJK10WN8AOQuulpX88bLSaQdoS8,9
|
|
25
|
-
biobb_io-5.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|