MultiMM 1.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.
Potentially problematic release.
This version of MultiMM might be problematic. Click here for more details.
- multimm-1.0.0/LICENSE +339 -0
- multimm-1.0.0/MultiMM.egg-info/PKG-INFO +229 -0
- multimm-1.0.0/MultiMM.egg-info/SOURCES.txt +9 -0
- multimm-1.0.0/MultiMM.egg-info/dependency_links.txt +1 -0
- multimm-1.0.0/MultiMM.egg-info/entry_points.txt +2 -0
- multimm-1.0.0/MultiMM.egg-info/requires.txt +19 -0
- multimm-1.0.0/MultiMM.egg-info/top_level.txt +1 -0
- multimm-1.0.0/PKG-INFO +229 -0
- multimm-1.0.0/README.md +197 -0
- multimm-1.0.0/setup.cfg +4 -0
- multimm-1.0.0/setup.py +48 -0
multimm-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
GNU GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 2, June 1991
|
|
3
|
+
|
|
4
|
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
|
5
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
6
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
7
|
+
of this license document, but changing it is not allowed.
|
|
8
|
+
|
|
9
|
+
Preamble
|
|
10
|
+
|
|
11
|
+
The licenses for most software are designed to take away your
|
|
12
|
+
freedom to share and change it. By contrast, the GNU General Public
|
|
13
|
+
License is intended to guarantee your freedom to share and change free
|
|
14
|
+
software--to make sure the software is free for all its users. This
|
|
15
|
+
General Public License applies to most of the Free Software
|
|
16
|
+
Foundation's software and to any other program whose authors commit to
|
|
17
|
+
using it. (Some other Free Software Foundation software is covered by
|
|
18
|
+
the GNU Lesser General Public License instead.) You can apply it to
|
|
19
|
+
your programs, too.
|
|
20
|
+
|
|
21
|
+
When we speak of free software, we are referring to freedom, not
|
|
22
|
+
price. Our General Public Licenses are designed to make sure that you
|
|
23
|
+
have the freedom to distribute copies of free software (and charge for
|
|
24
|
+
this service if you wish), that you receive source code or can get it
|
|
25
|
+
if you want it, that you can change the software or use pieces of it
|
|
26
|
+
in new free programs; and that you know you can do these things.
|
|
27
|
+
|
|
28
|
+
To protect your rights, we need to make restrictions that forbid
|
|
29
|
+
anyone to deny you these rights or to ask you to surrender the rights.
|
|
30
|
+
These restrictions translate to certain responsibilities for you if you
|
|
31
|
+
distribute copies of the software, or if you modify it.
|
|
32
|
+
|
|
33
|
+
For example, if you distribute copies of such a program, whether
|
|
34
|
+
gratis or for a fee, you must give the recipients all the rights that
|
|
35
|
+
you have. You must make sure that they, too, receive or can get the
|
|
36
|
+
source code. And you must show them these terms so they know their
|
|
37
|
+
rights.
|
|
38
|
+
|
|
39
|
+
We protect your rights with two steps: (1) copyright the software, and
|
|
40
|
+
(2) offer you this license which gives you legal permission to copy,
|
|
41
|
+
distribute and/or modify the software.
|
|
42
|
+
|
|
43
|
+
Also, for each author's protection and ours, we want to make certain
|
|
44
|
+
that everyone understands that there is no warranty for this free
|
|
45
|
+
software. If the software is modified by someone else and passed on, we
|
|
46
|
+
want its recipients to know that what they have is not the original, so
|
|
47
|
+
that any problems introduced by others will not reflect on the original
|
|
48
|
+
authors' reputations.
|
|
49
|
+
|
|
50
|
+
Finally, any free program is threatened constantly by software
|
|
51
|
+
patents. We wish to avoid the danger that redistributors of a free
|
|
52
|
+
program will individually obtain patent licenses, in effect making the
|
|
53
|
+
program proprietary. To prevent this, we have made it clear that any
|
|
54
|
+
patent must be licensed for everyone's free use or not licensed at all.
|
|
55
|
+
|
|
56
|
+
The precise terms and conditions for copying, distribution and
|
|
57
|
+
modification follow.
|
|
58
|
+
|
|
59
|
+
GNU GENERAL PUBLIC LICENSE
|
|
60
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
61
|
+
|
|
62
|
+
0. This License applies to any program or other work which contains
|
|
63
|
+
a notice placed by the copyright holder saying it may be distributed
|
|
64
|
+
under the terms of this General Public License. The "Program", below,
|
|
65
|
+
refers to any such program or work, and a "work based on the Program"
|
|
66
|
+
means either the Program or any derivative work under copyright law:
|
|
67
|
+
that is to say, a work containing the Program or a portion of it,
|
|
68
|
+
either verbatim or with modifications and/or translated into another
|
|
69
|
+
language. (Hereinafter, translation is included without limitation in
|
|
70
|
+
the term "modification".) Each licensee is addressed as "you".
|
|
71
|
+
|
|
72
|
+
Activities other than copying, distribution and modification are not
|
|
73
|
+
covered by this License; they are outside its scope. The act of
|
|
74
|
+
running the Program is not restricted, and the output from the Program
|
|
75
|
+
is covered only if its contents constitute a work based on the
|
|
76
|
+
Program (independent of having been made by running the Program).
|
|
77
|
+
Whether that is true depends on what the Program does.
|
|
78
|
+
|
|
79
|
+
1. You may copy and distribute verbatim copies of the Program's
|
|
80
|
+
source code as you receive it, in any medium, provided that you
|
|
81
|
+
conspicuously and appropriately publish on each copy an appropriate
|
|
82
|
+
copyright notice and disclaimer of warranty; keep intact all the
|
|
83
|
+
notices that refer to this License and to the absence of any warranty;
|
|
84
|
+
and give any other recipients of the Program a copy of this License
|
|
85
|
+
along with the Program.
|
|
86
|
+
|
|
87
|
+
You may charge a fee for the physical act of transferring a copy, and
|
|
88
|
+
you may at your option offer warranty protection in exchange for a fee.
|
|
89
|
+
|
|
90
|
+
2. You may modify your copy or copies of the Program or any portion
|
|
91
|
+
of it, thus forming a work based on the Program, and copy and
|
|
92
|
+
distribute such modifications or work under the terms of Section 1
|
|
93
|
+
above, provided that you also meet all of these conditions:
|
|
94
|
+
|
|
95
|
+
a) You must cause the modified files to carry prominent notices
|
|
96
|
+
stating that you changed the files and the date of any change.
|
|
97
|
+
|
|
98
|
+
b) You must cause any work that you distribute or publish, that in
|
|
99
|
+
whole or in part contains or is derived from the Program or any
|
|
100
|
+
part thereof, to be licensed as a whole at no charge to all third
|
|
101
|
+
parties under the terms of this License.
|
|
102
|
+
|
|
103
|
+
c) If the modified program normally reads commands interactively
|
|
104
|
+
when run, you must cause it, when started running for such
|
|
105
|
+
interactive use in the most ordinary way, to print or display an
|
|
106
|
+
announcement including an appropriate copyright notice and a
|
|
107
|
+
notice that there is no warranty (or else, saying that you provide
|
|
108
|
+
a warranty) and that users may redistribute the program under
|
|
109
|
+
these conditions, and telling the user how to view a copy of this
|
|
110
|
+
License. (Exception: if the Program itself is interactive but
|
|
111
|
+
does not normally print such an announcement, your work based on
|
|
112
|
+
the Program is not required to print an announcement.)
|
|
113
|
+
|
|
114
|
+
These requirements apply to the modified work as a whole. If
|
|
115
|
+
identifiable sections of that work are not derived from the Program,
|
|
116
|
+
and can be reasonably considered independent and separate works in
|
|
117
|
+
themselves, then this License, and its terms, do not apply to those
|
|
118
|
+
sections when you distribute them as separate works. But when you
|
|
119
|
+
distribute the same sections as part of a whole which is a work based
|
|
120
|
+
on the Program, the distribution of the whole must be on the terms of
|
|
121
|
+
this License, whose permissions for other licensees extend to the
|
|
122
|
+
entire whole, and thus to each and every part regardless of who wrote it.
|
|
123
|
+
|
|
124
|
+
Thus, it is not the intent of this section to claim rights or contest
|
|
125
|
+
your rights to work written entirely by you; rather, the intent is to
|
|
126
|
+
exercise the right to control the distribution of derivative or
|
|
127
|
+
collective works based on the Program.
|
|
128
|
+
|
|
129
|
+
In addition, mere aggregation of another work not based on the Program
|
|
130
|
+
with the Program (or with a work based on the Program) on a volume of
|
|
131
|
+
a storage or distribution medium does not bring the other work under
|
|
132
|
+
the scope of this License.
|
|
133
|
+
|
|
134
|
+
3. You may copy and distribute the Program (or a work based on it,
|
|
135
|
+
under Section 2) in object code or executable form under the terms of
|
|
136
|
+
Sections 1 and 2 above provided that you also do one of the following:
|
|
137
|
+
|
|
138
|
+
a) Accompany it with the complete corresponding machine-readable
|
|
139
|
+
source code, which must be distributed under the terms of Sections
|
|
140
|
+
1 and 2 above on a medium customarily used for software interchange; or,
|
|
141
|
+
|
|
142
|
+
b) Accompany it with a written offer, valid for at least three
|
|
143
|
+
years, to give any third party, for a charge no more than your
|
|
144
|
+
cost of physically performing source distribution, a complete
|
|
145
|
+
machine-readable copy of the corresponding source code, to be
|
|
146
|
+
distributed under the terms of Sections 1 and 2 above on a medium
|
|
147
|
+
customarily used for software interchange; or,
|
|
148
|
+
|
|
149
|
+
c) Accompany it with the information you received as to the offer
|
|
150
|
+
to distribute corresponding source code. (This alternative is
|
|
151
|
+
allowed only for noncommercial distribution and only if you
|
|
152
|
+
received the program in object code or executable form with such
|
|
153
|
+
an offer, in accord with Subsection b above.)
|
|
154
|
+
|
|
155
|
+
The source code for a work means the preferred form of the work for
|
|
156
|
+
making modifications to it. For an executable work, complete source
|
|
157
|
+
code means all the source code for all modules it contains, plus any
|
|
158
|
+
associated interface definition files, plus the scripts used to
|
|
159
|
+
control compilation and installation of the executable. However, as a
|
|
160
|
+
special exception, the source code distributed need not include
|
|
161
|
+
anything that is normally distributed (in either source or binary
|
|
162
|
+
form) with the major components (compiler, kernel, and so on) of the
|
|
163
|
+
operating system on which the executable runs, unless that component
|
|
164
|
+
itself accompanies the executable.
|
|
165
|
+
|
|
166
|
+
If distribution of executable or object code is made by offering
|
|
167
|
+
access to copy from a designated place, then offering equivalent
|
|
168
|
+
access to copy the source code from the same place counts as
|
|
169
|
+
distribution of the source code, even though third parties are not
|
|
170
|
+
compelled to copy the source along with the object code.
|
|
171
|
+
|
|
172
|
+
4. You may not copy, modify, sublicense, or distribute the Program
|
|
173
|
+
except as expressly provided under this License. Any attempt
|
|
174
|
+
otherwise to copy, modify, sublicense or distribute the Program is
|
|
175
|
+
void, and will automatically terminate your rights under this License.
|
|
176
|
+
However, parties who have received copies, or rights, from you under
|
|
177
|
+
this License will not have their licenses terminated so long as such
|
|
178
|
+
parties remain in full compliance.
|
|
179
|
+
|
|
180
|
+
5. You are not required to accept this License, since you have not
|
|
181
|
+
signed it. However, nothing else grants you permission to modify or
|
|
182
|
+
distribute the Program or its derivative works. These actions are
|
|
183
|
+
prohibited by law if you do not accept this License. Therefore, by
|
|
184
|
+
modifying or distributing the Program (or any work based on the
|
|
185
|
+
Program), you indicate your acceptance of this License to do so, and
|
|
186
|
+
all its terms and conditions for copying, distributing or modifying
|
|
187
|
+
the Program or works based on it.
|
|
188
|
+
|
|
189
|
+
6. Each time you redistribute the Program (or any work based on the
|
|
190
|
+
Program), the recipient automatically receives a license from the
|
|
191
|
+
original licensor to copy, distribute or modify the Program subject to
|
|
192
|
+
these terms and conditions. You may not impose any further
|
|
193
|
+
restrictions on the recipients' exercise of the rights granted herein.
|
|
194
|
+
You are not responsible for enforcing compliance by third parties to
|
|
195
|
+
this License.
|
|
196
|
+
|
|
197
|
+
7. If, as a consequence of a court judgment or allegation of patent
|
|
198
|
+
infringement or for any other reason (not limited to patent issues),
|
|
199
|
+
conditions are imposed on you (whether by court order, agreement or
|
|
200
|
+
otherwise) that contradict the conditions of this License, they do not
|
|
201
|
+
excuse you from the conditions of this License. If you cannot
|
|
202
|
+
distribute so as to satisfy simultaneously your obligations under this
|
|
203
|
+
License and any other pertinent obligations, then as a consequence you
|
|
204
|
+
may not distribute the Program at all. For example, if a patent
|
|
205
|
+
license would not permit royalty-free redistribution of the Program by
|
|
206
|
+
all those who receive copies directly or indirectly through you, then
|
|
207
|
+
the only way you could satisfy both it and this License would be to
|
|
208
|
+
refrain entirely from distribution of the Program.
|
|
209
|
+
|
|
210
|
+
If any portion of this section is held invalid or unenforceable under
|
|
211
|
+
any particular circumstance, the balance of the section is intended to
|
|
212
|
+
apply and the section as a whole is intended to apply in other
|
|
213
|
+
circumstances.
|
|
214
|
+
|
|
215
|
+
It is not the purpose of this section to induce you to infringe any
|
|
216
|
+
patents or other property right claims or to contest validity of any
|
|
217
|
+
such claims; this section has the sole purpose of protecting the
|
|
218
|
+
integrity of the free software distribution system, which is
|
|
219
|
+
implemented by public license practices. Many people have made
|
|
220
|
+
generous contributions to the wide range of software distributed
|
|
221
|
+
through that system in reliance on consistent application of that
|
|
222
|
+
system; it is up to the author/donor to decide if he or she is willing
|
|
223
|
+
to distribute software through any other system and a licensee cannot
|
|
224
|
+
impose that choice.
|
|
225
|
+
|
|
226
|
+
This section is intended to make thoroughly clear what is believed to
|
|
227
|
+
be a consequence of the rest of this License.
|
|
228
|
+
|
|
229
|
+
8. If the distribution and/or use of the Program is restricted in
|
|
230
|
+
certain countries either by patents or by copyrighted interfaces, the
|
|
231
|
+
original copyright holder who places the Program under this License
|
|
232
|
+
may add an explicit geographical distribution limitation excluding
|
|
233
|
+
those countries, so that distribution is permitted only in or among
|
|
234
|
+
countries not thus excluded. In such case, this License incorporates
|
|
235
|
+
the limitation as if written in the body of this License.
|
|
236
|
+
|
|
237
|
+
9. The Free Software Foundation may publish revised and/or new versions
|
|
238
|
+
of the General Public License from time to time. Such new versions will
|
|
239
|
+
be similar in spirit to the present version, but may differ in detail to
|
|
240
|
+
address new problems or concerns.
|
|
241
|
+
|
|
242
|
+
Each version is given a distinguishing version number. If the Program
|
|
243
|
+
specifies a version number of this License which applies to it and "any
|
|
244
|
+
later version", you have the option of following the terms and conditions
|
|
245
|
+
either of that version or of any later version published by the Free
|
|
246
|
+
Software Foundation. If the Program does not specify a version number of
|
|
247
|
+
this License, you may choose any version ever published by the Free Software
|
|
248
|
+
Foundation.
|
|
249
|
+
|
|
250
|
+
10. If you wish to incorporate parts of the Program into other free
|
|
251
|
+
programs whose distribution conditions are different, write to the author
|
|
252
|
+
to ask for permission. For software which is copyrighted by the Free
|
|
253
|
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
|
254
|
+
make exceptions for this. Our decision will be guided by the two goals
|
|
255
|
+
of preserving the free status of all derivatives of our free software and
|
|
256
|
+
of promoting the sharing and reuse of software generally.
|
|
257
|
+
|
|
258
|
+
NO WARRANTY
|
|
259
|
+
|
|
260
|
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
|
261
|
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
|
262
|
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
|
263
|
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
|
264
|
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
265
|
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
|
266
|
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
|
267
|
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
|
268
|
+
REPAIR OR CORRECTION.
|
|
269
|
+
|
|
270
|
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
271
|
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
|
272
|
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
|
273
|
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
|
274
|
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
|
275
|
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
|
276
|
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
|
277
|
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
|
278
|
+
POSSIBILITY OF SUCH DAMAGES.
|
|
279
|
+
|
|
280
|
+
END OF TERMS AND CONDITIONS
|
|
281
|
+
|
|
282
|
+
How to Apply These Terms to Your New Programs
|
|
283
|
+
|
|
284
|
+
If you develop a new program, and you want it to be of the greatest
|
|
285
|
+
possible use to the public, the best way to achieve this is to make it
|
|
286
|
+
free software which everyone can redistribute and change under these terms.
|
|
287
|
+
|
|
288
|
+
To do so, attach the following notices to the program. It is safest
|
|
289
|
+
to attach them to the start of each source file to most effectively
|
|
290
|
+
convey the exclusion of warranty; and each file should have at least
|
|
291
|
+
the "copyright" line and a pointer to where the full notice is found.
|
|
292
|
+
|
|
293
|
+
<one line to give the program's name and a brief idea of what it does.>
|
|
294
|
+
Copyright (C) <year> <name of author>
|
|
295
|
+
|
|
296
|
+
This program is free software; you can redistribute it and/or modify
|
|
297
|
+
it under the terms of the GNU General Public License as published by
|
|
298
|
+
the Free Software Foundation; either version 2 of the License, or
|
|
299
|
+
(at your option) any later version.
|
|
300
|
+
|
|
301
|
+
This program is distributed in the hope that it will be useful,
|
|
302
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
303
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
304
|
+
GNU General Public License for more details.
|
|
305
|
+
|
|
306
|
+
You should have received a copy of the GNU General Public License along
|
|
307
|
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
308
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
309
|
+
|
|
310
|
+
Also add information on how to contact you by electronic and paper mail.
|
|
311
|
+
|
|
312
|
+
If the program is interactive, make it output a short notice like this
|
|
313
|
+
when it starts in an interactive mode:
|
|
314
|
+
|
|
315
|
+
Gnomovision version 69, Copyright (C) year name of author
|
|
316
|
+
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
317
|
+
This is free software, and you are welcome to redistribute it
|
|
318
|
+
under certain conditions; type `show c' for details.
|
|
319
|
+
|
|
320
|
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
321
|
+
parts of the General Public License. Of course, the commands you use may
|
|
322
|
+
be called something other than `show w' and `show c'; they could even be
|
|
323
|
+
mouse-clicks or menu items--whatever suits your program.
|
|
324
|
+
|
|
325
|
+
You should also get your employer (if you work as a programmer) or your
|
|
326
|
+
school, if any, to sign a "copyright disclaimer" for the program, if
|
|
327
|
+
necessary. Here is a sample; alter the names:
|
|
328
|
+
|
|
329
|
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
|
330
|
+
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
|
331
|
+
|
|
332
|
+
<signature of Ty Coon>, 1 April 1989
|
|
333
|
+
Ty Coon, President of Vice
|
|
334
|
+
|
|
335
|
+
This General Public License does not permit incorporating your program into
|
|
336
|
+
proprietary programs. If your program is a subroutine library, you may
|
|
337
|
+
consider it more useful to permit linking proprietary applications with the
|
|
338
|
+
library. If this is what you want to do, use the GNU Lesser General
|
|
339
|
+
Public License instead of this License.
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: MultiMM
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A tool for chromatin modeling from nucleosomes to chromosomal territories.
|
|
5
|
+
Home-page: https://github.com/SFGLab/MultiMM
|
|
6
|
+
Author: Sebastian Korsak
|
|
7
|
+
Author-email: sebykorsak@gmail.com
|
|
8
|
+
License: GNU General Public License v3.0
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
11
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: numpy
|
|
16
|
+
Requires-Dist: scipy
|
|
17
|
+
Requires-Dist: pandas
|
|
18
|
+
Requires-Dist: argparse
|
|
19
|
+
Requires-Dist: matplotlib
|
|
20
|
+
Requires-Dist: mdtraj
|
|
21
|
+
Requires-Dist: seaborn
|
|
22
|
+
Requires-Dist: scikit-learn
|
|
23
|
+
Requires-Dist: configparser
|
|
24
|
+
Requires-Dist: typing-extensions
|
|
25
|
+
Requires-Dist: pyBigWig
|
|
26
|
+
Requires-Dist: hilbertcurve
|
|
27
|
+
Requires-Dist: tqdm
|
|
28
|
+
Provides-Extra: viz
|
|
29
|
+
Requires-Dist: pyvista[all]; extra == "viz"
|
|
30
|
+
Provides-Extra: simulations
|
|
31
|
+
Requires-Dist: OpenMM; extra == "simulations"
|
|
32
|
+
|
|
33
|
+
# MultiMM: An OpenMM-based software for whole genome 3D structure reconstruction
|
|
34
|
+
|
|
35
|
+
MultiMM is an OpenMM model designed for modeling the 3D structure of the whole genome. Its distinguishing feature is that it is multiscale, meaning it aims to model different levels of chromatin organization, from smaller scales (nucleosomes) to the level of chromosomal territories. The algorithm is both fast and accurate. A key feature enabling its speed is GPU parallelization via OpenMM, along with smart assumptions that assist the optimizer in finding the global minimum. One such fundamental assumption is the use of a Hilbert curve as the initial structure. This helps MultiMM to converge faster because the initial structure is already highly compacted.
|
|
36
|
+
|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
After running the MultiMM model, users obtain a genome-wide structure. Users can color different chromosomes or compartments, or they can visualize individual chromosomes separately. MultiMM is simple to use, as it is based on modifying a single configuration file. Here we explain its usage.
|
|
40
|
+
|
|
41
|
+

