biobb-io 5.0.1__py3-none-any.whl → 5.1.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/__init__.py +2 -0
- biobb_io/api/alphafold.py +3 -36
- biobb_io/api/api_binding_site.py +3 -36
- biobb_io/api/canonical_fasta.py +3 -36
- biobb_io/api/common.py +72 -29
- biobb_io/api/ideal_sdf.py +3 -36
- biobb_io/api/ligand.py +6 -39
- biobb_io/api/mddb.py +175 -0
- biobb_io/api/memprotmd_sim.py +3 -36
- biobb_io/api/memprotmd_sim_list.py +3 -39
- biobb_io/api/memprotmd_sim_search.py +3 -38
- biobb_io/api/mmcif.py +3 -36
- biobb_io/api/pdb.py +3 -36
- biobb_io/api/pdb_cluster_zip.py +4 -37
- biobb_io/api/pdb_variants.py +6 -47
- biobb_io/api/structure_info.py +3 -36
- {biobb_io-5.0.1.dist-info → biobb_io-5.1.1.dist-info}/METADATA +25 -13
- biobb_io-5.1.1.dist-info/RECORD +25 -0
- {biobb_io-5.0.1.dist-info → biobb_io-5.1.1.dist-info}/WHEEL +1 -1
- {biobb_io-5.0.1.dist-info → biobb_io-5.1.1.dist-info}/entry_points.txt +1 -0
- biobb_io-5.0.1.dist-info/RECORD +0 -24
- {biobb_io-5.0.1.dist-info → biobb_io-5.1.1.dist-info/licenses}/LICENSE +0 -0
- {biobb_io-5.0.1.dist-info → biobb_io-5.1.1.dist-info}/top_level.txt +0 -0
biobb_io/api/memprotmd_sim.py
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
"""Module containing the MemProtMDSim class and the command line interface."""
|
|
4
4
|
|
|
5
|
-
import argparse
|
|
6
5
|
from typing import Optional
|
|
7
|
-
|
|
8
|
-
from biobb_common.configuration import settings
|
|
9
6
|
from biobb_common.generic.biobb_object import BiobbObject
|
|
10
7
|
from biobb_common.tools.file_utils import launchlogger
|
|
11
8
|
|
|
@@ -108,41 +105,11 @@ def memprotmd_sim(
|
|
|
108
105
|
) -> int:
|
|
109
106
|
"""Execute the :class:`MemProtMDSim <api.memprotmd_sim.MemProtMDSim>` class and
|
|
110
107
|
execute the :meth:`launch() <api.memprotmd_sim.MemProtMDSim.launch>` method."""
|
|
108
|
+
return MemProtMDSim(**dict(locals())).launch()
|
|
111
109
|
|
|
112
|
-
return MemProtMDSim(
|
|
113
|
-
output_simulation=output_simulation, properties=properties, **kwargs
|
|
114
|
-
).launch()
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
def main():
|
|
118
|
-
"""Command line execution of this building block. Please check the command line documentation."""
|
|
119
|
-
parser = argparse.ArgumentParser(
|
|
120
|
-
description="Wrapper for the MemProtMD DB REST API (http://memprotmd.bioch.ox.ac.uk/) to download a simulation.",
|
|
121
|
-
formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, width=99999),
|
|
122
|
-
)
|
|
123
|
-
parser.add_argument(
|
|
124
|
-
"-c",
|
|
125
|
-
"--config",
|
|
126
|
-
required=False,
|
|
127
|
-
help="This file can be a YAML file, JSON file or JSON string",
|
|
128
|
-
)
|
|
129
|
-
|
|
130
|
-
# Specific args of each building block
|
|
131
|
-
required_args = parser.add_argument_group("required arguments")
|
|
132
|
-
required_args.add_argument(
|
|
133
|
-
"-o",
|
|
134
|
-
"--output_simulation",
|
|
135
|
-
required=True,
|
|
136
|
-
help="Path to the output simulation in a ZIP file. Accepted formats: zip.",
|
|
137
|
-
)
|
|
138
|
-
|
|
139
|
-
args = parser.parse_args()
|
|
140
|
-
config = args.config if args.config else None
|
|
141
|
-
properties = settings.ConfReader(config=config).get_prop_dic()
|
|
142
|
-
|
|
143
|
-
# Specific call of each building block
|
|
144
|
-
memprotmd_sim(output_simulation=args.output_simulation, properties=properties)
|
|
145
110
|
|
|
111
|
+
memprotmd_sim.__doc__ = MemProtMDSim.__doc__
|
|
112
|
+
main = MemProtMDSim.get_main(memprotmd_sim, "Wrapper for the MemProtMD DB REST API (http://memprotmd.bioch.ox.ac.uk/) to download a simulation.")
|
|
146
113
|
|
|
147
114
|
if __name__ == "__main__":
|
|
148
115
|
main()
|
|
@@ -2,13 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
"""Module containing the MemProtMDSimList class and the command line interface."""
|
|
4
4
|
|
|
5
|
-
import argparse
|
|
6
5
|
from typing import Optional
|
|
7
|
-
|
|
8
|
-
from biobb_common.configuration import settings
|
|
9
6
|
from biobb_common.generic.biobb_object import BiobbObject
|
|
10
7
|
from biobb_common.tools.file_utils import launchlogger
|
|
11
|
-
|
|
12
8
|
from biobb_io.api.common import check_output_path, get_memprotmd_sim_list, write_json
|
|
13
9
|
|
|
14
10
|
|
|
@@ -97,43 +93,11 @@ def memprotmd_sim_list(
|
|
|
97
93
|
) -> int:
|
|
98
94
|
"""Execute the :class:`MemProtMDSimList <api.memprotmd_sim_list.MemProtMDSimList>` class and
|
|
99
95
|
execute the :meth:`launch() <api.memprotmd_sim_list.MemProtMDSimList.launch>` method."""
|
|
96
|
+
return MemProtMDSimList(**dict(locals())).launch()
|
|
100
97
|
|
|
101
|
-
return MemProtMDSimList(
|
|
102
|
-
output_simulations=output_simulations, properties=properties, **kwargs
|
|
103
|
-
).launch()
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
def main():
|
|
107
|
-
"""Command line execution of this building block. Please check the command line documentation."""
|
|
108
|
-
parser = argparse.ArgumentParser(
|
|
109
|
-
description="Wrapper for the MemProtMD DB REST API (http://memprotmd.bioch.ox.ac.uk/) to get all available membrane-protein systems (simulations).",
|
|
110
|
-
formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, width=99999),
|
|
111
|
-
)
|
|
112
|
-
parser.add_argument(
|
|
113
|
-
"-c",
|
|
114
|
-
"--config",
|
|
115
|
-
required=False,
|
|
116
|
-
help="This file can be a YAML file, JSON file or JSON string",
|
|
117
|
-
)
|
|
118
|
-
|
|
119
|
-
# Specific args of each building block
|
|
120
|
-
required_args = parser.add_argument_group("required arguments")
|
|
121
|
-
required_args.add_argument(
|
|
122
|
-
"-o",
|
|
123
|
-
"--output_simulations",
|
|
124
|
-
required=True,
|
|
125
|
-
help="Path to the output JSON file. Accepted formats: json.",
|
|
126
|
-
)
|
|
127
|
-
|
|
128
|
-
args = parser.parse_args()
|
|
129
|
-
config = args.config if args.config else None
|
|
130
|
-
properties = settings.ConfReader(config=config).get_prop_dic()
|
|
131
|
-
|
|
132
|
-
# Specific call of each building block
|
|
133
|
-
memprotmd_sim_list(
|
|
134
|
-
output_simulations=args.output_simulations, properties=properties
|
|
135
|
-
)
|
|
136
98
|
|
|
99
|
+
memprotmd_sim_list.__doc__ = MemProtMDSimList.__doc__
|
|
100
|
+
main = MemProtMDSimList.get_main(memprotmd_sim_list, "Wrapper for the MemProtMD DB REST API (http://memprotmd.bioch.ox.ac.uk/) to get all available membrane-protein systems (simulations).")
|
|
137
101
|
|
|
138
102
|
if __name__ == "__main__":
|
|
139
103
|
main()
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
"""Module containing the MemProtMDSimSearch class and the command line interface."""
|
|
4
4
|
|
|
5
|
-
import argparse
|
|
6
5
|
from typing import Optional
|
|
7
|
-
|
|
8
|
-
from biobb_common.configuration import settings
|
|
9
6
|
from biobb_common.generic.biobb_object import BiobbObject
|
|
10
7
|
from biobb_common.tools.file_utils import launchlogger
|
|
11
8
|
|
|
@@ -108,43 +105,11 @@ def memprotmd_sim_search(
|
|
|
108
105
|
) -> int:
|
|
109
106
|
"""Execute the :class:`MemProtMDSimSearch <api.memprotmd_sim_search.MemProtMDSimSearch>` class and
|
|
110
107
|
execute the :meth:`launch() <api.memprotmd_sim_search.MemProtMDSimSearch.launch>` method."""
|
|
108
|
+
return MemProtMDSimSearch(**dict(locals())).launch()
|
|
111
109
|
|
|
112
|
-
return MemProtMDSimSearch(
|
|
113
|
-
output_simulations=output_simulations, properties=properties, **kwargs
|
|
114
|
-
).launch()
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
def main():
|
|
118
|
-
"""Command line execution of this building block. Please check the command line documentation."""
|
|
119
|
-
parser = argparse.ArgumentParser(
|
|
120
|
-
description="Wrapper for the MemProtMD DB REST API (http://memprotmd.bioch.ox.ac.uk/) to perform advanced searches.",
|
|
121
|
-
formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, width=99999),
|
|
122
|
-
)
|
|
123
|
-
parser.add_argument(
|
|
124
|
-
"-c",
|
|
125
|
-
"--config",
|
|
126
|
-
required=False,
|
|
127
|
-
help="This file can be a YAML file, JSON file or JSON string",
|
|
128
|
-
)
|
|
129
|
-
|
|
130
|
-
# Specific args of each building block
|
|
131
|
-
required_args = parser.add_argument_group("required arguments")
|
|
132
|
-
required_args.add_argument(
|
|
133
|
-
"-o",
|
|
134
|
-
"--output_simulations",
|
|
135
|
-
required=True,
|
|
136
|
-
help="Path to the output JSON file. Accepted formats: json.",
|
|
137
|
-
)
|
|
138
|
-
|
|
139
|
-
args = parser.parse_args()
|
|
140
|
-
config = args.config if args.config else None
|
|
141
|
-
properties = settings.ConfReader(config=config).get_prop_dic()
|
|
142
|
-
|
|
143
|
-
# Specific call of each building block
|
|
144
|
-
memprotmd_sim_search(
|
|
145
|
-
output_simulations=args.output_simulations, properties=properties
|
|
146
|
-
)
|
|
147
110
|
|
|
111
|
+
memprotmd_sim_search.__doc__ = MemProtMDSimSearch.__doc__
|
|
112
|
+
main = MemProtMDSimSearch.get_main(memprotmd_sim_search, "Wrapper for the MemProtMD DB REST API (http://memprotmd.bioch.ox.ac.uk/) to perform advanced searches.")
|
|
148
113
|
|
|
149
114
|
if __name__ == "__main__":
|
|
150
115
|
main()
|
biobb_io/api/mmcif.py
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
"""Module containing the Mmcif class and the command line interface."""
|
|
4
4
|
|
|
5
|
-
import argparse
|
|
6
5
|
from typing import Optional
|
|
7
|
-
|
|
8
|
-
from biobb_common.configuration import settings
|
|
9
6
|
from biobb_common.generic.biobb_object import BiobbObject
|
|
10
7
|
from biobb_common.tools.file_utils import launchlogger
|
|
11
8
|
|
|
@@ -113,41 +110,11 @@ class Mmcif(BiobbObject):
|
|
|
113
110
|
def mmcif(output_mmcif_path: str, properties: Optional[dict] = None, **kwargs) -> int:
|
|
114
111
|
"""Execute the :class:`Mmcif <api.mmcif.Mmcif>` class and
|
|
115
112
|
execute the :meth:`launch() <api.mmcif.Mmcif.launch>` method."""
|
|
113
|
+
return Mmcif(**dict(locals())).launch()
|
|
116
114
|
|
|
117
|
-
return Mmcif(
|
|
118
|
-
output_mmcif_path=output_mmcif_path, properties=properties, **kwargs
|
|
119
|
-
).launch()
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
def main():
|
|
123
|
-
"""Command line execution of this building block. Please check the command line documentation."""
|
|
124
|
-
parser = argparse.ArgumentParser(
|
|
125
|
-
description="This class is a wrapper for downloading a MMCIF structure from the Protein Data Bank.",
|
|
126
|
-
formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, width=99999),
|
|
127
|
-
)
|
|
128
|
-
parser.add_argument(
|
|
129
|
-
"-c",
|
|
130
|
-
"--config",
|
|
131
|
-
required=False,
|
|
132
|
-
help="This file can be a YAML file, JSON file or JSON string",
|
|
133
|
-
)
|
|
134
|
-
|
|
135
|
-
# Specific args of each building block
|
|
136
|
-
required_args = parser.add_argument_group("required arguments")
|
|
137
|
-
required_args.add_argument(
|
|
138
|
-
"-o",
|
|
139
|
-
"--output_mmcif_path",
|
|
140
|
-
required=True,
|
|
141
|
-
help="Path to the output MMCIF file. Accepted formats: cif, mmcif.",
|
|
142
|
-
)
|
|
143
|
-
|
|
144
|
-
args = parser.parse_args()
|
|
145
|
-
config = args.config if args.config else None
|
|
146
|
-
properties = settings.ConfReader(config=config).get_prop_dic()
|
|
147
|
-
|
|
148
|
-
# Specific call of each building block
|
|
149
|
-
mmcif(output_mmcif_path=args.output_mmcif_path, properties=properties)
|
|
150
115
|
|
|
116
|
+
mmcif.__doc__ = Mmcif.__doc__
|
|
117
|
+
main = Mmcif.get_main(mmcif, "This class is a wrapper for downloading a MMCIF structure from the Protein Data Bank.")
|
|
151
118
|
|
|
152
119
|
if __name__ == "__main__":
|
|
153
120
|
main()
|
biobb_io/api/pdb.py
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
"""Module containing the Pdb class and the command line interface."""
|
|
4
4
|
|
|
5
|
-
import argparse
|
|
6
5
|
from typing import Optional
|
|
7
|
-
|
|
8
|
-
from biobb_common.configuration import settings
|
|
9
6
|
from biobb_common.generic.biobb_object import BiobbObject
|
|
10
7
|
from biobb_common.tools.file_utils import launchlogger
|
|
11
8
|
|
|
@@ -118,41 +115,11 @@ class Pdb(BiobbObject):
|
|
|
118
115
|
def pdb(output_pdb_path: str, properties: Optional[dict] = None, **kwargs) -> int:
|
|
119
116
|
"""Execute the :class:`Pdb <api.pdb.Pdb>` class and
|
|
120
117
|
execute the :meth:`launch() <api.pdb.Pdb.launch>` method."""
|
|
118
|
+
return Pdb(**dict(locals())).launch()
|
|
121
119
|
|
|
122
|
-
return Pdb(
|
|
123
|
-
output_pdb_path=output_pdb_path, properties=properties, **kwargs
|
|
124
|
-
).launch()
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
def main():
|
|
128
|
-
"""Command line execution of this building block. Please check the command line documentation."""
|
|
129
|
-
parser = argparse.ArgumentParser(
|
|
130
|
-
description="This class is a wrapper for downloading a PDB structure from the Protein Data Bank.",
|
|
131
|
-
formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, width=99999),
|
|
132
|
-
)
|
|
133
|
-
parser.add_argument(
|
|
134
|
-
"-c",
|
|
135
|
-
"--config",
|
|
136
|
-
required=False,
|
|
137
|
-
help="This file can be a YAML file, JSON file or JSON string",
|
|
138
|
-
)
|
|
139
|
-
|
|
140
|
-
# Specific args of each building block
|
|
141
|
-
required_args = parser.add_argument_group("required arguments")
|
|
142
|
-
required_args.add_argument(
|
|
143
|
-
"-o",
|
|
144
|
-
"--output_pdb_path",
|
|
145
|
-
required=True,
|
|
146
|
-
help="Path to the output PDB file. Accepted formats: pdb.",
|
|
147
|
-
)
|
|
148
|
-
|
|
149
|
-
args = parser.parse_args()
|
|
150
|
-
config = args.config if args.config else None
|
|
151
|
-
properties = settings.ConfReader(config=config).get_prop_dic()
|
|
152
|
-
|
|
153
|
-
# Specific call of each building block
|
|
154
|
-
pdb(output_pdb_path=args.output_pdb_path, properties=properties)
|
|
155
120
|
|
|
121
|
+
pdb.__doc__ = Pdb.__doc__
|
|
122
|
+
main = Pdb.get_main(pdb, "This class is a wrapper for downloading a PDB structure from the Protein Data Bank.")
|
|
156
123
|
|
|
157
124
|
if __name__ == "__main__":
|
|
158
125
|
main()
|
biobb_io/api/pdb_cluster_zip.py
CHANGED
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
"""PdbClusterZip Module"""
|
|
4
4
|
|
|
5
|
-
import argparse
|
|
6
5
|
import os
|
|
7
6
|
from typing import Optional
|
|
8
|
-
|
|
9
|
-
from biobb_common.configuration import settings
|
|
10
7
|
from biobb_common.generic.biobb_object import BiobbObject
|
|
11
8
|
from biobb_common.tools import file_utils as fu
|
|
12
9
|
from biobb_common.tools.file_utils import launchlogger
|
|
@@ -132,7 +129,7 @@ class PdbClusterZip(BiobbObject):
|
|
|
132
129
|
fu.log("Zipping the pdb files to: %s" % self.output_pdb_zip_path)
|
|
133
130
|
fu.zip_list(self.output_pdb_zip_path, file_list, out_log=self.out_log)
|
|
134
131
|
|
|
135
|
-
self.tmp_files.extend([
|
|
132
|
+
self.tmp_files.extend([unique_dir])
|
|
136
133
|
self.remove_tmp_files()
|
|
137
134
|
|
|
138
135
|
self.check_arguments(output_files_created=True, raise_exception=False)
|
|
@@ -145,41 +142,11 @@ def pdb_cluster_zip(
|
|
|
145
142
|
) -> int:
|
|
146
143
|
"""Execute the :class:`PdbClusterZip <api.pdb_cluster_zip.PdbClusterZip>` class and
|
|
147
144
|
execute the :meth:`launch() <api.pdb_cluster_zip.PdbClusterZip.launch>` method."""
|
|
145
|
+
return PdbClusterZip(**dict(locals())).launch()
|
|
148
146
|
|
|
149
|
-
return PdbClusterZip(
|
|
150
|
-
output_pdb_zip_path=output_pdb_zip_path, properties=properties, **kwargs
|
|
151
|
-
).launch()
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
def main():
|
|
155
|
-
"""Command line execution of this building block. Please check the command line documentation."""
|
|
156
|
-
parser = argparse.ArgumentParser(
|
|
157
|
-
description="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.",
|
|
158
|
-
formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, width=99999),
|
|
159
|
-
)
|
|
160
|
-
parser.add_argument(
|
|
161
|
-
"-c",
|
|
162
|
-
"--config",
|
|
163
|
-
required=False,
|
|
164
|
-
help="This file can be a YAML file, JSON file or JSON string",
|
|
165
|
-
)
|
|
166
|
-
|
|
167
|
-
# Specific args of each building block
|
|
168
|
-
required_args = parser.add_argument_group("required arguments")
|
|
169
|
-
required_args.add_argument(
|
|
170
|
-
"-o",
|
|
171
|
-
"--output_pdb_zip_path",
|
|
172
|
-
required=True,
|
|
173
|
-
help="Path to the ZIP or PDB file containing the output PDB files. Accepted formats: pdb, zip.",
|
|
174
|
-
)
|
|
175
|
-
|
|
176
|
-
args = parser.parse_args()
|
|
177
|
-
config = args.config if args.config else None
|
|
178
|
-
properties = settings.ConfReader(config=config).get_prop_dic()
|
|
179
|
-
|
|
180
|
-
# Specific call of each building block
|
|
181
|
-
pdb_cluster_zip(output_pdb_zip_path=args.output_pdb_zip_path, properties=properties)
|
|
182
147
|
|
|
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.")
|
|
183
150
|
|
|
184
151
|
if __name__ == "__main__":
|
|
185
152
|
main()
|
biobb_io/api/pdb_variants.py
CHANGED
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
"""PdbVariants Module"""
|
|
4
4
|
|
|
5
|
-
import argparse
|
|
6
5
|
import re
|
|
7
|
-
from typing import Optional
|
|
8
|
-
|
|
9
6
|
import requests
|
|
10
|
-
from
|
|
7
|
+
from typing import Optional
|
|
11
8
|
from biobb_common.generic.biobb_object import BiobbObject
|
|
12
9
|
from biobb_common.tools import file_utils as fu
|
|
13
10
|
from biobb_common.tools.file_utils import launchlogger
|
|
@@ -131,14 +128,10 @@ class PdbVariants(BiobbObject):
|
|
|
131
128
|
for k in mapdic.keys():
|
|
132
129
|
for fragment in mapdic[k]:
|
|
133
130
|
if (
|
|
134
|
-
int(fragment["unp_start"])
|
|
135
|
-
<= int(uni_mut["resnum"])
|
|
136
|
-
<= int(fragment["unp_end"])
|
|
131
|
+
int(fragment["unp_start"]) <= int(uni_mut["resnum"]) <= int(fragment["unp_end"])
|
|
137
132
|
):
|
|
138
133
|
resnum = (
|
|
139
|
-
int(uni_mut["resnum"])
|
|
140
|
-
+ int(fragment["pdb_start"])
|
|
141
|
-
- int(fragment["unp_start"])
|
|
134
|
+
int(uni_mut["resnum"]) + int(fragment["pdb_start"]) - int(fragment["unp_start"])
|
|
142
135
|
)
|
|
143
136
|
mutations.append(
|
|
144
137
|
k[-1] + "." + uni_mut["wt"] + str(resnum) + uni_mut["mt"]
|
|
@@ -172,45 +165,11 @@ def pdb_variants(
|
|
|
172
165
|
) -> int:
|
|
173
166
|
"""Execute the :class:`PdbVariants <api.pdb_variants.PdbVariants>` class and
|
|
174
167
|
execute the :meth:`launch() <api.pdb_variants.PdbVariants.launch>` method."""
|
|
168
|
+
return PdbVariants(**dict(locals())).launch()
|
|
175
169
|
|
|
176
|
-
return PdbVariants(
|
|
177
|
-
output_mutations_list_txt=output_mutations_list_txt,
|
|
178
|
-
properties=properties,
|
|
179
|
-
**kwargs,
|
|
180
|
-
).launch()
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
def main():
|
|
184
|
-
"""Command line execution of this building block. Please check the command line documentation."""
|
|
185
|
-
parser = argparse.ArgumentParser(
|
|
186
|
-
description="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.",
|
|
187
|
-
formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, width=99999),
|
|
188
|
-
)
|
|
189
|
-
parser.add_argument(
|
|
190
|
-
"-c",
|
|
191
|
-
"--config",
|
|
192
|
-
required=False,
|
|
193
|
-
help="This file can be a YAML file, JSON file or JSON string",
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
# Specific args of each building block
|
|
197
|
-
required_args = parser.add_argument_group("required arguments")
|
|
198
|
-
required_args.add_argument(
|
|
199
|
-
"-o",
|
|
200
|
-
"--output_mutations_list_txt",
|
|
201
|
-
required=True,
|
|
202
|
-
help="Path to the TXT file containing an ASCII comma separated values of the mutations. Accepted formats: txt.",
|
|
203
|
-
)
|
|
204
|
-
|
|
205
|
-
args = parser.parse_args()
|
|
206
|
-
config = args.config if args.config else None
|
|
207
|
-
properties = settings.ConfReader(config=config).get_prop_dic()
|
|
208
|
-
|
|
209
|
-
# Specific call of each building block
|
|
210
|
-
pdb_variants(
|
|
211
|
-
output_mutations_list_txt=args.output_mutations_list_txt, properties=properties
|
|
212
|
-
)
|
|
213
170
|
|
|
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.")
|
|
214
173
|
|
|
215
174
|
if __name__ == "__main__":
|
|
216
175
|
main()
|
biobb_io/api/structure_info.py
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
"""Module containing the StructureInfo class and the command line interface."""
|
|
4
4
|
|
|
5
|
-
import argparse
|
|
6
5
|
from typing import Optional
|
|
7
|
-
|
|
8
|
-
from biobb_common.configuration import settings
|
|
9
6
|
from biobb_common.generic.biobb_object import BiobbObject
|
|
10
7
|
from biobb_common.tools.file_utils import launchlogger
|
|
11
8
|
|
|
@@ -113,41 +110,11 @@ def structure_info(
|
|
|
113
110
|
) -> int:
|
|
114
111
|
"""Execute the :class:`StructureInfo <api.structure_info.StructureInfo>` class and
|
|
115
112
|
execute the :meth:`launch() <api.structure_info.StructureInfo.launch>` method."""
|
|
113
|
+
return StructureInfo(**dict(locals())).launch()
|
|
116
114
|
|
|
117
|
-
return StructureInfo(
|
|
118
|
-
output_json_path=output_json_path, properties=properties, **kwargs
|
|
119
|
-
).launch()
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
def main():
|
|
123
|
-
"""Command line execution of this building block. Please check the command line documentation."""
|
|
124
|
-
parser = argparse.ArgumentParser(
|
|
125
|
-
description="This class is a wrapper for getting all the available information of a structure from the Protein Data Bank.",
|
|
126
|
-
formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, width=99999),
|
|
127
|
-
)
|
|
128
|
-
parser.add_argument(
|
|
129
|
-
"-c",
|
|
130
|
-
"--config",
|
|
131
|
-
required=False,
|
|
132
|
-
help="This file can be a YAML file, JSON file or JSON string",
|
|
133
|
-
)
|
|
134
|
-
|
|
135
|
-
# Specific args of each building block
|
|
136
|
-
required_args = parser.add_argument_group("required arguments")
|
|
137
|
-
required_args.add_argument(
|
|
138
|
-
"-o",
|
|
139
|
-
"--output_json_path",
|
|
140
|
-
required=True,
|
|
141
|
-
help="Path to the output JSON file with all the structure information. Accepted formats: json.",
|
|
142
|
-
)
|
|
143
|
-
|
|
144
|
-
args = parser.parse_args()
|
|
145
|
-
config = args.config if args.config else None
|
|
146
|
-
properties = settings.ConfReader(config=config).get_prop_dic()
|
|
147
|
-
|
|
148
|
-
# Specific call of each building block
|
|
149
|
-
structure_info(output_json_path=args.output_json_path, properties=properties)
|
|
150
115
|
|
|
116
|
+
structure_info.__doc__ = StructureInfo.__doc__
|
|
117
|
+
main = StructureInfo.get_main(structure_info, "This class is a wrapper for getting all the available information of a structure from the Protein Data Bank.")
|
|
151
118
|
|
|
152
119
|
if __name__ == "__main__":
|
|
153
120
|
main()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: biobb_io
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.1.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,14 +17,26 @@ Classifier: Operating System :: Unix
|
|
|
17
17
|
Requires-Python: >=3.9
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
|
-
Requires-Dist:
|
|
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
|
|
21
33
|
|
|
22
34
|
[](https://GitHub.com/bioexcel/biobb_io/tags/)
|
|
23
35
|
[](https://pypi.python.org/pypi/biobb-io/)
|
|
24
36
|
[](https://anaconda.org/bioconda/biobb_io)
|
|
25
37
|
[](https://anaconda.org/bioconda/biobb_io)
|
|
26
38
|
[](https://quay.io/repository/biocontainers/biobb_io?tab=tags)
|
|
27
|
-
[](https://depot.galaxyproject.org/singularity/biobb_io:5.
|
|
39
|
+
[](https://depot.galaxyproject.org/singularity/biobb_io:5.1.1--pyhdfd78af_0)
|
|
28
40
|
|
|
29
41
|
[](https://github.com/bioexcel/biobb_io)
|
|
30
42
|
[](https://pypi.org/project/biobb-io/)
|
|
@@ -62,7 +74,7 @@ The latest documentation of this package can be found in our readthedocs site:
|
|
|
62
74
|
[latest API documentation](http://biobb-io.readthedocs.io/en/latest/).
|
|
63
75
|
|
|
64
76
|
### Version
|
|
65
|
-
v5.
|
|
77
|
+
v5.1.1 2025.1
|
|
66
78
|
|
|
67
79
|
### Installation
|
|
68
80
|
Using PIP:
|
|
@@ -71,7 +83,7 @@ Using PIP:
|
|
|
71
83
|
|
|
72
84
|
* Installation:
|
|
73
85
|
|
|
74
|
-
pip install "biobb_io==5.
|
|
86
|
+
pip install "biobb_io==5.1.1"
|
|
75
87
|
|
|
76
88
|
* Usage: [Python API documentation](https://biobb-io.readthedocs.io/en/latest/modules.html)
|
|
77
89
|
|
|
@@ -79,7 +91,7 @@ Using ANACONDA:
|
|
|
79
91
|
* Installation:
|
|
80
92
|
|
|
81
93
|
|
|
82
|
-
conda install -c bioconda "biobb_io==5.
|
|
94
|
+
conda install -c bioconda "biobb_io==5.1.1"
|
|
83
95
|
|
|
84
96
|
|
|
85
97
|
* 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)
|
|
@@ -88,12 +100,12 @@ Using DOCKER:
|
|
|
88
100
|
* Installation:
|
|
89
101
|
|
|
90
102
|
|
|
91
|
-
docker pull quay.io/biocontainers/biobb_io:5.
|
|
103
|
+
docker pull quay.io/biocontainers/biobb_io:5.1.1--pyhdfd78af_0
|
|
92
104
|
|
|
93
105
|
* Usage:
|
|
94
106
|
|
|
95
107
|
|
|
96
|
-
docker run quay.io/biocontainers/biobb_io:5.
|
|
108
|
+
docker run quay.io/biocontainers/biobb_io:5.1.1--pyhdfd78af_0 <command>
|
|
97
109
|
|
|
98
110
|
|
|
99
111
|
The command list and specification can be found at the [Command Line documentation](https://biobb-io.readthedocs.io/en/latest/command_line.html).
|
|
@@ -105,7 +117,7 @@ Using SINGULARITY:
|
|
|
105
117
|
* Installation:
|
|
106
118
|
|
|
107
119
|
|
|
108
|
-
singularity pull --name biobb_io.sif https://depot.galaxyproject.org/singularity/biobb_io:5.
|
|
120
|
+
singularity pull --name biobb_io.sif https://depot.galaxyproject.org/singularity/biobb_io:5.1.1--pyhdfd78af_0
|
|
109
121
|
|
|
110
122
|
|
|
111
123
|
* Usage:
|
|
@@ -118,10 +130,10 @@ Using SINGULARITY:
|
|
|
118
130
|
The command list and specification can be found at the [Command Line documentation](https://biobb-io.readthedocs.io/en/latest/command_line.html).
|
|
119
131
|
|
|
120
132
|
### Copyright & Licensing
|
|
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 H2020 [823830](http://cordis.europa.eu/projects/823830), EU H2020 [675728](http://cordis.europa.eu/projects/675728)).
|
|
133
|
+
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)).
|
|
122
134
|
|
|
123
|
-
* (c) 2015-
|
|
124
|
-
* (c) 2015-
|
|
135
|
+
* (c) 2015-2025 [Barcelona Supercomputing Center](https://www.bsc.es/)
|
|
136
|
+
* (c) 2015-2025 [Institute for Research in Biomedicine](https://www.irbbarcelona.org/)
|
|
125
137
|
|
|
126
138
|
Licensed under the
|
|
127
139
|
[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=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,,
|
|
@@ -4,6 +4,7 @@ api_binding_site = biobb_io.api.api_binding_site:main
|
|
|
4
4
|
canonical_fasta = biobb_io.api.canonical_fasta:main
|
|
5
5
|
ideal_sdf = biobb_io.api.ideal_sdf:main
|
|
6
6
|
ligand = biobb_io.api.ligand:main
|
|
7
|
+
mddb = biobb_io.api.mddb:main
|
|
7
8
|
memprotmd_sim = biobb_io.api.memprotmd_sim:main
|
|
8
9
|
memprotmd_sim_list = biobb_io.api.memprotmd_sim_list:main
|
|
9
10
|
memprotmd_sim_search = biobb_io.api.memprotmd_sim_search:main
|
biobb_io-5.0.1.dist-info/RECORD
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
biobb_io/__init__.py,sha256=5fB4i9qgGOZ0ZrZRiZrdxgVxzntL56ErhlDSvnqqnP8,77
|
|
2
|
-
biobb_io/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
biobb_io/api/__init__.py,sha256=fR17sA2mh78x2NoyM25XN3vlsjka4aNubzaP4SvpCDc,538
|
|
4
|
-
biobb_io/api/alphafold.py,sha256=e_5N0yntKTjI-Sd9cM1IGv56FwlD1HqeODXooSLmSBg,5402
|
|
5
|
-
biobb_io/api/api_binding_site.py,sha256=cu6McFh1e75J8JMaZHjnfiK2ljQVOsREsXH3ZvOyUyU,5884
|
|
6
|
-
biobb_io/api/canonical_fasta.py,sha256=DTwvoV8yY_xX_X3E9PbhucNaLk21jJ-K_34db1p9SOU,5785
|
|
7
|
-
biobb_io/api/common.py,sha256=TQD3oSWL-WtXxJHnNp9469Iun-REqFeAb8dmKWU3UJc,13384
|
|
8
|
-
biobb_io/api/ideal_sdf.py,sha256=MxNiFLoQU0tF7k3mztDYHkIpmZ5s9Z0p4BI-NlTW7Dc,5599
|
|
9
|
-
biobb_io/api/ligand.py,sha256=_iFZWxuMPz2c0IOQPpeaBsvjsFcOr0wqtf0c6QICX2M,5654
|
|
10
|
-
biobb_io/api/memprotmd_sim.py,sha256=bnZFaAMkMIYzS75VognyNh0H8F5gZCwQM1ErhLrrtWw,5167
|
|
11
|
-
biobb_io/api/memprotmd_sim_list.py,sha256=zFsaM-d2efmiWPbMEMFEUmKKet9P18O4-7XsMxgh3a4,5099
|
|
12
|
-
biobb_io/api/memprotmd_sim_search.py,sha256=_bTzx552Sn2GiogGojWL5uR8mPNsgJwEUxA9P_jgiKE,7452
|
|
13
|
-
biobb_io/api/mmcif.py,sha256=kntBTLcWpxAubyjtSMEokP7ZyzmTWRyx36zqCEfnVgg,5690
|
|
14
|
-
biobb_io/api/pdb.py,sha256=mpaMklW3N5avUO08W3bB75cPRfPHcRccDB8TaG-xLF8,6024
|
|
15
|
-
biobb_io/api/pdb_cluster_zip.py,sha256=eml2QmX0NTUk8YkEwDPqSPu3ZjTtBqYUVl9r4eWtFzs,7749
|
|
16
|
-
biobb_io/api/pdb_variants.py,sha256=GbovaDIQZQDPiSQaHp1ohr_Ds3eucdkdLR7bcW3c7Q4,7969
|
|
17
|
-
biobb_io/api/structure_info.py,sha256=VKy9lxMTpbkGMuxWoEwP9NLwdw8AapLFutHs8J0qgjA,5503
|
|
18
|
-
biobb_io/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
|
-
biobb_io-5.0.1.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
20
|
-
biobb_io-5.0.1.dist-info/METADATA,sha256=fbV5Ca_iWW37qv4RVIsre4cCvwBx7BPtwUGWduZBsk4,6713
|
|
21
|
-
biobb_io-5.0.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
22
|
-
biobb_io-5.0.1.dist-info/entry_points.txt,sha256=UdQz4F28f13ergWXqKMrx15mH05nX7G85xBaP8W2Wdw,614
|
|
23
|
-
biobb_io-5.0.1.dist-info/top_level.txt,sha256=1VPldlX2AnFaqODGFJK10WN8AOQuulpX88bLSaQdoS8,9
|
|
24
|
-
biobb_io-5.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|