biobb-io 5.1.1__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 CHANGED
@@ -2,4 +2,4 @@ from . import api
2
2
 
3
3
  name = "biobb_io"
4
4
  __all__ = ["api"]
5
- __version__ = "5.1.1"
5
+ __version__ = "5.2.1"
@@ -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
  )
@@ -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 <http://mmb.irbbarcelona.org/api/>`_ for downloading a single FASTA structure.
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 <http://mmb.irbbarcelona.org/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://mmb.irbbarcelona.org/api/pdb/" + pdb_code + "/coords/?"
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-model_v3.pdb"
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 = "http://mmb.irbbarcelona.org/api/pdb/" + pdb_code + ".cif"
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 = "http://mmb.irbbarcelona.org/api/pdbMonomer/" + ligand_code.lower()
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 = "http://mmb.irbbarcelona.org/api/pdb/" + pdb_code + ".fasta"
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/entry/pdb/" + pdb_code + "/fasta"
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://www.ebi.ac.uk/pdbe/static/files/pdbechem_v2/" + ligand_code.upper() + "_ideal.sdf"
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="http://mmb.irbbarcelona.org/api/pdb/%s.json",
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 = "http://mmb.irbbarcelona.org/api/pdb/"
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="http://mmb.irbbarcelona.org/api", out_log=None, global_log=None
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 <http://mmb.irbbarcelona.org/api/>`_ for downloading a single PDB ligand.
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 <http://mmb.irbbarcelona.org/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 (http://mmb.irbbarcelona.org/api/) for downloading a single PDB ligand.")
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/mddb.py CHANGED
@@ -169,6 +169,7 @@ mddb.__doc__ = MDDB.__doc__
169
169
  main = MDDB.get_main(
170
170
  mddb,
171
171
  "This class is a wrapper for downloading a trajectory / topology pair from the MDDB Database.",
172
+ custom_flags={"output_top_path": "-o", "output_trj_path": "-t"}
172
173
  )
173
174
 
174
175
  if __name__ == "__main__":
@@ -15,7 +15,7 @@ class MemProtMDSimList(BiobbObject):
15
15
  | Wrapper for the `MemProtMD DB REST API <http://memprotmd.bioch.ox.ac.uk/>`_ to get all available membrane-protein systems (simulations).
16
16
 
17
17
  Args:
18
- output_simulations (str): Path to the output JSON file. File type: output. `Sample file <https://github.com/bioexcel/biobb_io/raw/master/biobb_io/test/reference/api/output_sim_list.json>`_. Accepted formats: json (edam:format_3464).
18
+ output_simulations (str): Path to the output JSON file. File type: output. `Sample file <https://github.com/bioexcel/biobb_io/raw/master/biobb_io/test/reference/api/output_sim_list_schema_validator.json>`_. Accepted formats: json (edam:format_3464).
19
19
  properties (dic - Python dictionary object containing the tool parameters, not input/output files):
20
20
  * **remove_tmp** (*bool*) - (True) [WF property] Remove temporal files.
21
21
  * **restart** (*bool*) - (False) [WF property] Do not execute if output files exist.
@@ -16,7 +16,7 @@ class MemProtMDSimSearch(BiobbObject):
16
16
  | Wrapper for the `MemProtMD DB REST API <http://memprotmd.bioch.ox.ac.uk/>`_ to perform advanced searches.
17
17
 
18
18
  Args:
19
- output_simulations (str): Path to the output JSON file. File type: output. `Sample file <https://github.com/bioexcel/biobb_io/raw/master/biobb_io/test/reference/api/output_sim_search.json>`_. Accepted formats: json (edam:format_3464).
19
+ output_simulations (str): Path to the output JSON file. File type: output. `Sample file <https://github.com/bioexcel/biobb_io/raw/master/biobb_io/test/reference/api/output_sim_search_schema_validator.json>`_. Accepted formats: json (edam:format_3464).
20
20
  properties (dic - Python dictionary object containing the tool parameters, not input/output files):
21
21
  * **collection_name** (*str*) - ("refs") Name of the collection to query.
