Skip to content

Commit 41d5487

Browse files
committed
initial dimporphite impl
1 parent 1272a23 commit 41d5487

File tree

9 files changed

+1578
-0
lines changed

9 files changed

+1578
-0
lines changed
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
Apache License
2+
3+
Version 2.0, January 2004
4+
5+
http://www.apache.org/licenses/
6+
7+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8+
9+
1. Definitions.
10+
11+
"License" shall mean the terms and conditions for use, reproduction, and
12+
distribution as defined by Sections 1 through 9 of this document.
13+
14+
"Licensor" shall mean the copyright owner or entity authorized by the
15+
copyright owner that is granting the License.
16+
17+
"Legal Entity" shall mean the union of the acting entity and all other
18+
entities that control, are controlled by, or are under common control with
19+
that entity. For the purposes of this definition, "control" means (i) the
20+
power, direct or indirect, to cause the direction or management of such
21+
entity, whether by contract or otherwise, or (ii) ownership of fifty percent
22+
(50%) or more of the outstanding shares, or (iii) beneficial ownership of such
23+
entity.
24+
25+
"You" (or "Your") shall mean an individual or Legal Entity exercising
26+
permissions granted by this License.
27+
28+
"Source" form shall mean the preferred form for making modifications,
29+
including but not limited to software source code, documentation source, and
30+
configuration files.
31+
32+
"Object" form shall mean any form resulting from mechanical transformation or
33+
translation of a Source form, including but not limited to compiled object
34+
code, generated documentation, and conversions to other media types.
35+
36+
"Work" shall mean the work of authorship, whether in Source or Object form,
37+
made available under the License, as indicated by a copyright notice that is
38+
included in or attached to the work (an example is provided in the Appendix
39+
below).
40+
41+
"Derivative Works" shall mean any work, whether in Source or Object form, that
42+
is based on (or derived from) the Work and for which the editorial revisions,
43+
annotations, elaborations, or other modifications represent, as a whole, an
44+
original work of authorship. For the purposes of this License, Derivative
45+
Works shall not include works that remain separable from, or merely link (or
46+
bind by name) to the interfaces of, the Work and Derivative Works thereof.
47+
48+
"Contribution" shall mean any work of authorship, including the original
49+
version of the Work and any modifications or additions to that Work or
50+
Derivative Works thereof, that is intentionally submitted to Licensor for
51+
inclusion in the Work by the copyright owner or by an individual or Legal
52+
Entity authorized to submit on behalf of the copyright owner. For the purposes
53+
of this definition, "submitted" means any form of electronic, verbal, or
54+
written communication sent to the Licensor or its representatives, including
55+
but not limited to communication on electronic mailing lists, source code
56+
control systems, and issue tracking systems that are managed by, or on behalf
57+
of, the Licensor for the purpose of discussing and improving the Work, but
58+
excluding communication that is conspicuously marked or otherwise designated
59+
in writing by the copyright owner as "Not a Contribution."
60+
61+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
62+
of whom a Contribution has been received by Licensor and subsequently
63+
incorporated within the Work.
64+
65+
2. Grant of Copyright License. Subject to the terms and conditions of this
66+
License, each Contributor hereby grants to You a perpetual, worldwide,
67+
non-exclusive, no-charge, royalty-free, irrevocable copyright license to
68+
reproduce, prepare Derivative Works of, publicly display, publicly perform,
69+
sublicense, and distribute the Work and such Derivative Works in Source or
70+
Object form.
71+
72+
3. Grant of Patent License. Subject to the terms and conditions of this
73+
License, each Contributor hereby grants to You a perpetual, worldwide,
74+
non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
75+
section) patent license to make, have made, use, offer to sell, sell, import,
76+
and otherwise transfer the Work, where such license applies only to those
77+
patent claims licensable by such Contributor that are necessarily infringed by
78+
their Contribution(s) alone or by combination of their Contribution(s) with
79+
the Work to which such Contribution(s) was submitted. If You institute patent
80+
litigation against any entity (including a cross-claim or counterclaim in a
81+
lawsuit) alleging that the Work or a Contribution incorporated within the Work
82+
constitutes direct or contributory patent infringement, then any patent
83+
licenses granted to You under this License for that Work shall terminate as of
84+
the date such litigation is filed.
85+
86+
4. Redistribution. You may reproduce and distribute copies of the Work or
87+
Derivative Works thereof in any medium, with or without modifications, and in
88+
Source or Object form, provided that You meet the following conditions:
89+
90+
You must give any other recipients of the Work or Derivative Works a copy of
91+
this License; and You must cause any modified files to carry prominent notices
92+
stating that You changed the files; and You must retain, in the Source form of
93+
any Derivative Works that You distribute, all copyright, patent, trademark,
94+
and attribution notices from the Source form of the Work, excluding those
95+
notices that do not pertain to any part of the Derivative Works; and If the
96+
Work includes a "NOTICE" text file as part of its distribution, then any
97+
Derivative Works that You distribute must include a readable copy of the
98+
attribution notices contained within such NOTICE file, excluding those notices
99+
that do not pertain to any part of the Derivative Works, in at least one of
100+
the following places: within a NOTICE text file distributed as part of the
101+
Derivative Works; within the Source form or documentation, if provided along
102+
with the Derivative Works; or, within a display generated by the Derivative
103+
Works, if and wherever such third-party notices normally appear. The contents
104+
of the NOTICE file are for informational purposes only and do not modify the
105+
License. You may add Your own attribution notices within Derivative Works that
106+
You distribute, alongside or as an addendum to the NOTICE text from the Work,
107+
provided that such additional attribution notices cannot be construed as
108+
modifying the License.
109+
110+
You may add Your own copyright statement to Your modifications and may provide
111+
additional or different license terms and conditions for use, reproduction, or
112+
distribution of Your modifications, or for any such Derivative Works as a
113+
whole, provided Your use, reproduction, and distribution of the Work otherwise
114+
complies with the conditions stated in this License. 5. Submission of
115+
Contributions. Unless You explicitly state otherwise, any Contribution
116+
intentionally submitted for inclusion in the Work by You to the Licensor shall
117+
be under the terms and conditions of this License, without any additional
118+
terms or conditions. Notwithstanding the above, nothing herein shall supersede
119+
or modify the terms of any separate license agreement you may have executed
120+
with Licensor regarding such Contributions.
121+
122+
6. Trademarks. This License does not grant permission to use the trade names,
123+
trademarks, service marks, or product names of the Licensor, except as
124+
required for reasonable and customary use in describing the origin of the Work
125+
and reproducing the content of the NOTICE file.
126+
127+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
128+
writing, Licensor provides the Work (and each Contributor provides its
129+
Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
130+
KIND, either express or implied, including, without limitation, any warranties
131+
or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
132+
PARTICULAR PURPOSE. You are solely responsible for determining the
133+
appropriateness of using or redistributing the Work and assume any risks
134+
associated with Your exercise of permissions under this License.
135+
136+
8. Limitation of Liability. In no event and under no legal theory, whether in
137+
tort (including negligence), contract, or otherwise, unless required by
138+
applicable law (such as deliberate and grossly negligent acts) or agreed to in
139+
writing, shall any Contributor be liable to You for damages, including any
140+
direct, indirect, special, incidental, or consequential damages of any
141+
character arising as a result of this License or out of the use or inability
142+
to use the Work (including but not limited to damages for loss of goodwill,
143+
work stoppage, computer failure or malfunction, or any and all other
144+
commercial damages or losses), even if such Contributor has been advised of
145+
the possibility of such damages.
146+
147+
9. Accepting Warranty or Additional Liability. While redistributing the Work
148+
or Derivative Works thereof, You may choose to offer, and charge a fee for,
149+
acceptance of support, warranty, indemnity, or other liability obligations
150+
and/or rights consistent with this License. However, in accepting such
151+
obligations, You may act only on Your own behalf and on Your sole
152+
responsibility, not on behalf of any other Contributor, and only if You agree
153+
to indemnify, defend, and hold each Contributor harmless for any liability
154+
incurred by, or claims asserted against, such Contributor by reason of your
155+
accepting any such warranty or additional liability.
156+
157+
END OF TERMS AND CONDITIONS
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
This package uses dimorphite-dl from the Durrant lab at University of Pittsburg.
2+
For details see:
3+
Ropp PJ, Kaminsky JC, Yablonski S, Durrant JD (2019) Dimorphite-DL: An open-source
4+
program for enumerating the ionization states of drug-like small molecules.
5+
J Cheminform 11:14. doi:10.1186/s13321-019-0336-9.
6+
7+
The original Dimorphite-dl code can be found here:
8+
https://git.durrantlab.pitt.edu/jdurrant/dimorphite_dl
9+
The two files dimorphite_dl.py and site_substructures.smarts are copied here.

src/python/pipelines/dimorphite/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)