|
|
42
|
+
|
|
43
|
+
## Key Features
|
|
44
|
+
|
|
45
|
+
- Efficient simulation of chromatin interactions using 3D conformations.
|
|
46
|
+
- Can simulate the scales of nucleosomes, TADs, compartments, chromosomal territories and interactions with lamina.
|
|
47
|
+
- Integration with **bedpe** for chromatin structures.
|
|
48
|
+
- Scalable simulations across different force fields and resolution levels.
|
|
49
|
+
- Compatible with modern GPU-accelerated simulation libraries.
|
|
50
|
+
|
|
51
|
+
## About Operating Systems
|
|
52
|
+
|
|
53
|
+
MultiMM has been tested primarily on Linux-based operating systems, with successful tests in Ubuntu, Debian, and Red Hat-based distributions. It is also possible to run it on macOS, though without CUDA support, which is helpful for accelerating computations. We do not recommend running MultiMM on Windows systems.
|
|
54
|
+
|
|
55
|
+
## Installation
|
|
56
|
+
Create a Python 3.10 environment and type:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
pip install -r requirements.txt
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Input Data
|
|
63
|
+
|
|
64
|
+
MultiMM relies on three types of datasets:
|
|
65
|
+
|
|
66
|
+
- Loop interactions in `bedpe` format (mandatory).
|
|
67
|
+
- Compartmentalization data in `bed` format (optional).
|
|
68
|
+
- ATAC-Seq p-value data in `.BigWig` format (optional).
|
|
69
|
+
|
|
70
|
+
For **loop interactions**, users need to provide a file with interactions between anchor 1 and anchor 2, and their strength. The file must be in `.bedpe` format, should contain 7 columns, and should not include a header. An example:
|
|
71
|
+
|
|
72
|
+
```text
|
|
73
|
+
chr10 100225000 100230000 chr10 100420000 100425000 95
|
|
74
|
+
chr10 100225000 100230000 chr10 101005000 101010000 56
|
|
75
|
+
chr10 101190000 101195000 chr10 101370000 101375000 152
|
|
76
|
+
chr10 101190000 101200000 chr10 101470000 101480000 181
|
|
77
|
+
chr10 101600000 101605000 chr10 101805000 101810000 152
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
The file may contain interactions for all chromosomes, which MultiMM can automatically model. For single-cell data, users can provide a file with the second and third columns identical (the same for the fifth and sixth columns) and strength set to 1.
|
|
81
|
+
|
|
82
|
+
For **(sub)compartment interactions**, the file should be in the format produced by the CALDER software: https://github.com/CSOgroup/CALDER2. Users do not need to run CALDER specifically, but the file format must match. The file should contain at least the first four columns with chromosome, regions, and the subcompartment label. Example:
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
chr1 700001 900000 A.1.2.2.2.2.2.2 0.875 . 700001 900000 #FF4848
|
|
86
|
+
chr1 900001 1400000 A.1.1.1.1.2.1.1.1.1.1 1 . 900001 1400000 #FF0000
|
|
87
|
+
chr1 1400001 1850000 A.1.1.1.1.2.1.2.2.2.1 1 . 1400001 1850000 #FF0000
|
|
88
|
+
chr1 1850001 2100000 B.1.1.2.2.1.2.1 0.5 . 1850001 2100000 #DADAFF
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
For **ATAC-Seq data**, users should provide a file with p-values in BigWig format. The `pyBigWig` library is required, which does not work on Windows systems.
|
|
92
|
+
|
|
93
|
+
**Note:** At present, MultiMM only works for human genome data. The code may run for other organisms with some debugging and modifications.
|
|
94
|
+
|
|
95
|
+
## Usage
|
|
96
|
+
All the model's parameters are specified in a `config.ini` file. This file should have the following format:
|
|
97
|
+
|
|
98
|
+
```ini
|
|
99
|
+
[Main]
|
|
100
|
+
|
|
101
|
+
; Platform selection
|
|
102
|
+
PLATFORM = OpenCL
|
|
103
|
+
|
|
104
|
+
; Input data
|
|
105
|
+
FORCEFIELD_PATH = forcefields/ff.xml
|
|
106
|
+
LOOPS_PATH = /home/skorsak/Data/Rao/GSE63525_GM12878_primary+replicate_HiCCUPS_looplist_hg19.bedpe
|
|
107
|
+
COMPARTMENT_PATH = /home/skorsak/Data/Rao/subcompartments_primary_replicate/sub_compartments/all_sub_compartments.bed
|
|
108
|
+
ATACSEQ_PATH = /home/skorsak/Data/encode/ATAC-Seq/ENCSR637XSC_GM12878/ENCFF667MDI_pval.bigWig
|
|
109
|
+
OUT_PATH = application_note
|
|
110
|
+
|
|
111
|
+
; Simulation Parameters
|
|
112
|
+
N_BEADS = 50000
|
|
113
|
+
SHUFFLE_CHROMS = True
|
|
114
|
+
NUC_DO_INTERPOLATION = True
|
|
115
|
+
|
|
116
|
+
; Enable forcefield for genome-wide simulation
|
|
117
|
+
SC_USE_SPHERICAL_CONTAINER = True
|
|
118
|
+
CHB_USE_CHROMOSOMAL_BLOCKS = True
|
|
119
|
+
SCB_USE_SUBCOMPARTMENT_BLOCKS = True
|
|
120
|
+
IBL_USE_B_LAMINA_INTERACTION = True
|
|
121
|
+
CF_USE_CENTRAL_FORCE = True
|
|
122
|
+
|
|
123
|
+
; Simulation Parameters
|
|
124
|
+
SIM_RUN_MD = True
|
|
125
|
+
SIM_SAMPLING_STEP = 50
|
|
126
|
+
SIM_N_STEPS = 1000
|
|
127
|
+
TRJ_FRAMES = 100
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
After specifying the parameters and forces, users can run the following command in the terminal:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
python run.py -c config.ini
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
The software will output a folder with the resulting structure and plots showing compartment distribution.
|
|
137
|
+
|
|
138
|
+
Example data can be found on Google Drive: https://drive.google.com/drive/folders/1nFAPE4pCaHpeL5nw6nq0VvfUFoc24aXm?usp=sharing. Note that this data is publicly available from Rao et al. The subcompartment predictions were made using CALDER, and the ATAC-Seq data is from ENCODE.
|
|
139
|
+
|
|
140
|
+
In the `examples` folder, we provide example configuration files for different modeling scenarios.
|
|
141
|
+
|
|
142
|
+
## Simulation Arguments
|
|
143
|
+
|
|
144
|
+
MultiMM has numerous configurable parameters. Below is a description of each argument and its default values. The defaults have been tested for genome-wide simulation but can be modified in the configuration file if needed. Units are typically assumed based on OpenMM conventions, though explicit unit specification is not required.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
This version should now be more precise and polished. Let me know if you'd like to adjust anything further!
|
|
149
|
+
|
|
150
|
+
| Argument Name | Type | Value | Units | Description |
|
|
151
|
+
|------------------------------|--------------|-------------|---------------|-------------|
|
|
152
|
+
| PLATFORM | str | None | None | name of the platform. Available choices: CPU, OpenCL, CUDA. |
|
|
153
|
+
| DEVICE | str | None | None | device index for CUDA or OpenCL (count from 0) |
|
|
154
|
+
| INITIAL_STRUCTURE_PATH | str | None | None | Path to CIF file. |
|
|
155
|
+
| BUILD_INITIAL_STRUCTURE | bool | True | None | To build a new initial structure. |
|
|
156
|
+
| INITIAL_STRUCTURE_TYPE | str | hilbert | None | you can choose between: hilbert, circle. |
|
|
157
|
+
| FORCEFIELD_PATH | str | None | None | Path to XML file with forcefield. |
|
|
158
|
+
| N_BEADS | int | 50000 | None | Number of Simulation Beads. |
|
|
159
|
+
| COMPARTMENT_PATH | str | None | None | It should be a `.bed` file with subcompartments from Calder. |
|
|
160
|
+
| LOOPS_PATH | str | None | None | A `.bedpe` file path with loops. It is required. |
|
|
161
|
+
| ATACSEQ_PATH | str | None | None | A `.bw` or `.BigWig` file path with atacseq data for nucleosome interpolation. It is not required. |
|
|
162
|
+
| OUT_PATH | str | results | None | Output folder name. |
|
|
163
|
+
| LOC_START | int | None | None | Starting region coordinate (*in case that you do not want to model the whole genome*). |
|
|
164
|
+
| LOC_END | int | None | None | Ending region coordinate (*in case that you do not want to model the whole genome*). |
|
|
165
|
+
| CHROM | str | None | None | Chromosome that corresponds the the modelling region of interest (*in case that you do not want to model the whole genome*). |
|
|
166
|
+
| SHUFFLE_CHROMS | bool | False | None | Shuffle the chromosomes. |
|
|
167
|
+
| SHUFFLING_SEED | int | 0 | None | Shuffling random seed. |
|
|
168
|
+
| SAVE_PLOTS | bool | True | None | Save plots. |
|
|
169
|
+
| POL_USE_HARMONIC_BOND | bool | True | None | Use harmonic bond interaction for consecutive beads ($i,i\pm 1$). |
|
|
170
|
+
| POL_HARMONIC_BOND_R0 | float | 0.1 | nm | Harmonic bond distance equilibrium constant. |
|
|
171
|
+
| POL_HARMONIC_BOND_K | float | 300000.0 | kJ/mol/nm^2 | harmonic bond force constant |
|
|
172
|
+
| POL_USE_HARMONIC_ANGLE | bool | True | None | Use harmonic angle interaction for consecutuve beads ($i,i\pm 1, i\pm 2$). |
|
|
173
|
+
| POL_HARMONIC_ANGLE_R0 | float | pi | None (radians) | Equilibrium angle of harmonic angle force. |
|
|
174
|
+
| POL_HARMONIC_ANGLE_CONSTANT_K| float | 100.0 | kJ/mol/radian^2 | Harmonic angle force constant. |
|
|
175
|
+
| LE_USE_HARMONIC_BOND | bool | True | None | Use harmonic bond interaction for long range loops. |
|
|
176
|
+
| LE_FIXED_DISTANCES | bool | False | None | For fixed distances between loops. False if you want to correlate with the heatmap strength. |
|
|
177
|
+
| LE_HARMONIC_BOND_R0 | float | 0.1 | None | Harmonic bond distance equilibrium constant for long-range loops. |
|
|
178
|
+
| LE_HARMONIC_BOND_K | float | 30000.0 | kJ/mol/nm^2 | Harmonic bond force constant for long-range loops. |
|
|
179
|
+
| EV_USE_EXCLUDED_VOLUME | bool | True | None | Use excluded volume $V_{ev}=\epsilon\left(\frac{\sigma}{r+r_{\text{small}}}\right)^{\alpha}$. |
|
|
180
|
+
| EV_EPSILON | float | 100.0 | kJ/mol | Epsilon parameter - strength of excluded volume. |
|
|
181
|
+
| EV_R_SMALL | float | 0.05 | nm | Add something small in denominator to make it not exploding all the time. |
|
|
182
|
+
| EV_POWER | float | 3.0 | None | Power $\alpha$ in the exponent of EV potential. |
|
|
183
|
+
| SC_USE_SPHERICAL_CONTAINER | bool | False | None | Use Spherical container. |
|
|
184
|
+
| SC_RADIUS1 | float | None | nm | Inner spherical container radius. |
|
|
185
|
+
| SC_RADIUS2 | float | None | nm | Outer spherical container radius. |
|
|
186
|
+
| SC_SCALE | float | 1000.0 | kJ/mol/nm^2 | Spherical container scaling factor |
|
|
187
|
+
| CHB_USE_CHROMOSOMAL_BLOCKS | bool | False | None | Use Chromosomal Blocks. |
|
|
188
|
+
| CHB_KC | float | 0.3 | nm^(-4) | Block copolymer width parameter. |
|
|
189
|
+
| CHB_DE | float | 1e-5 | kJ/mol | Energy factor for block copolymer chromosomal model. |
|
|
190
|
+
| COB_USE_COMPARTMENT_BLOCKS | bool | False | kJ/mol | Use Compartment Blocks. |
|
|
191
|
+
| COB_DISTANCE | float | None | nm | Block copolymer equilibrium distance for chromosomal blocks. |
|
|
192
|
+
| COB_EA | float | 1.0 | kJ/mol | Energy strength for A compartment. |
|
|
193
|
+
| COB_EB | float | 2.0 | kJ/mol | Energy strength for B compartment. |
|
|
194
|
+
| SCB_USE_SUBCOMPARTMENT_BLOCKS| bool | False | None | Use Subcompartment Blocks. |
|
|
195
|
+
| SCB_DISTANCE | float | None | nm | Block copolymer equilibrium distance for chromosomal blocks. |
|
|
196
|
+
| SCB_EA1 | float | 1.0 | kJ/mol | Energy strength for A1 compartment. |
|
|
197
|
+
| SCB_EA2 | float | 1.33 | kJ/mol | Energy strength for A2 compartment. |
|
|
198
|
+
| SCB_EB1 | float | 1.66 | kJ/mol | Energy strength for B1 compartment. |
|
|
199
|
+
| SCB_EB2 | float | 2.0 | kJ/mol | Energy strength for B2 compartment. |
|
|
200
|
+
| IBL_USE_B_LAMINA_INTERACTION | bool | False | None | Interactions of B compartment with lamina. |
|
|
201
|
+
| IBL_SCALE | float | 400.0 | kJ/mol | Scaling factor for B comoartment interaction with lamina. |
|
|
202
|
+
| CF_USE_CENTRAL_FORCE | bool | False | None | Attraction of smaller chromosomes to the nucleolus (in the center). |
|
|
203
|
+
| CF_STRENGTH | float | 10.0 | kJ/mol | Strength of Attraction of Smaller Chromosomes |
|
|
204
|
+
| NUC_DO_INTERPOLATION | bool | False | None | Attraction of smaller chromosomes. |
|
|
205
|
+
| MAX_NUCS_PER_BEAD | int | 4 | None | Maximum amount of nucleosomes per single bead for nucleosome interpolation. |
|
|
206
|
+
| NUC_RADIUS | float | 0.1 | None | The radius of the single nucleosome helix. |
|
|
207
|
+
| POINTS_PER_NUC | int | 20 | None | The number of points that consist a nucleosome helix. |
|
|
208
|
+
| PHI_NORM | float | pi/5 | None | Zig zag angle. |
|
|
209
|
+
| SIM_RUN_MD | bool | False | None | Do you want to run MD simulation? |
|
|
210
|
+
| SIM_N_STEPS | int | None | None | Number of steps in MD simulation |
|
|
211
|
+
| SIM_ERROR_TOLERANCE | float | 0.01 | None | Error tolerance for variable MD simulation |
|
|
212
|
+
| SIM_AMD_ALPHA | float | 100.0 | kJ/mol | Alpha of AMD simulation. |
|
|
213
|
+
| SIM_AMD_E | float | 1000.0 | kJ/mol | E (energy) of AMD simulation. |
|
|
214
|
+
| SIM_SAMPLING_STEP | int | 100 | None | It determines in t how many steps we save a structure. |
|
|
215
|
+
| SIM_INTEGRATOR_TYPE | str | langevin | None | Possible choices: variable_nagevin, langevin, variable_verlet, verlet, amd, brownian. |
|
|
216
|
+
| SIM_INTEGRATOR_STEP | Quantity | 1 | fsec | The step of integrator. |
|
|
217
|
+
| SIM_FRICTION_COEFF | float | 0.5 | 1/psec | Friction coefficient (Used only with langevin and brownian integrators). |
|
|
218
|
+
| SIM_SET_INITIAL_VELOCITIES | bool | False | None | Sets initial velocities based on Boltzmann distribution. |
|
|
219
|
+
| SIM_TEMPERATURE | Quantity | 310 | kelvin | Simulation temperature |
|
|
220
|
+
| TRJ_FRAMES | int | 2000 | None | Number of trajectory frames to save. |
|
|
221
|
+
|
|
222
|
+
## Copyrights
|
|
223
|
+
|
|
224
|
+
The software is freely distributed under the GNU license and everybody can use it how they want, improve it, or apply it to their research interests. In case that the software would be used for research, we would like that you will cite our paper:
|
|
225
|
+
|
|
226
|
+
- Korsak, Sevastianos, Krzysztof Banecki, and Dariusz Plewczynski. "Multiscale Molecular Modelling of Chromatin with MultiMM: From Nucleosomes to the Whole Genome." bioRxiv (2024): 2024-07.
|
|
227
|
+
|
|
228
|
+
Please, communicate with the authors in case that you would like to contribute in this model, and you would like to improve it.
|
|
229
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
multimm-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: MultiMM
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A tool for chromatin modeling from nucleosomes to chromosomal territories.
|
|
5
|
+
Home-page: https://github.com/SFGLab/MultiMM
|
|
6
|
+
Author: Sebastian Korsak
|
|
7
|
+
Author-email: sebykorsak@gmail.com
|
|
8
|
+
License: GNU General Public License v3.0
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
11
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: numpy
|
|
16
|
+
Requires-Dist: scipy
|
|
17
|
+
Requires-Dist: pandas
|
|
18
|
+
Requires-Dist: argparse
|
|
19
|
+
Requires-Dist: matplotlib
|
|
20
|
+
Requires-Dist: mdtraj
|
|
21
|
+
Requires-Dist: seaborn
|
|
22
|
+
Requires-Dist: scikit-learn
|
|
23
|
+
Requires-Dist: configparser
|
|
24
|
+
Requires-Dist: typing-extensions
|
|
25
|
+
Requires-Dist: pyBigWig
|
|
26
|
+
Requires-Dist: hilbertcurve
|
|
27
|
+
Requires-Dist: tqdm
|
|
28
|
+
Provides-Extra: viz
|
|
29
|
+
Requires-Dist: pyvista[all]; extra == "viz"
|
|
30
|
+
Provides-Extra: simulations
|
|
31
|
+
Requires-Dist: OpenMM; extra == "simulations"
|
|
32
|
+
|
|
33
|
+
# MultiMM: An OpenMM-based software for whole genome 3D structure reconstruction
|
|
34
|
+
|
|
35
|
+
MultiMM is an OpenMM model designed for modeling the 3D structure of the whole genome. Its distinguishing feature is that it is multiscale, meaning it aims to model different levels of chromatin organization, from smaller scales (nucleosomes) to the level of chromosomal territories. The algorithm is both fast and accurate. A key feature enabling its speed is GPU parallelization via OpenMM, along with smart assumptions that assist the optimizer in finding the global minimum. One such fundamental assumption is the use of a Hilbert curve as the initial structure. This helps MultiMM to converge faster because the initial structure is already highly compacted.
|
|
36
|
+
|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
After running the MultiMM model, users obtain a genome-wide structure. Users can color different chromosomes or compartments, or they can visualize individual chromosomes separately. MultiMM is simple to use, as it is based on modifying a single configuration file. Here we explain its usage.
|
|
40
|
+
|
|
41
|
+

