biobb-mem 5.0.0__tar.gz

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.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,133 @@
1
+ Metadata-Version: 2.1
2
+ Name: biobb_mem
3
+ Version: 5.0.0
4
+ Summary: Biobb_mem is a complete code template to promote and facilitate the creation of new Biobbs by the community.
5
+ Home-page: https://github.com/bioexcel/biobb_mem
6
+ Author: Biobb developers
7
+ Author-email: ruben.chaves@irbbarcelona.org
8
+ Project-URL: Documentation, http://biobb-mem.readthedocs.io/en/latest/
9
+ Project-URL: Bioexcel, https://bioexcel.eu/
10
+ Keywords: Bioinformatics Workflows BioExcel Compatibility
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Operating System :: MacOS :: MacOS X
17
+ Classifier: Operating System :: POSIX
18
+ Classifier: Operating System :: Unix
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: biobb_common==5.0.0
23
+
24
+ [![](https://img.shields.io/github/v/tag/bioexcel/biobb_mem?label=Version)](https://GitHub.com/bioexcel/biobb_mem/tags/)
25
+ [![](https://img.shields.io/pypi/v/biobb-mem.svg?label=Pypi)](https://pypi.python.org/pypi/biobb-mem/)
26
+ [![](https://img.shields.io/conda/vn/bioconda/biobb_mem?label=Conda)](https://anaconda.org/bioconda/biobb_mem)
27
+ [![](https://img.shields.io/conda/dn/bioconda/biobb_mem?label=Conda%20Downloads)](https://anaconda.org/bioconda/biobb_mem)
28
+ [![](https://img.shields.io/badge/Docker-Quay.io-blue)](https://quay.io/repository/biocontainers/biobb_mem?tab=tags)
29
+ [![](https://img.shields.io/badge/Singularity-GalaxyProject-blue)](https://depot.galaxyproject.org/singularity/biobb_mem:5.0.0--pyhdfd78af_0)
30
+
31
+ [![](https://img.shields.io/badge/OS-Unix%20%7C%20MacOS-blue)](https://github.com/bioexcel/biobb_mem)
32
+ [![](https://img.shields.io/pypi/pyversions/biobb-mem.svg?label=Python%20Versions)](https://pypi.org/project/biobb-mem/)
33
+ [![](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
34
+ [![](https://img.shields.io/badge/Open%20Source%3f-Yes!-blue)](https://github.com/bioexcel/biobb_mem)
35
+
36
+ [![](https://readthedocs.org/projects/biobb-mem/badge/?version=latest&label=Docs)](https://biobb-mem.readthedocs.io/en/latest/?badge=latest)
37
+ [![](https://img.shields.io/website?down_message=Offline&label=Biobb%20Website&up_message=Online&url=https%3A%2F%2Fmmb.irbbarcelona.org%2Fbiobb%2F)](https://mmb.irbbarcelona.org/biobb/)
38
+ [![](https://img.shields.io/badge/Youtube-tutorials-blue?logo=youtube&logoColor=red)](https://www.youtube.com/@BioExcelCoE/search?query=biobb)
39
+ [![](https://zenodo.org/badge/DOI/10.1038/s41597-019-0177-4.svg)](https://doi.org/10.1038/s41597-019-0177-4)
40
+ [![](https://img.shields.io/endpoint?color=brightgreen&url=https%3A%2F%2Fapi.juleskreuer.eu%2Fcitation-badge.php%3Fshield%26doi%3D10.1038%2Fs41597-019-0177-4)](https://www.nature.com/articles/s41597-019-0177-4#citeas)
41
+
42
+ [![](https://docs.bioexcel.eu/biobb_mem/junit/testsbadge.svg)](https://docs.bioexcel.eu/biobb_mem/junit/report.html)
43
+ [![](https://docs.bioexcel.eu/biobb_mem/coverage/coveragebadge.svg)](https://docs.bioexcel.eu/biobb_mem/coverage/)
44
+ [![](https://docs.bioexcel.eu/biobb_mem/flake8/flake8badge.svg)](https://docs.bioexcel.eu/biobb_mem/flake8/)
45
+ [![](https://img.shields.io/github/last-commit/bioexcel/biobb_mem?label=Last%20Commit)](https://github.com/bioexcel/biobb_mem/commits/master)
46
+ [![](https://img.shields.io/github/issues/bioexcel/biobb_mem.svg?color=brightgreen&label=Issues)](https://GitHub.com/bioexcel/biobb_mem/issues/)
47
+
48
+ [![fair-software.eu](https://img.shields.io/badge/fair--software.eu-%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8F-green)](https://fair-software.eu)
49
+ [![](https://www.bestpractices.dev/projects/8847/badge)](https://www.bestpractices.dev/projects/8847)
50
+
51
+ [](https://bestpractices.coreinfrastructure.org/projects/8847/badge)
52
+
53
+ [//]: # (The previous line invisible link is for compatibility with the howfairis script https://github.com/fair-software/howfairis-github-action/tree/main wich uses the old bestpractices URL)
54
+
55
+ # biobb_mem
56
+
57
+ ### Introduction
58
+ biobb_mem is a BioBB category for membrane analysis and manipulation.
59
+ biobb_mem allows analysis of membrane properties and manipulation of membrane systems using tools like MDAnalysis and LiPyphilic.
60
+ Biobb (BioExcel building blocks) packages are Python building blocks that
61
+ create new layer of compatibility and interoperability over popular
62
+ bioinformatics tools.
63
+ The latest documentation of this package can be found in our readthedocs site:
64
+ [latest API documentation](http://biobb-mem.readthedocs.io/en/latest/).
65
+
66
+ ### Version
67
+ v5.0.0 2024.2
68
+
69
+ ### Installation
70
+ Using PIP:
71
+
72
+ > **Important:** PIP only installs the package. All the dependencies must be installed separately. To perform a complete installation, please use ANACONDA or DOCKER.
73
+
74
+ * Installation:
75
+
76
+
77
+ pip install "biobb_mem>=5.0.0"
78
+
79
+
80
+ * Usage: [Python API documentation](https://biobb-mem.readthedocs.io/en/latest/modules.html)
81
+
82
+ Using ANACONDA:
83
+
84
+ * Installation:
85
+
86
+
87
+ conda install -c bioconda "biobb_mem>=5.0.0"
88
+
89
+
90
+ * Usage: With conda installation BioBBs can be used with the [Python API documentation](https://biobb-mem.readthedocs.io/en/latest/modules.html) and the [Command Line documentation](https://biobb-mem.readthedocs.io/en/latest/command_line.html)
91
+
92
+ Using DOCKER:
93
+
94
+ * Installation:
95
+
96
+
97
+ docker pull quay.io/biocontainers/biobb_mem:5.0.0--pyhdfd78af_0
98
+
99
+
100
+ * Usage:
101
+
102
+
103
+ docker run quay.io/biocontainers/biobb_mem:5.0.0--pyhdfd78af_0
104
+
105
+
106
+ Using SINGULARITY:
107
+
108
+ **MacOS users**: it's strongly recommended to avoid Singularity and use **Docker** as containerization system.
109
+
110
+ * Installation:
111
+
112
+
113
+ singularity pull --name biobb_mem.sif https://depot.galaxyproject.org/singularity/biobb_mem:5.0.0--pyhdfd78af_0
114
+
115
+
116
+ * Usage:
117
+
118
+
119
+ singularity exec biobb_mem.sif <command>
120
+
121
+
122
+ The command list and specification can be found at the [Command Line documentation](https://biobb-mem.readthedocs.io/en/latest/command_line.html).
123
+
124
+ ### Copyright & Licensing
125
+ 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)).
126
+
127
+ * (c) 2015-2024 [Barcelona Supercomputing Center](https://www.bsc.es/)
128
+ * (c) 2015-2024 [Institute for Research in Biomedicine](https://www.irbbarcelona.org/)
129
+
130
+ Licensed under the
131
+ [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0), see the file LICENSE for details.
132
+
133
+ ![](https://bioexcel.eu/wp-content/uploads/2019/04/Bioexcell_logo_1080px_transp.png "Bioexcel")
@@ -0,0 +1,110 @@
1
+ [![](https://img.shields.io/github/v/tag/bioexcel/biobb_mem?label=Version)](https://GitHub.com/bioexcel/biobb_mem/tags/)
2
+ [![](https://img.shields.io/pypi/v/biobb-mem.svg?label=Pypi)](https://pypi.python.org/pypi/biobb-mem/)
3
+ [![](https://img.shields.io/conda/vn/bioconda/biobb_mem?label=Conda)](https://anaconda.org/bioconda/biobb_mem)
4
+ [![](https://img.shields.io/conda/dn/bioconda/biobb_mem?label=Conda%20Downloads)](https://anaconda.org/bioconda/biobb_mem)
5
+ [![](https://img.shields.io/badge/Docker-Quay.io-blue)](https://quay.io/repository/biocontainers/biobb_mem?tab=tags)
6
+ [![](https://img.shields.io/badge/Singularity-GalaxyProject-blue)](https://depot.galaxyproject.org/singularity/biobb_mem:5.0.0--pyhdfd78af_0)
7
+
8
+ [![](https://img.shields.io/badge/OS-Unix%20%7C%20MacOS-blue)](https://github.com/bioexcel/biobb_mem)
9
+ [![](https://img.shields.io/pypi/pyversions/biobb-mem.svg?label=Python%20Versions)](https://pypi.org/project/biobb-mem/)
10
+ [![](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
11
+ [![](https://img.shields.io/badge/Open%20Source%3f-Yes!-blue)](https://github.com/bioexcel/biobb_mem)
12
+
13
+ [![](https://readthedocs.org/projects/biobb-mem/badge/?version=latest&label=Docs)](https://biobb-mem.readthedocs.io/en/latest/?badge=latest)
14
+ [![](https://img.shields.io/website?down_message=Offline&label=Biobb%20Website&up_message=Online&url=https%3A%2F%2Fmmb.irbbarcelona.org%2Fbiobb%2F)](https://mmb.irbbarcelona.org/biobb/)
15
+ [![](https://img.shields.io/badge/Youtube-tutorials-blue?logo=youtube&logoColor=red)](https://www.youtube.com/@BioExcelCoE/search?query=biobb)
16
+ [![](https://zenodo.org/badge/DOI/10.1038/s41597-019-0177-4.svg)](https://doi.org/10.1038/s41597-019-0177-4)
17
+ [![](https://img.shields.io/endpoint?color=brightgreen&url=https%3A%2F%2Fapi.juleskreuer.eu%2Fcitation-badge.php%3Fshield%26doi%3D10.1038%2Fs41597-019-0177-4)](https://www.nature.com/articles/s41597-019-0177-4#citeas)
18
+
19
+ [![](https://docs.bioexcel.eu/biobb_mem/junit/testsbadge.svg)](https://docs.bioexcel.eu/biobb_mem/junit/report.html)
20
+ [![](https://docs.bioexcel.eu/biobb_mem/coverage/coveragebadge.svg)](https://docs.bioexcel.eu/biobb_mem/coverage/)
21
+ [![](https://docs.bioexcel.eu/biobb_mem/flake8/flake8badge.svg)](https://docs.bioexcel.eu/biobb_mem/flake8/)
22
+ [![](https://img.shields.io/github/last-commit/bioexcel/biobb_mem?label=Last%20Commit)](https://github.com/bioexcel/biobb_mem/commits/master)
23
+ [![](https://img.shields.io/github/issues/bioexcel/biobb_mem.svg?color=brightgreen&label=Issues)](https://GitHub.com/bioexcel/biobb_mem/issues/)
24
+
25
+ [![fair-software.eu](https://img.shields.io/badge/fair--software.eu-%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8F-green)](https://fair-software.eu)
26
+ [![](https://www.bestpractices.dev/projects/8847/badge)](https://www.bestpractices.dev/projects/8847)
27
+
28
+ [](https://bestpractices.coreinfrastructure.org/projects/8847/badge)
29
+
30
+ [//]: # (The previous line invisible link is for compatibility with the howfairis script https://github.com/fair-software/howfairis-github-action/tree/main wich uses the old bestpractices URL)
31
+
32
+ # biobb_mem
33
+
34
+ ### Introduction
35
+ biobb_mem is a BioBB category for membrane analysis and manipulation.
36
+ biobb_mem allows analysis of membrane properties and manipulation of membrane systems using tools like MDAnalysis and LiPyphilic.
37
+ Biobb (BioExcel building blocks) packages are Python building blocks that
38
+ create new layer of compatibility and interoperability over popular
39
+ bioinformatics tools.
40
+ The latest documentation of this package can be found in our readthedocs site:
41
+ [latest API documentation](http://biobb-mem.readthedocs.io/en/latest/).
42
+
43
+ ### Version
44
+ v5.0.0 2024.2
45
+
46
+ ### Installation
47
+ Using PIP:
48
+
49
+ > **Important:** PIP only installs the package. All the dependencies must be installed separately. To perform a complete installation, please use ANACONDA or DOCKER.
50
+
51
+ * Installation:
52
+
53
+
54
+ pip install "biobb_mem>=5.0.0"
55
+
56
+
57
+ * Usage: [Python API documentation](https://biobb-mem.readthedocs.io/en/latest/modules.html)
58
+
59
+ Using ANACONDA:
60
+
61
+ * Installation:
62
+
63
+
64
+ conda install -c bioconda "biobb_mem>=5.0.0"
65
+
66
+
67
+ * Usage: With conda installation BioBBs can be used with the [Python API documentation](https://biobb-mem.readthedocs.io/en/latest/modules.html) and the [Command Line documentation](https://biobb-mem.readthedocs.io/en/latest/command_line.html)
68
+
69
+ Using DOCKER:
70
+
71
+ * Installation:
72
+
73
+
74
+ docker pull quay.io/biocontainers/biobb_mem:5.0.0--pyhdfd78af_0
75
+
76
+
77
+ * Usage:
78
+
79
+
80
+ docker run quay.io/biocontainers/biobb_mem:5.0.0--pyhdfd78af_0
81
+
82
+
83
+ Using SINGULARITY:
84
+
85
+ **MacOS users**: it's strongly recommended to avoid Singularity and use **Docker** as containerization system.
86
+
87
+ * Installation:
88
+
89
+
90
+ singularity pull --name biobb_mem.sif https://depot.galaxyproject.org/singularity/biobb_mem:5.0.0--pyhdfd78af_0
91
+
92
+
93
+ * Usage:
94
+
95
+
96
+ singularity exec biobb_mem.sif <command>
97
+
98
+
99
+ The command list and specification can be found at the [Command Line documentation](https://biobb-mem.readthedocs.io/en/latest/command_line.html).
100
+
101
+ ### Copyright & Licensing
102
+ 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)).
103
+
104
+ * (c) 2015-2024 [Barcelona Supercomputing Center](https://www.bsc.es/)
105
+ * (c) 2015-2024 [Institute for Research in Biomedicine](https://www.irbbarcelona.org/)
106
+
107
+ Licensed under the
108
+ [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0), see the file LICENSE for details.
109
+
110
+ ![](https://bioexcel.eu/wp-content/uploads/2019/04/Bioexcell_logo_1080px_transp.png "Bioexcel")
@@ -0,0 +1,3 @@
1
+ name = "biobb_mem"
2
+ __all__ = ["ambertools", "chap", "lipyphilicBB"]
3
+ __version__ = "5.0.0"
@@ -0,0 +1,2 @@
1
+ name = "ambertools"
2
+ __all__ = ["cpptraj_density"]
@@ -0,0 +1,188 @@
1
+ #!/usr/bin/env python3
2
+
3
+ """Module containing the Cpptraj Density class and the command line interface."""
4
+ import argparse
5
+ from pathlib import PurePath
6
+ from biobb_common.generic.biobb_object import BiobbObject
7
+ from biobb_common.configuration import settings
8
+ from biobb_common.tools import file_utils as fu
9
+ from biobb_common.tools.file_utils import launchlogger
10
+
11
+
12
+ class CpptrajDensity(BiobbObject):
13
+ """
14
+ | biobb_mem CpptrajDensity
15
+ | Wrapper of the Ambertools Cpptraj module for calculating density profile along an axis of a given cpptraj compatible trajectory.
16
+ | Cpptraj (the successor to ptraj) is the main program in Ambertools for processing coordinate trajectories and data files. The parameter names and defaults are the same as the ones in the official `Cpptraj manual <https://raw.githubusercontent.com/Amber-MD/cpptraj/master/doc/CpptrajManual.pdf>`_.
17
+
18
+ Args:
19
+ input_top_path (str): Path to the input structure or topology file. File type: input. `Sample file <https://github.com/bioexcel/biobb_mem/raw/master/biobb_mem/test/data/ambertools/topology.top>`_. Accepted formats: top (edam:format_3881), pdb (edam:format_1476), prmtop (edam:format_3881), parmtop (edam:format_3881), zip (edam:format_3987).
20
+ input_traj_path (str): Path to the input trajectory to be processed. File type: input. `Sample file <https://github.com/bioexcel/biobb_mem/raw/master/biobb_mem/test/data/ambertools/trajectory.xtc>`_. Accepted formats: mdcrd (edam:format_3878), crd (edam:format_3878), cdf (edam:format_3650), netcdf (edam:format_3650), nc (edam:format_3650), restart (edam:format_3886), ncrestart (edam:format_3886), restartnc (edam:format_3886), dcd (edam:format_3878), charmm (edam:format_3887), cor (edam:format_2033), pdb (edam:format_1476), mol2 (edam:format_3816), trr (edam:format_3910), gro (edam:format_2033), binpos (edam:format_3885), xtc (edam:format_3875), cif (edam:format_1477), arc (edam:format_2333), sqm (edam:format_2033), sdf (edam:format_3814), conflib (edam:format_2033).
21
+ output_cpptraj_path (str): Path to the output processed density analysis. File type: output. `Sample file <https://github.com/bioexcel/biobb_mem/raw/master/biobb_mem/test/reference/ambertools/reference/density_default.dat>`_. Accepted formats: dat (edam:format_1637), agr (edam:format_2033), xmgr (edam:format_2033), gnu (edam:format_2033).
22
+ output_traj_path (str) (Optional): Path to the output processed trajectory. File type: output. `Sample file <https://github.com/bioexcel/biobb_mem/raw/master/biobb_mem/test/reference/ambertools/trajectory_out.dcd>`_. Accepted formats: mdcrd (edam:format_3878), crd (edam:format_3878), cdf (edam:format_3650), netcdf (edam:format_3650), nc (edam:format_3650), restart (edam:format_3886), ncrestart (edam:format_3886), restartnc (edam:format_3886), dcd (edam:format_3878), charmm (edam:format_3887), cor (edam:format_2033), pdb (edam:format_1476), mol2 (edam:format_3816), trr (edam:format_3910), gro (edam:format_2033), binpos (edam:format_3885), xtc (edam:format_3875), cif (edam:format_1477), arc (edam:format_2333), sqm (edam:format_2033), sdf (edam:format_3814), conflib (edam:format_2033).
23
+ properties (dic - Python dictionary object containing the tool parameters, not input/output files):
24
+ * **start** (*int*) - (1) [1~100000|1] Starting frame for slicing
25
+ * **end** (*int*) - (-1) [-1~100000|1] Ending frame for slicing
26
+ * **steps** (*int*) - (1) [1~100000|1] Step for slicing
27
+ * **density_type** (*str*) - ("number") Number, mass, partial charge (q) or electron (Ne - q) density. Electron density will be converted to e-/Å3 by dividing the average area spanned by the other two dimensions.
28
+ * **mask** (*str*) - ("*") Arbitrary number of masks for atom selection; a dataset is created and the output will contain entries for each mask.. Default: all atoms.
29
+ * **delta** (*float*) - (0.25) Resolution, i.e. determines number of slices (i.e. histogram bins).
30
+ * **axis** (*str*) - ("z") Coordinate (axis) for density calculation. Vales: x, y, z.
31
+ * **bintype** (*str*) - ("bincenter") Determine whether histogram bin coordinates will be based on bin center (default) or bin edges. Values: bicenter, binedge.
32
+ * **restrict** (*str*) - (None) If specified, only calculate the density within a cylinder or square shape from the specified axis as defined by a distance cutoff. Values: cylinder, square.
33
+ * **cutoff** (*float*) - (None) The distance cutoff for 'restrict'. Required if 'restrict' is specified.
34
+ * **binary_path** (*str*) - ("cpptraj") Path to the cpptraj executable binary.
35
+ * **remove_tmp** (*bool*) - (True) [WF property] Remove temporal files.
36
+ * **restart** (*bool*) - (False) [WF property] Do not execute if output files exist.
37
+ * **sandbox_path** (*str*) - ("./") [WF property] Parent path to the sandbox directory.
38
+
39
+ Examples:
40
+ This is a use example of how to use the building block from Python::
41
+
42
+ from biobb_mem.ambertools.cpptraj_density import cpptraj_density
43
+ prop = {
44
+ 'density_type': 'number'
45
+ }
46
+ cpptraj_density(input_top_path='/path/to/myTopology.top',
47
+ input_traj_path='/path/to/myTrajectory.xtc',
48
+ output_cpptraj_path='/path/to/newAnalysis.dat',
49
+ properties=prop)
50
+
51
+ Info:
52
+ * wrapped_software:
53
+ * name: Ambertools Cpptraj
54
+ * version: >=22.0
55
+ * license: GNU
56
+ * ontology:
57
+ * name: EDAM
58
+ * schema: http://edamontology.org/EDAM.owl
59
+
60
+ """
61
+
62
+ def __init__(self, input_top_path, input_traj_path, output_cpptraj_path,
63
+ output_traj_path=None, properties=None, **kwargs) -> None:
64
+ properties = properties or {}
65
+
66
+ # Call parent class constructor
67
+ super().__init__(properties)
68
+ self.locals_var_dict = locals().copy()
69
+
70
+ # Input/Output files
71
+ self.io_dict = {
72
+ "in": {"input_top_path": input_top_path, "input_traj_path": input_traj_path},
73
+ "out": {"output_cpptraj_path": output_cpptraj_path, "output_traj_path": output_traj_path}
74
+ }
75
+
76
+ # Properties specific for BB
77
+ self.instructions_file = 'instructions.in'
78
+ self.start = properties.get('start', 1)
79
+ self.end = properties.get('end', -1)
80
+ self.steps = properties.get('steps', 1)
81
+ self.slice = f' {self.start} {self.end} {self.steps}'
82
+ self.density_type = properties.get('density_type', 'number')
83
+ self.mask = properties.get('mask', '*')
84
+ self.delta = properties.get('delta', 0.25)
85
+ self.axis = properties.get('axis', 'z')
86
+ self.bintype = properties.get('bintype', 'bincenter')
87
+ self.restrict = properties.get('restrict', None)
88
+ self.cutoff = properties.get('cutoff', None)
89
+ self.binary_path = properties.get('binary_path', 'cpptraj')
90
+ self.properties = properties
91
+
92
+ # Check the properties
93
+ self.check_properties(properties)
94
+ self.check_arguments()
95
+
96
+ def create_instructions_file(self, stage_io_dict, out_log, err_log):
97
+ """Creates an input file using the properties file settings"""
98
+ instructions_list = []
99
+ # different path if container execution or not
100
+ self.instructions_file = str(PurePath(fu.create_unique_dir()).joinpath(self.instructions_file))
101
+ # fu.create_name(prefix=self.prefix, step=self.step, name=self.instructions_file)
102
+ instructions_list.append('parm ' + stage_io_dict["in"]["input_top_path"])
103
+ instructions_list.append('trajin ' + stage_io_dict["in"]["input_traj_path"] + self.slice)
104
+ density_command = f'density {self.density_type} out {stage_io_dict["out"]["output_cpptraj_path"]} {self.mask} delta {self.delta} {self.axis} {self.bintype}'
105
+ if self.restrict:
106
+ density_command += f' restrict {self.restrict}'
107
+ if self.cutoff:
108
+ density_command += f' cutoff {self.cutoff}'
109
+ instructions_list.append(density_command)
110
+
111
+ # trajout
112
+ if ("output_traj_path" in stage_io_dict["out"]):
113
+ instructions_list.append('trajout ' + stage_io_dict["out"]["output_traj_path"])
114
+
115
+ # create .in file
116
+ with open(self.instructions_file, 'w') as mdp:
117
+ for line in instructions_list:
118
+ mdp.write(line.strip() + '\n')
119
+
120
+ return self.instructions_file
121
+
122
+ @launchlogger
123
+ def launch(self) -> int:
124
+ """Execute the :class:`CpptrajDensity <ambertools.cpptraj_density.CpptrajDensity>` ambertools.cpptraj_density.CpptrajDensity object."""
125
+
126
+ # Setup Biobb
127
+ if self.check_restart():
128
+ return 0
129
+ self.stage_files()
130
+
131
+ # create instructions file
132
+ self.create_instructions_file(self.stage_io_dict, self.out_log, self.err_log)
133
+ # create cmd and launch execution
134
+ self.cmd = [self.binary_path, '-i', self.instructions_file]
135
+
136
+ # Run Biobb block
137
+ self.run_biobb()
138
+ # Copy files to host
139
+ self.copy_to_host()
140
+ # remove temporary folder(s)
141
+ self.tmp_files.extend([
142
+ self.stage_io_dict.get("unique_dir"),
143
+ PurePath(self.instructions_file).parent
144
+ ])
145
+ self.remove_tmp_files()
146
+
147
+ self.check_arguments(output_files_created=True, raise_exception=False)
148
+
149
+ return self.return_code
150
+
151
+
152
+ def cpptraj_density(input_top_path: str, input_traj_path: str, output_cpptraj_path: str, output_traj_path: str = None, properties: dict = None, **kwargs) -> int:
153
+ """Execute the :class:`CpptrajDensity <ambertools.cpptraj_density.CpptrajDensity>` class and
154
+ execute the :meth:`launch() <ambertools.cpptraj_density.CpptrajDensity.launch>` method."""
155
+
156
+ return CpptrajDensity(input_top_path=input_top_path,
157
+ input_traj_path=input_traj_path,
158
+ output_cpptraj_path=output_cpptraj_path,
159
+ output_traj_path=output_traj_path,
160
+ properties=properties, **kwargs).launch()
161
+
162
+
163
+ def main():
164
+ """Command line execution of this building block. Please check the command line documentation."""
165
+ parser = argparse.ArgumentParser(description="Calculates the density along an axis of a given cpptraj compatible trajectory.", formatter_class=lambda prog: argparse.RawTextHelpFormatter(prog, width=99999))
166
+ parser.add_argument('--config', required=False, help='Configuration file')
167
+
168
+ # Specific args of each building block
169
+ required_args = parser.add_argument_group('required arguments')
170
+ required_args.add_argument('--input_top_path', required=True, help='Path to the input structure or topology file. Accepted formats: top, pdb, prmtop, parmtop, zip.')
171
+ required_args.add_argument('--input_traj_path', required=True, help='Path to the input trajectory to be processed. Accepted formats: crd, cdf, netcdf, restart, ncrestart, restartnc, dcd, charmm, cor, pdb, mol2, trr, gro, binpos, xtc, cif, arc, sqm, sdf, conflib.')
172
+ required_args.add_argument('--output_cpptraj_path', required=True, help='Path to the output processed analysis.')
173
+ parser.add_argument('--output_traj_path', required=False, help='Path to the output processed trajectory.')
174
+
175
+ args = parser.parse_args()
176
+ args.config = args.config or "{}"
177
+ properties = settings.ConfReader(config=args.config).get_prop_dic()
178
+
179
+ # Specific call of each building block
180
+ cpptraj_density(input_top_path=args.input_top_path,
181
+ input_traj_path=args.input_traj_path,
182
+ output_cpptraj_path=args.output_cpptraj_path,
183
+ output_traj_path=args.output_traj_path,
184
+ properties=properties)
185
+
186
+
187
+ if __name__ == '__main__':
188
+ main()
@@ -0,0 +1,2 @@
1
+ name = "chap"
2
+ __all__ = ["chap_run"]