22
22
  * **keyword** (*str*) - (None) String to search for in the database metadata. Examples are families like gpcr or porin. Values: porin, outer membrane protein, membrane protein, gpcr (7-transmembrane domain receptors transducing extracellular signals into cells), ion channels, rhodopsin (The most famous GPCRs), abc, mip (Major Intrinsic Protein (MIP)/FNT superfamily: specific for the transport of water and small neutral solutes), ligand-gated (Ligand-dependent signal conversion from chemical signals to electric signals), ammonia (Regulating transepithelial ammonia secretion), mapeg (Eicosanoid and Glutathione metabolism proteins), transmembrane (Heme biosynthesis), protein, kinase (Tyrosine-protein kinases: regulate central nervous system; gene transcription and cell differentiation), glycoprotein (Expression of TCR complex), immunoglobulin (Recognition; binding and adhesion process of cells), integrin (Bridges for cell-cell and cell-extracellular matrix interaction), bnip3 (BNip3 protein family: protect cell from apoptosis), bcl-2 (Regulating cell-death; either induce apoptotic or inhibit apoptosis), atpase (ATPase regulators; P-P-bond hydrolysis-driven transporter), cytochrome (Terminal oxidase enzyme in electron transfer chain), nadp (Transmembrane proteins with NAD(P)-binding Rossmann-fold domains: monoamine oxidase; deaminates norepinephrine; epinephrine; serotonin and dopamine), a4 (Amyloid beta A4 protein; involved in alzheimer's diseases), lysosome (Lysosome-associated membrane glycoprotein: specific to lysosomes; CD107), necrosis (Tumor necrosis factor recepto: binding with TNF and NGF; interacting with a variety of signal molecules; highly associated with apoptosis), oxidoreductase (DHODH; biosynthesis of orotate), ceramidase (Neutral/alkaline ceramidase: converting sphingolipid to sphingosine), dehydrogenase (Aldehyde dehydrogenase:ALDH; Oxidation of aldehydes), mitochondrial, plastid.
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 <http://mmb.irbbarcelona.org/api/>`_ for downloading a single MMCIF structure.
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 <http://mmb.irbbarcelona.org/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 <http://mmb.irbbarcelona.org/api/>`_ for downloading a single PDB structure.
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 <http://mmb.irbbarcelona.org/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.
@@ -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 <http://mmb.irbbarcelona.org/api/>`_ for downloading a PDB cluster.
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 <http://mmb.irbbarcelona.org/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.
@@ -129,7 +129,7 @@ class PdbClusterZip(BiobbObject):
129
129
  fu.log("Zipping the pdb files to: %s" % self.output_pdb_zip_path)
130
130
  fu.zip_list(self.output_pdb_zip_path, file_list, out_log=self.out_log)
131
131
 
132
- self.tmp_files.extend([unique_dir])
132
+ self.tmp_files.append(unique_dir)
133
133
  self.remove_tmp_files()
134
134
 
135
135
  self.check_arguments(output_files_created=True, raise_exception=False)
@@ -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 (http://mmb.irbbarcelona.org/api/) for downloading a PDB cluster.")
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()
@@ -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 <http://mmb.irbbarcelona.org/api/>`_ for creating 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 <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 = "http://mmb.irbbarcelona.org/api"
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 (http://mmb.irbbarcelona.org/api/) for creating a list of all the variants mapped to a PDB code from the corresponding UNIPROT entries.")
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()
@@ -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 <http://mmb.irbbarcelona.org/api/>`_ for getting all the available information of a structure from the Protein Data Bank.
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 = "http://mmb.irbbarcelona.org/api/pdb/%s.json"
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.4
2
- Name: biobb_io
3
- Version: 5.1.1
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
@@ -9,34 +9,22 @@ Project-URL: Documentation, http://biobb-io.readthedocs.io/en/latest/
9
9
  Project-URL: Bioexcel, https://bioexcel.eu/
10
10
  Keywords: Bioinformatics Workflows BioExcel Compatibility
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
- Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: License :: OSI Approved :: Apache Software License
14
14
  Classifier: Operating System :: MacOS :: MacOS X
15
15
  Classifier: Operating System :: POSIX
16
16
  Classifier: Operating System :: Unix
17
- Requires-Python: >=3.9
17
+ Requires-Python: >=3.10
18
18
  Description-Content-Type: text/markdown
19
19
  License-File: LICENSE
20
- Requires-Dist: biobb_common==5.1.1
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://img.shields.io/github/v/tag/bioexcel/biobb_io?label=Version)](https://GitHub.com/bioexcel/biobb_io/tags/)
35
23
  [![](https://img.shields.io/pypi/v/biobb-io.svg?label=Pypi)](https://pypi.python.org/pypi/biobb-io/)
36
24
  [![](https://img.shields.io/conda/vn/bioconda/biobb_io?label=Conda)](https://anaconda.org/bioconda/biobb_io)
37
25
  [![](https://img.shields.io/conda/dn/bioconda/biobb_io?label=Conda%20Downloads)](https://anaconda.org/bioconda/biobb_io)
38
26
  [![](https://img.shields.io/badge/Docker-Quay.io-blue)](https://quay.io/repository/biocontainers/biobb_io?tab=tags)
39
- [![](https://img.shields.io/badge/Singularity-GalaxyProject-blue)](https://depot.galaxyproject.org/singularity/biobb_io:5.1.1--pyhdfd78af_0)
27
+ [![](https://img.shields.io/badge/Singularity-GalaxyProject-blue)](https://depot.galaxyproject.org/singularity/biobb_io:5.2.1--pyhdfd78af_0)
40
28
 
41
29
  [![](https://img.shields.io/badge/OS-Unix%20%7C%20MacOS-blue)](https://github.com/bioexcel/biobb_io)
42
30
  [![](https://img.shields.io/pypi/pyversions/biobb-io.svg?label=Python%20Versions)](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.1.1 2025.1
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.1.1"
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.1.1"
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.1.1--pyhdfd78af_0
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.1.1--pyhdfd78af_0 <command>
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.1.1--pyhdfd78af_0
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-2025 [Barcelona Supercomputing Center](https://www.bsc.es/)
136
- * (c) 2015-2025 [Institute for Research in Biomedicine](https://www.irbbarcelona.org/)
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: bdist_wheel (0.41.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,25 +0,0 @@
1
- biobb_io/__init__.py,sha256=yuyKuMxXekhEdVhlQAADYrFWmGfm2YyXpYKUdIDHuvc,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=J5qgudIQEeE9-UXwjFPQAiFkc7aHXVMMG7Z_j2Dj3yI,7067
11
- biobb_io/api/memprotmd_sim.py,sha256=UKgc4UJPukjmBwelVcKbFqGqQhA9BOtfrlJiHf_aW5Q,4120
12
- biobb_io/api/memprotmd_sim_list.py,sha256=WOg4YqWfMvIAgz_19oZ-8asKJnFv8MmRfz0t5ZQhUZo,4059
13
- biobb_io/api/memprotmd_sim_search.py,sha256=vWfBxNYCmGwGyzTpHnmnuwQ39ZXWO8T0MhdjGjGgZr4,6419
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=9s_HXWep7X3h-kNq1cYbadXgDmsAlG8_Sat0q0snyDA,6633
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.1.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
21
- biobb_io-5.1.1.dist-info/METADATA,sha256=LTPhHWFk9SzHSC-AxEUmkmrGU8wdoAvhSlTRHJfFxxc,7049
22
- biobb_io-5.1.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
23
- biobb_io-5.1.1.dist-info/entry_points.txt,sha256=dDYvVClLKe_Aa3HaMm-7WuS2d16FKGxlnKl816Cf5T4,644
24
- biobb_io-5.1.1.dist-info/top_level.txt,sha256=1VPldlX2AnFaqODGFJK10WN8AOQuulpX88bLSaQdoS8,9
25
- biobb_io-5.1.1.dist-info/RECORD,,