|
|
42
|
+
|
|
43
|
+
## Key Features
|
|
44
|
+
|
|
45
|
+
- Efficient simulation of chromatin interactions using 3D conformations.
|
|
46
|
+
- Can simulate the scales of nucleosomes, TADs, compartments, chromosomal territories and interactions with lamina.
|
|
47
|
+
- Integration with **bedpe** for chromatin structures.
|
|
48
|
+
- Scalable simulations across different force fields and resolution levels.
|
|
49
|
+
- Compatible with modern GPU-accelerated simulation libraries.
|
|
50
|
+
|
|
51
|
+
## About Operating Systems
|
|
52
|
+
|
|
53
|
+
MultiMM has been tested primarily on Linux-based operating systems, with successful tests in Ubuntu, Debian, and Red Hat-based distributions. It is also possible to run it on macOS, though without CUDA support, which is helpful for accelerating computations. We do not recommend running MultiMM on Windows systems.
|
|
54
|
+
|
|
55
|
+
## Installation
|
|
56
|
+
Create a Python 3.10 environment and type:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
pip install -r requirements.txt
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Input Data
|
|
63
|
+
|
|
64
|
+
MultiMM relies on three types of datasets:
|
|
65
|
+
|
|
66
|
+
- Loop interactions in `bedpe` format (mandatory).
|
|
67
|
+
- Compartmentalization data in `bed` format (optional).
|
|
68
|
+
- ATAC-Seq p-value data in `.BigWig` format (optional).
|
|
69
|
+
|
|
70
|
+
For **loop interactions**, users need to provide a file with interactions between anchor 1 and anchor 2, and their strength. The file must be in `.bedpe` format, should contain 7 columns, and should not include a header. An example:
|
|
71
|
+
|
|
72
|
+
```text
|
|
73
|
+
chr10 100225000 100230000 chr10 100420000 100425000 95
|
|
74
|
+
chr10 100225000 100230000 chr10 101005000 101010000 56
|
|
75
|
+
chr10 101190000 101195000 chr10 101370000 101375000 152
|
|
76
|
+
chr10 101190000 101200000 chr10 101470000 101480000 181
|
|
77
|
+
chr10 101600000 101605000 chr10 101805000 101810000 152
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
The file may contain interactions for all chromosomes, which MultiMM can automatically model. For single-cell data, users can provide a file with the second and third columns identical (the same for the fifth and sixth columns) and strength set to 1.
|
|
81
|
+
|
|
82
|
+
For **(sub)compartment interactions**, the file should be in the format produced by the CALDER software: https://github.com/CSOgroup/CALDER2. Users do not need to run CALDER specifically, but the file format must match. The file should contain at least the first four columns with chromosome, regions, and the subcompartment label. Example:
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
chr1 700001 900000 A.1.2.2.2.2.2.2 0.875 . 700001 900000 #FF4848
|
|
86
|
+
chr1 900001 1400000 A.1.1.1.1.2.1.1.1.1.1 1 . 900001 1400000 #FF0000
|
|
87
|
+
chr1 1400001 1850000 A.1.1.1.1.2.1.2.2.2.1 1 . 1400001 1850000 #FF0000
|
|
88
|
+
chr1 1850001 2100000 B.1.1.2.2.1.2.1 0.5 . 1850001 2100000 #DADAFF
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
For **ATAC-Seq data**, users should provide a file with p-values in BigWig format. The `pyBigWig` library is required, which does not work on Windows systems.
|
|
92
|
+
|
|
93
|
+
**Note:** At present, MultiMM only works for human genome data. The code may run for other organisms with some debugging and modifications.
|
|
94
|
+
|
|
95
|
+
## Usage
|
|
96
|
+
All the model's parameters are specified in a `config.ini` file. This file should have the following format:
|
|
97
|
+
|
|
98
|
+
```ini
|
|
99
|
+
[Main]
|
|
100
|
+
|
|
101
|
+
; Platform selection
|
|
102
|
+
PLATFORM = OpenCL
|
|
103
|
+
|
|
104
|
+
; Input data
|
|
105
|
+
FORCEFIELD_PATH = forcefields/ff.xml
|
|
106
|
+
LOOPS_PATH = /home/skorsak/Data/Rao/GSE63525_GM12878_primary+replicate_HiCCUPS_looplist_hg19.bedpe
|
|
107
|
+
COMPARTMENT_PATH = /home/skorsak/Data/Rao/subcompartments_primary_replicate/sub_compartments/all_sub_compartments.bed
|
|
108
|
+
ATACSEQ_PATH = /home/skorsak/Data/encode/ATAC-Seq/ENCSR637XSC_GM12878/ENCFF667MDI_pval.bigWig
|
|
109
|
+
OUT_PATH = application_note
|
|
110
|
+
|
|
111
|
+
; Simulation Parameters
|
|
112
|
+
N_BEADS = 50000
|
|
113
|
+
SHUFFLE_CHROMS = True
|
|
114
|
+
NUC_DO_INTERPOLATION = True
|
|
115
|
+
|
|
116
|
+
; Enable forcefield for genome-wide simulation
|
|
117
|
+
SC_USE_SPHERICAL_CONTAINER = True
|
|
118
|
+
CHB_USE_CHROMOSOMAL_BLOCKS = True
|
|
119
|
+
SCB_USE_SUBCOMPARTMENT_BLOCKS = True
|
|
120
|
+
IBL_USE_B_LAMINA_INTERACTION = True
|
|
121
|
+
CF_USE_CENTRAL_FORCE = True
|
|
122
|
+
|
|
123
|
+
; Simulation Parameters
|
|
124
|
+
SIM_RUN_MD = True
|
|
125
|
+
SIM_SAMPLING_STEP = 50
|
|
126
|
+
SIM_N_STEPS = 1000
|
|
127
|
+
TRJ_FRAMES = 100
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
After specifying the parameters and forces, users can run the following command in the terminal:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
python run.py -c config.ini
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
The software will output a folder with the resulting structure and plots showing compartment distribution.
|
|
137
|
+
|
|
138
|
+
Example data can be found on Google Drive: https://drive.google.com/drive/folders/1nFAPE4pCaHpeL5nw6nq0VvfUFoc24aXm?usp=sharing. Note that this data is publicly available from Rao et al. The subcompartment predictions were made using CALDER, and the ATAC-Seq data is from ENCODE.
|
|
139
|
+
|
|
140
|
+
In the `examples` folder, we provide example configuration files for different modeling scenarios.
|
|
141
|
+
|
|
142
|
+
## Simulation Arguments
|
|
143
|
+
|
|
144
|
+
MultiMM has numerous configurable parameters. Below is a description of each argument and its default values. The defaults have been tested for genome-wide simulation but can be modified in the configuration file if needed. Units are typically assumed based on OpenMM conventions, though explicit unit specification is not required.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
This version should now be more precise and polished. Let me know if you'd like to adjust anything further!
|
|
149
|
+
|
|
150
|
+
| Argument Name | Type | Value | Units | Description |
|
|
151
|
+
|------------------------------|--------------|-------------|---------------|-------------|
|
|
152
|
+
| PLATFORM | str | None | None | name of the platform. Available choices: CPU, OpenCL, CUDA. |
|
|
153
|
+
| DEVICE | str | None | None | device index for CUDA or OpenCL (count from 0) |
|
|
154
|
+
| INITIAL_STRUCTURE_PATH | str | None | None | Path to CIF file. |
|
|
155
|
+
| BUILD_INITIAL_STRUCTURE | bool | True | None | To build a new initial structure. |
|
|
156
|
+
| INITIAL_STRUCTURE_TYPE | str | hilbert | None | you can choose between: hilbert, circle. |
|
|
157
|
+
| FORCEFIELD_PATH | str | None | None | Path to XML file with forcefield. |
|
|
158
|
+
| N_BEADS | int | 50000 | None | Number of Simulation Beads. |
|
|
159
|
+
| COMPARTMENT_PATH | str | None | None | It should be a `.bed` file with subcompartments from Calder. |
|
|
160
|
+
| LOOPS_PATH | str | None | None | A `.bedpe` file path with loops. It is required. |
|
|
161
|
+
| ATACSEQ_PATH | str | None | None | A `.bw` or `.BigWig` file path with atacseq data for nucleosome interpolation. It is not required. |
|
|
162
|
+
| OUT_PATH | str | results | None | Output folder name. |
|
|
163
|
+
| LOC_START | int | None | None | Starting region coordinate (*in case that you do not want to model the whole genome*). |
|
|
164
|
+
| LOC_END | int | None | None | Ending region coordinate (*in case that you do not want to model the whole genome*). |
|
|
165
|
+
| CHROM | str | None | None | Chromosome that corresponds the the modelling region of interest (*in case that you do not want to model the whole genome*). |
|
|
166
|
+
| SHUFFLE_CHROMS | bool | False | None | Shuffle the chromosomes. |
|
|
167
|
+
| SHUFFLING_SEED | int | 0 | None | Shuffling random seed. |
|
|
168
|
+
| SAVE_PLOTS | bool | True | None | Save plots. |
|
|
169
|
+
| POL_USE_HARMONIC_BOND | bool | True | None | Use harmonic bond interaction for consecutive beads ($i,i\pm 1$). |
|
|
170
|
+
| POL_HARMONIC_BOND_R0 | float | 0.1 | nm | Harmonic bond distance equilibrium constant. |
|
|
171
|
+
| POL_HARMONIC_BOND_K | float | 300000.0 | kJ/mol/nm^2 | harmonic bond force constant |
|
|
172
|
+
| POL_USE_HARMONIC_ANGLE | bool | True | None | Use harmonic angle interaction for consecutuve beads ($i,i\pm 1, i\pm 2$). |
|
|
173
|
+
| POL_HARMONIC_ANGLE_R0 | float | pi | None (radians) | Equilibrium angle of harmonic angle force. |
|
|
174
|
+
| POL_HARMONIC_ANGLE_CONSTANT_K| float | 100.0 | kJ/mol/radian^2 | Harmonic angle force constant. |
|
|
175
|
+
| LE_USE_HARMONIC_BOND | bool | True | None | Use harmonic bond interaction for long range loops. |
|
|
176
|
+
| LE_FIXED_DISTANCES | bool | False | None | For fixed distances between loops. False if you want to correlate with the heatmap strength. |
|
|
177
|
+
| LE_HARMONIC_BOND_R0 | float | 0.1 | None | Harmonic bond distance equilibrium constant for long-range loops. |
|
|
178
|
+
| LE_HARMONIC_BOND_K | float | 30000.0 | kJ/mol/nm^2 | Harmonic bond force constant for long-range loops. |
|
|
179
|
+
| EV_USE_EXCLUDED_VOLUME | bool | True | None | Use excluded volume $V_{ev}=\epsilon\left(\frac{\sigma}{r+r_{\text{small}}}\right)^{\alpha}$. |
|
|
180
|
+
| EV_EPSILON | float | 100.0 | kJ/mol | Epsilon parameter - strength of excluded volume. |
|
|
181
|
+
| EV_R_SMALL | float | 0.05 | nm | Add something small in denominator to make it not exploding all the time. |
|
|
182
|
+
| EV_POWER | float | 3.0 | None | Power $\alpha$ in the exponent of EV potential. |
|
|
183
|
+
| SC_USE_SPHERICAL_CONTAINER | bool | False | None | Use Spherical container. |
|
|
184
|
+
| SC_RADIUS1 | float | None | nm | Inner spherical container radius. |
|
|
185
|
+
| SC_RADIUS2 | float | None | nm | Outer spherical container radius. |
|
|
186
|
+
| SC_SCALE | float | 1000.0 | kJ/mol/nm^2 | Spherical container scaling factor |
|
|
187
|
+
| CHB_USE_CHROMOSOMAL_BLOCKS | bool | False | None | Use Chromosomal Blocks. |
|
|
188
|
+
| CHB_KC | float | 0.3 | nm^(-4) | Block copolymer width parameter. |
|
|
189
|
+
| CHB_DE | float | 1e-5 | kJ/mol | Energy factor for block copolymer chromosomal model. |
|
|
190
|
+
| COB_USE_COMPARTMENT_BLOCKS | bool | False | kJ/mol | Use Compartment Blocks. |
|
|
191
|
+
| COB_DISTANCE | float | None | nm | Block copolymer equilibrium distance for chromosomal blocks. |
|
|
192
|
+
| COB_EA | float | 1.0 | kJ/mol | Energy strength for A compartment. |
|
|
193
|
+
| COB_EB | float | 2.0 | kJ/mol | Energy strength for B compartment. |
|
|
194
|
+
| SCB_USE_SUBCOMPARTMENT_BLOCKS| bool | False | None | Use Subcompartment Blocks. |
|
|
195
|
+
| SCB_DISTANCE | float | None | nm | Block copolymer equilibrium distance for chromosomal blocks. |
|
|
196
|
+
| SCB_EA1 | float | 1.0 | kJ/mol | Energy strength for A1 compartment. |
|
|
197
|
+
| SCB_EA2 | float | 1.33 | kJ/mol | Energy strength for A2 compartment. |
|
|
198
|
+
| SCB_EB1 | float | 1.66 | kJ/mol | Energy strength for B1 compartment. |
|
|
199
|
+
| SCB_EB2 | float | 2.0 | kJ/mol | Energy strength for B2 compartment. |
|
|
200
|
+
| IBL_USE_B_LAMINA_INTERACTION | bool | False | None | Interactions of B compartment with lamina. |
|
|
201
|
+
| IBL_SCALE | float | 400.0 | kJ/mol | Scaling factor for B comoartment interaction with lamina. |
|
|
202
|
+
| CF_USE_CENTRAL_FORCE | bool | False | None | Attraction of smaller chromosomes to the nucleolus (in the center). |
|
|
203
|
+
| CF_STRENGTH | float | 10.0 | kJ/mol | Strength of Attraction of Smaller Chromosomes |
|
|
204
|
+
| NUC_DO_INTERPOLATION | bool | False | None | Attraction of smaller chromosomes. |
|
|
205
|
+
| MAX_NUCS_PER_BEAD | int | 4 | None | Maximum amount of nucleosomes per single bead for nucleosome interpolation. |
|
|
206
|
+
| NUC_RADIUS | float | 0.1 | None | The radius of the single nucleosome helix. |
|
|
207
|
+
| POINTS_PER_NUC | int | 20 | None | The number of points that consist a nucleosome helix. |
|
|
208
|
+
| PHI_NORM | float | pi/5 | None | Zig zag angle. |
|
|
209
|
+
| SIM_RUN_MD | bool | False | None | Do you want to run MD simulation? |
|
|
210
|
+
| SIM_N_STEPS | int | None | None | Number of steps in MD simulation |
|
|
211
|
+
| SIM_ERROR_TOLERANCE | float | 0.01 | None | Error tolerance for variable MD simulation |
|
|
212
|
+
| SIM_AMD_ALPHA | float | 100.0 | kJ/mol | Alpha of AMD simulation. |
|
|
213
|
+
| SIM_AMD_E | float | 1000.0 | kJ/mol | E (energy) of AMD simulation. |
|
|
214
|
+
| SIM_SAMPLING_STEP | int | 100 | None | It determines in t how many steps we save a structure. |
|
|
215
|
+
| SIM_INTEGRATOR_TYPE | str | langevin | None | Possible choices: variable_nagevin, langevin, variable_verlet, verlet, amd, brownian. |
|
|
216
|
+
| SIM_INTEGRATOR_STEP | Quantity | 1 | fsec | The step of integrator. |
|
|
217
|
+
| SIM_FRICTION_COEFF | float | 0.5 | 1/psec | Friction coefficient (Used only with langevin and brownian integrators). |
|
|
218
|
+
| SIM_SET_INITIAL_VELOCITIES | bool | False | None | Sets initial velocities based on Boltzmann distribution. |
|
|
219
|
+
| SIM_TEMPERATURE | Quantity | 310 | kelvin | Simulation temperature |
|
|
220
|
+
| TRJ_FRAMES | int | 2000 | None | Number of trajectory frames to save. |
|
|
221
|
+
|
|
222
|
+
## Copyrights
|
|
223
|
+
|
|
224
|
+
The software is freely distributed under the GNU license and everybody can use it how they want, improve it, or apply it to their research interests. In case that the software would be used for research, we would like that you will cite our paper:
|
|
225
|
+
|
|
226
|
+
- Korsak, Sevastianos, Krzysztof Banecki, and Dariusz Plewczynski. "Multiscale Molecular Modelling of Chromatin with MultiMM: From Nucleosomes to the Whole Genome." bioRxiv (2024): 2024-07.
|
|
227
|
+
|
|
228
|
+
Please, communicate with the authors in case that you would like to contribute in this model, and you would like to improve it.
|
|
229
|
+
|
multimm-1.0.0/README.md
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# MultiMM: An OpenMM-based software for whole genome 3D structure reconstruction
|
|
2
|
+
|
|
3
|
+
MultiMM is an OpenMM model designed for modeling the 3D structure of the whole genome. Its distinguishing feature is that it is multiscale, meaning it aims to model different levels of chromatin organization, from smaller scales (nucleosomes) to the level of chromosomal territories. The algorithm is both fast and accurate. A key feature enabling its speed is GPU parallelization via OpenMM, along with smart assumptions that assist the optimizer in finding the global minimum. One such fundamental assumption is the use of a Hilbert curve as the initial structure. This helps MultiMM to converge faster because the initial structure is already highly compacted.
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
After running the MultiMM model, users obtain a genome-wide structure. Users can color different chromosomes or compartments, or they can visualize individual chromosomes separately. MultiMM is simple to use, as it is based on modifying a single configuration file. Here we explain its usage.
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
## Key Features
|
|
12
|
+
|
|
13
|
+
- Efficient simulation of chromatin interactions using 3D conformations.
|
|
14
|
+
- Can simulate the scales of nucleosomes, TADs, compartments, chromosomal territories and interactions with lamina.
|
|
15
|
+
- Integration with **bedpe** for chromatin structures.
|
|
16
|
+
- Scalable simulations across different force fields and resolution levels.
|
|
17
|
+
- Compatible with modern GPU-accelerated simulation libraries.
|
|
18
|
+
|
|
19
|
+
## About Operating Systems
|
|
20
|
+
|
|
21
|
+
MultiMM has been tested primarily on Linux-based operating systems, with successful tests in Ubuntu, Debian, and Red Hat-based distributions. It is also possible to run it on macOS, though without CUDA support, which is helpful for accelerating computations. We do not recommend running MultiMM on Windows systems.
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
Create a Python 3.10 environment and type:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
pip install -r requirements.txt
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Input Data
|
|
31
|
+
|
|
32
|
+
MultiMM relies on three types of datasets:
|
|
33
|
+
|
|
34
|
+
- Loop interactions in `bedpe` format (mandatory).
|
|
35
|
+
- Compartmentalization data in `bed` format (optional).
|
|
36
|
+
- ATAC-Seq p-value data in `.BigWig` format (optional).
|
|
37
|
+
|
|
38
|
+
For **loop interactions**, users need to provide a file with interactions between anchor 1 and anchor 2, and their strength. The file must be in `.bedpe` format, should contain 7 columns, and should not include a header. An example:
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
chr10 100225000 100230000 chr10 100420000 100425000 95
|
|
42
|
+
chr10 100225000 100230000 chr10 101005000 101010000 56
|
|
43
|
+
chr10 101190000 101195000 chr10 101370000 101375000 152
|
|
44
|
+
chr10 101190000 101200000 chr10 101470000 101480000 181
|
|
45
|
+
chr10 101600000 101605000 chr10 101805000 101810000 152
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The file may contain interactions for all chromosomes, which MultiMM can automatically model. For single-cell data, users can provide a file with the second and third columns identical (the same for the fifth and sixth columns) and strength set to 1.
|
|
49
|
+
|
|
50
|
+
For **(sub)compartment interactions**, the file should be in the format produced by the CALDER software: https://github.com/CSOgroup/CALDER2. Users do not need to run CALDER specifically, but the file format must match. The file should contain at least the first four columns with chromosome, regions, and the subcompartment label. Example:
|
|
51
|
+
|
|
52
|
+
```text
|
|
53
|
+
chr1 700001 900000 A.1.2.2.2.2.2.2 0.875 . 700001 900000 #FF4848
|
|
54
|
+
chr1 900001 1400000 A.1.1.1.1.2.1.1.1.1.1 1 . 900001 1400000 #FF0000
|
|
55
|
+
chr1 1400001 1850000 A.1.1.1.1.2.1.2.2.2.1 1 . 1400001 1850000 #FF0000
|
|
56
|
+
chr1 1850001 2100000 B.1.1.2.2.1.2.1 0.5 . 1850001 2100000 #DADAFF
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
For **ATAC-Seq data**, users should provide a file with p-values in BigWig format. The `pyBigWig` library is required, which does not work on Windows systems.
|
|
60
|
+
|
|
61
|
+
**Note:** At present, MultiMM only works for human genome data. The code may run for other organisms with some debugging and modifications.
|
|
62
|
+
|
|
63
|
+
## Usage
|
|
64
|
+
All the model's parameters are specified in a `config.ini` file. This file should have the following format:
|
|
65
|
+
|
|
66
|
+
```ini
|
|
67
|
+
[Main]
|
|
68
|
+
|
|
69
|
+
; Platform selection
|
|
70
|
+
PLATFORM = OpenCL
|
|
71
|
+
|
|
72
|
+
; Input data
|
|
73
|
+
FORCEFIELD_PATH = forcefields/ff.xml
|
|
74
|
+
LOOPS_PATH = /home/skorsak/Data/Rao/GSE63525_GM12878_primary+replicate_HiCCUPS_looplist_hg19.bedpe
|
|
75
|
+
COMPARTMENT_PATH = /home/skorsak/Data/Rao/subcompartments_primary_replicate/sub_compartments/all_sub_compartments.bed
|
|
76
|
+
ATACSEQ_PATH = /home/skorsak/Data/encode/ATAC-Seq/ENCSR637XSC_GM12878/ENCFF667MDI_pval.bigWig
|
|
77
|
+
OUT_PATH = application_note
|
|
78
|
+
|
|
79
|
+
; Simulation Parameters
|
|
80
|
+
N_BEADS = 50000
|
|
81
|
+
SHUFFLE_CHROMS = True
|
|
82
|
+
NUC_DO_INTERPOLATION = True
|
|
83
|
+
|
|
84
|
+
; Enable forcefield for genome-wide simulation
|
|
85
|
+
SC_USE_SPHERICAL_CONTAINER = True
|
|
86
|
+
CHB_USE_CHROMOSOMAL_BLOCKS = True
|
|
87
|
+
SCB_USE_SUBCOMPARTMENT_BLOCKS = True
|
|
88
|
+
IBL_USE_B_LAMINA_INTERACTION = True
|
|
89
|
+
CF_USE_CENTRAL_FORCE = True
|
|
90
|
+
|
|
91
|
+
; Simulation Parameters
|
|
92
|
+
SIM_RUN_MD = True
|
|
93
|
+
SIM_SAMPLING_STEP = 50
|
|
94
|
+
SIM_N_STEPS = 1000
|
|
95
|
+
TRJ_FRAMES = 100
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
After specifying the parameters and forces, users can run the following command in the terminal:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
python run.py -c config.ini
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The software will output a folder with the resulting structure and plots showing compartment distribution.
|
|
105
|
+
|
|
106
|
+
Example data can be found on Google Drive: https://drive.google.com/drive/folders/1nFAPE4pCaHpeL5nw6nq0VvfUFoc24aXm?usp=sharing. Note that this data is publicly available from Rao et al. The subcompartment predictions were made using CALDER, and the ATAC-Seq data is from ENCODE.
|
|
107
|
+
|
|
108
|
+
In the `examples` folder, we provide example configuration files for different modeling scenarios.
|
|
109
|
+
|
|
110
|
+
## Simulation Arguments
|
|
111
|
+
|
|
112
|
+
MultiMM has numerous configurable parameters. Below is a description of each argument and its default values. The defaults have been tested for genome-wide simulation but can be modified in the configuration file if needed. Units are typically assumed based on OpenMM conventions, though explicit unit specification is not required.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
This version should now be more precise and polished. Let me know if you'd like to adjust anything further!
|
|
117
|
+
|
|
118
|
+
| Argument Name | Type | Value | Units | Description |
|
|
119
|
+
|------------------------------|--------------|-------------|---------------|-------------|
|
|
120
|
+
| PLATFORM | str | None | None | name of the platform. Available choices: CPU, OpenCL, CUDA. |
|
|
121
|
+
| DEVICE | str | None | None | device index for CUDA or OpenCL (count from 0) |
|
|
122
|
+
| INITIAL_STRUCTURE_PATH | str | None | None | Path to CIF file. |
|
|
123
|
+
| BUILD_INITIAL_STRUCTURE | bool | True | None | To build a new initial structure. |
|
|
124
|
+
| INITIAL_STRUCTURE_TYPE | str | hilbert | None | you can choose between: hilbert, circle. |
|
|
125
|
+
| FORCEFIELD_PATH | str | None | None | Path to XML file with forcefield. |
|
|
126
|
+
| N_BEADS | int | 50000 | None | Number of Simulation Beads. |
|
|
127
|
+
| COMPARTMENT_PATH | str | None | None | It should be a `.bed` file with subcompartments from Calder. |
|
|
128
|
+
| LOOPS_PATH | str | None | None | A `.bedpe` file path with loops. It is required. |
|
|
129
|
+
| ATACSEQ_PATH | str | None | None | A `.bw` or `.BigWig` file path with atacseq data for nucleosome interpolation. It is not required. |
|
|
130
|
+
| OUT_PATH | str | results | None | Output folder name. |
|
|
131
|
+
| LOC_START | int | None | None | Starting region coordinate (*in case that you do not want to model the whole genome*). |
|
|
132
|
+
| LOC_END | int | None | None | Ending region coordinate (*in case that you do not want to model the whole genome*). |
|
|
133
|
+
| CHROM | str | None | None | Chromosome that corresponds the the modelling region of interest (*in case that you do not want to model the whole genome*). |
|
|
134
|
+
| SHUFFLE_CHROMS | bool | False | None | Shuffle the chromosomes. |
|
|
135
|
+
| SHUFFLING_SEED | int | 0 | None | Shuffling random seed. |
|
|
136
|
+
| SAVE_PLOTS | bool | True | None | Save plots. |
|
|
137
|
+
| POL_USE_HARMONIC_BOND | bool | True | None | Use harmonic bond interaction for consecutive beads ($i,i\pm 1$). |
|
|
138
|
+
| POL_HARMONIC_BOND_R0 | float | 0.1 | nm | Harmonic bond distance equilibrium constant. |
|
|
139
|
+
| POL_HARMONIC_BOND_K | float | 300000.0 | kJ/mol/nm^2 | harmonic bond force constant |
|
|
140
|
+
| POL_USE_HARMONIC_ANGLE | bool | True | None | Use harmonic angle interaction for consecutuve beads ($i,i\pm 1, i\pm 2$). |
|
|
141
|
+
| POL_HARMONIC_ANGLE_R0 | float | pi | None (radians) | Equilibrium angle of harmonic angle force. |
|
|
142
|
+
| POL_HARMONIC_ANGLE_CONSTANT_K| float | 100.0 | kJ/mol/radian^2 | Harmonic angle force constant. |
|
|
143
|
+
| LE_USE_HARMONIC_BOND | bool | True | None | Use harmonic bond interaction for long range loops. |
|
|
144
|
+
| LE_FIXED_DISTANCES | bool | False | None | For fixed distances between loops. False if you want to correlate with the heatmap strength. |
|
|
145
|
+
| LE_HARMONIC_BOND_R0 | float | 0.1 | None | Harmonic bond distance equilibrium constant for long-range loops. |
|
|
146
|
+
| LE_HARMONIC_BOND_K | float | 30000.0 | kJ/mol/nm^2 | Harmonic bond force constant for long-range loops. |
|
|
147
|
+
| EV_USE_EXCLUDED_VOLUME | bool | True | None | Use excluded volume $V_{ev}=\epsilon\left(\frac{\sigma}{r+r_{\text{small}}}\right)^{\alpha}$. |
|
|
148
|
+
| EV_EPSILON | float | 100.0 | kJ/mol | Epsilon parameter - strength of excluded volume. |
|
|
149
|
+
| EV_R_SMALL | float | 0.05 | nm | Add something small in denominator to make it not exploding all the time. |
|
|
150
|
+
| EV_POWER | float | 3.0 | None | Power $\alpha$ in the exponent of EV potential. |
|
|
151
|
+
| SC_USE_SPHERICAL_CONTAINER | bool | False | None | Use Spherical container. |
|
|
152
|
+
| SC_RADIUS1 | float | None | nm | Inner spherical container radius. |
|
|
153
|
+
| SC_RADIUS2 | float | None | nm | Outer spherical container radius. |
|
|
154
|
+
| SC_SCALE | float | 1000.0 | kJ/mol/nm^2 | Spherical container scaling factor |
|
|
155
|
+
| CHB_USE_CHROMOSOMAL_BLOCKS | bool | False | None | Use Chromosomal Blocks. |
|
|
156
|
+
| CHB_KC | float | 0.3 | nm^(-4) | Block copolymer width parameter. |
|
|
157
|
+
| CHB_DE | float | 1e-5 | kJ/mol | Energy factor for block copolymer chromosomal model. |
|
|
158
|
+
| COB_USE_COMPARTMENT_BLOCKS | bool | False | kJ/mol | Use Compartment Blocks. |
|
|
159
|
+
| COB_DISTANCE | float | None | nm | Block copolymer equilibrium distance for chromosomal blocks. |
|
|
160
|
+
| COB_EA | float | 1.0 | kJ/mol | Energy strength for A compartment. |
|
|
161
|
+
| COB_EB | float | 2.0 | kJ/mol | Energy strength for B compartment. |
|
|
162
|
+
| SCB_USE_SUBCOMPARTMENT_BLOCKS| bool | False | None | Use Subcompartment Blocks. |
|
|
163
|
+
| SCB_DISTANCE | float | None | nm | Block copolymer equilibrium distance for chromosomal blocks. |
|
|
164
|
+
| SCB_EA1 | float | 1.0 | kJ/mol | Energy strength for A1 compartment. |
|
|
165
|
+
| SCB_EA2 | float | 1.33 | kJ/mol | Energy strength for A2 compartment. |
|
|
166
|
+
| SCB_EB1 | float | 1.66 | kJ/mol | Energy strength for B1 compartment. |
|
|
167
|
+
| SCB_EB2 | float | 2.0 | kJ/mol | Energy strength for B2 compartment. |
|
|
168
|
+
| IBL_USE_B_LAMINA_INTERACTION | bool | False | None | Interactions of B compartment with lamina. |
|
|
169
|
+
| IBL_SCALE | float | 400.0 | kJ/mol | Scaling factor for B comoartment interaction with lamina. |
|
|
170
|
+
| CF_USE_CENTRAL_FORCE | bool | False | None | Attraction of smaller chromosomes to the nucleolus (in the center). |
|
|
171
|
+
| CF_STRENGTH | float | 10.0 | kJ/mol | Strength of Attraction of Smaller Chromosomes |
|
|
172
|
+
| NUC_DO_INTERPOLATION | bool | False | None | Attraction of smaller chromosomes. |
|
|
173
|
+
| MAX_NUCS_PER_BEAD | int | 4 | None | Maximum amount of nucleosomes per single bead for nucleosome interpolation. |
|
|
174
|
+
| NUC_RADIUS | float | 0.1 | None | The radius of the single nucleosome helix. |
|
|
175
|
+
| POINTS_PER_NUC | int | 20 | None | The number of points that consist a nucleosome helix. |
|
|
176
|
+
| PHI_NORM | float | pi/5 | None | Zig zag angle. |
|
|
177
|
+
| SIM_RUN_MD | bool | False | None | Do you want to run MD simulation? |
|
|
178
|
+
| SIM_N_STEPS | int | None | None | Number of steps in MD simulation |
|
|
179
|
+
| SIM_ERROR_TOLERANCE | float | 0.01 | None | Error tolerance for variable MD simulation |
|
|
180
|
+
| SIM_AMD_ALPHA | float | 100.0 | kJ/mol | Alpha of AMD simulation. |
|
|
181
|
+
| SIM_AMD_E | float | 1000.0 | kJ/mol | E (energy) of AMD simulation. |
|
|
182
|
+
| SIM_SAMPLING_STEP | int | 100 | None | It determines in t how many steps we save a structure. |
|
|
183
|
+
| SIM_INTEGRATOR_TYPE | str | langevin | None | Possible choices: variable_nagevin, langevin, variable_verlet, verlet, amd, brownian. |
|
|
184
|
+
| SIM_INTEGRATOR_STEP | Quantity | 1 | fsec | The step of integrator. |
|
|
185
|
+
| SIM_FRICTION_COEFF | float | 0.5 | 1/psec | Friction coefficient (Used only with langevin and brownian integrators). |
|
|
186
|
+
| SIM_SET_INITIAL_VELOCITIES | bool | False | None | Sets initial velocities based on Boltzmann distribution. |
|
|
187
|
+
| SIM_TEMPERATURE | Quantity | 310 | kelvin | Simulation temperature |
|
|
188
|
+
| TRJ_FRAMES | int | 2000 | None | Number of trajectory frames to save. |
|
|
189
|
+
|
|
190
|
+
## Copyrights
|
|
191
|
+
|
|
192
|
+
The software is freely distributed under the GNU license and everybody can use it how they want, improve it, or apply it to their research interests. In case that the software would be used for research, we would like that you will cite our paper:
|
|
193
|
+
|
|
194
|
+
- Korsak, Sevastianos, Krzysztof Banecki, and Dariusz Plewczynski. "Multiscale Molecular Modelling of Chromatin with MultiMM: From Nucleosomes to the Whole Genome." bioRxiv (2024): 2024-07.
|
|
195
|
+
|
|
196
|
+
Please, communicate with the authors in case that you would like to contribute in this model, and you would like to improve it.
|
|
197
|
+
|
multimm-1.0.0/setup.cfg
ADDED
multimm-1.0.0/setup.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
with open('README.md', 'r', encoding='utf-8') as f:
|
|
5
|
+
long_description = f.read()
|
|
6
|
+
|
|
7
|
+
setup(
|
|
8
|
+
name='MultiMM', # Package name
|
|
9
|
+
version='1.0.0', # Version of the software
|
|
10
|
+
description='A tool for chromatin modeling from nucleosomes to chromosomal territories.',
|
|
11
|
+
long_description=long_description,
|
|
12
|
+
long_description_content_type='text/markdown',
|
|
13
|
+
author='Sebastian Korsak',
|
|
14
|
+
author_email='sebykorsak@gmail.com',
|
|
15
|
+
url='https://github.com/SFGLab/MultiMM', # GitHub repository URL
|
|
16
|
+
license='GNU General Public License v3.0',
|
|
17
|
+
packages=find_packages(), # Automatically finds all packages and sub-packages
|
|
18
|
+
install_requires=[ # List your package dependencies here
|
|
19
|
+
'numpy',
|
|
20
|
+
'scipy',
|
|
21
|
+
'pandas',
|
|
22
|
+
'argparse',
|
|
23
|
+
'matplotlib',
|
|
24
|
+
'mdtraj',
|
|
25
|
+
'seaborn',
|
|
26
|
+
'scikit-learn',
|
|
27
|
+
'configparser',
|
|
28
|
+
'typing-extensions',
|
|
29
|
+
'pyBigWig',
|
|
30
|
+
'hilbertcurve',
|
|
31
|
+
'tqdm',
|
|
32
|
+
],
|
|
33
|
+
extras_require={ # Optional dependencies
|
|
34
|
+
'viz': ['pyvista[all]'],
|
|
35
|
+
'simulations': ['OpenMM'],
|
|
36
|
+
},
|
|
37
|
+
entry_points={
|
|
38
|
+
'console_scripts': [
|
|
39
|
+
'MultiMM=MultiMM.run:main', # MultiMM command points to run.py's main function
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
classifiers=[
|
|
43
|
+
'Programming Language :: Python :: 3',
|
|
44
|
+
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
|
45
|
+
'Operating System :: POSIX :: Linux', # General OS classifier
|
|
46
|
+
],
|
|
47
|
+
python_requires='>=3.10', # Specify Python version compatibility
|
|
48
|
+
)
|