MultiMM 1.0.22__tar.gz → 1.0.23__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.
- {multimm-1.0.22 → multimm-1.0.23}/MultiMM.egg-info/PKG-INFO +3 -2
- {multimm-1.0.22 → multimm-1.0.23}/PKG-INFO +3 -2
- {multimm-1.0.22 → multimm-1.0.23}/README.md +2 -1
- {multimm-1.0.22 → multimm-1.0.23}/setup.py +1 -1
- {multimm-1.0.22 → multimm-1.0.23}/simulation/__init__.py +1 -1
- {multimm-1.0.22 → multimm-1.0.23}/simulation/args_definition.py +2 -1
- {multimm-1.0.22 → multimm-1.0.23}/simulation/model.py +5 -3
- {multimm-1.0.22 → multimm-1.0.23}/LICENSE +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/MultiMM.egg-info/SOURCES.txt +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/MultiMM.egg-info/dependency_links.txt +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/MultiMM.egg-info/entry_points.txt +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/MultiMM.egg-info/requires.txt +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/MultiMM.egg-info/top_level.txt +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/setup.cfg +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/simulation/forcefields/dna_histones_ff.xml +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/simulation/forcefields/ff.xml +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/simulation/initial_structure_tools.py +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/simulation/nucleosome_interpolation.py +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/simulation/plots.py +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/simulation/run.py +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/simulation/utils.py +0 -0
- {multimm-1.0.22 → multimm-1.0.23}/simulation/validation.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MultiMM
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.23
|
|
4
4
|
Summary: A tool for chromatin modeling from nucleosomes to chromosomal territories.
|
|
5
5
|
Home-page: https://github.com/SFGLab/MultiMM
|
|
6
6
|
Author: Sebastian Korsak
|
|
@@ -237,8 +237,9 @@ Therefore, it is advisable to read the paper and understand well the meaning of
|
|
|
237
237
|
| Argument Name | Type | Value | Units | Description |
|
|
238
238
|
|------------------------------|--------------|-------------|---------------|-------------|
|
|
239
239
|
| PLATFORM | str | CPU | CPU | name of the platform. Available choices: CPU, OpenCL, CUDA. |
|
|
240
|
+
| CPU_THREADS | int | None | None | Number of CPU threads (in case that CPU is chosen as platform). |
|
|
240
241
|
| DEVICE | str | None | None | device index for CUDA or OpenCL (count from 0) |
|
|
241
|
-
|
|
|
242
|
+
| MODELLING_LEVEL | str | None | None | Helping function to specify parameters of simulation. Choose 'GENE', 'CHROM' or 'GW' depending on the resolution of interest. |
|
|
242
243
|
| INITIAL_STRUCTURE_PATH | str | None | None | Path to CIF file. |
|
|
243
244
|
| BUILD_INITIAL_STRUCTURE | bool | True | None | To build a new initial structure. |
|
|
244
245
|
| INITIAL_STRUCTURE_TYPE | str | hilbert | None | you can choose between: hilbert, circle, rw, confined_rw, self_avoiding_rw, helix, spiral, sphere, knot. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MultiMM
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.23
|
|
4
4
|
Summary: A tool for chromatin modeling from nucleosomes to chromosomal territories.
|
|
5
5
|
Home-page: https://github.com/SFGLab/MultiMM
|
|
6
6
|
Author: Sebastian Korsak
|
|
@@ -237,8 +237,9 @@ Therefore, it is advisable to read the paper and understand well the meaning of
|
|
|
237
237
|
| Argument Name | Type | Value | Units | Description |
|
|
238
238
|
|------------------------------|--------------|-------------|---------------|-------------|
|
|
239
239
|
| PLATFORM | str | CPU | CPU | name of the platform. Available choices: CPU, OpenCL, CUDA. |
|
|
240
|
+
| CPU_THREADS | int | None | None | Number of CPU threads (in case that CPU is chosen as platform). |
|
|
240
241
|
| DEVICE | str | None | None | device index for CUDA or OpenCL (count from 0) |
|
|
241
|
-
|
|
|
242
|
+
| MODELLING_LEVEL | str | None | None | Helping function to specify parameters of simulation. Choose 'GENE', 'CHROM' or 'GW' depending on the resolution of interest. |
|
|
242
243
|
| INITIAL_STRUCTURE_PATH | str | None | None | Path to CIF file. |
|
|
243
244
|
| BUILD_INITIAL_STRUCTURE | bool | True | None | To build a new initial structure. |
|
|
244
245
|
| INITIAL_STRUCTURE_TYPE | str | hilbert | None | you can choose between: hilbert, circle, rw, confined_rw, self_avoiding_rw, helix, spiral, sphere, knot. |
|
|
@@ -196,8 +196,9 @@ Therefore, it is advisable to read the paper and understand well the meaning of
|
|
|
196
196
|
| Argument Name | Type | Value | Units | Description |
|
|
197
197
|
|------------------------------|--------------|-------------|---------------|-------------|
|
|
198
198
|
| PLATFORM | str | CPU | CPU | name of the platform. Available choices: CPU, OpenCL, CUDA. |
|
|
199
|
+
| CPU_THREADS | int | None | None | Number of CPU threads (in case that CPU is chosen as platform). |
|
|
199
200
|
| DEVICE | str | None | None | device index for CUDA or OpenCL (count from 0) |
|
|
200
|
-
|
|
|
201
|
+
| MODELLING_LEVEL | str | None | None | Helping function to specify parameters of simulation. Choose 'GENE', 'CHROM' or 'GW' depending on the resolution of interest. |
|
|
201
202
|
| INITIAL_STRUCTURE_PATH | str | None | None | Path to CIF file. |
|
|
202
203
|
| BUILD_INITIAL_STRUCTURE | bool | True | None | To build a new initial structure. |
|
|
203
204
|
| INITIAL_STRUCTURE_TYPE | str | hilbert | None | you can choose between: hilbert, circle, rw, confined_rw, self_avoiding_rw, helix, spiral, sphere, knot. |
|
|
@@ -6,7 +6,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
|
|
|
6
6
|
|
|
7
7
|
setup(
|
|
8
8
|
name='MultiMM', # Package name
|
|
9
|
-
version='1.0.
|
|
9
|
+
version='1.0.23', # Version of the software
|
|
10
10
|
description='A tool for chromatin modeling from nucleosomes to chromosomal territories.',
|
|
11
11
|
long_description=long_description,
|
|
12
12
|
long_description_content_type='text/markdown',
|
|
@@ -133,8 +133,9 @@ available_platforms = [mm.Platform.getPlatform(i).getName() for i in range(mm.Pl
|
|
|
133
133
|
args = ListOfArgs([
|
|
134
134
|
# Platform settings
|
|
135
135
|
Arg('PLATFORM', help=f"name of the platform. Available choices: {' '.join(available_platforms)}", type=str, default='CPU', val='CPU'),
|
|
136
|
+
Arg('CPU_THREADS', help=f"The number of CPU threads (in case you would like to specify them).", type=int, default='', val=''),
|
|
136
137
|
Arg('DEVICE', help="device index for CUDA or OpenCL (count from 0)", type=str, default='', val=''),
|
|
137
|
-
Arg('
|
|
138
|
+
Arg('MODELLING_LEVEL', help="Choose 'GENE' or 'REGION' for gene or TAD level, 'CHROM' for chromosome leve, and 'GW' for genome level. It will setup some parameters for you and print you helpful comments.", type=str, default='', val=''),
|
|
138
139
|
|
|
139
140
|
# Input data
|
|
140
141
|
Arg('INITIAL_STRUCTURE_PATH', help="Path to CIF file.", type=str, default='', val=''),
|
|
@@ -101,7 +101,7 @@ class MultiMM:
|
|
|
101
101
|
def convenient_argument_changer(self):
|
|
102
102
|
self.args.NUC_DO_INTERPOLATION = False
|
|
103
103
|
self.args.ATACSEQ_PATH = None
|
|
104
|
-
if self.args.
|
|
104
|
+
if self.args.MODELLING_LEVEL=='GENE' or self.args.MODELLING_LEVEL=='REGION' or self.args.MODELLING_LEVEL=='TAD':
|
|
105
105
|
print('\033[91m' + 'MAGIC COMMENT: For gene level it is needed to provide a loops_path, a gene_tsv file, and a gene_name or gene_id to specify the target gene of interest.'+ '\033[0m')
|
|
106
106
|
self.args.N_BEADS=1000
|
|
107
107
|
self.args.SC_USE_SPHERICAL_CONTAINER=False
|
|
@@ -113,7 +113,7 @@ class MultiMM:
|
|
|
113
113
|
self.args.SHUFFLE_CHROMS=False
|
|
114
114
|
self.args.SIM_RUN_MD=True
|
|
115
115
|
self.args.SIM_N_STEPS=10000
|
|
116
|
-
elif self.args.
|
|
116
|
+
elif self.args.MODELLING_LEVEL=='CHROMOSOME' or self.args.MODELLING_LEVEL=='CHROM' or self.args.MODELLING_LEVEL=='COMP':
|
|
117
117
|
print('\033[91m' + 'MAGIC COMMENT: For chromosome level it is needed to provide a loops_path. Do not forget to specify the beggining and end of your chromosome. You can remove the centromers or telomers that are in the boundaries. You can optionally add an eigenvector_tsv to include block-copolymer forces.'+ '\033[0m')
|
|
118
118
|
self.args.N_BEADS=20000
|
|
119
119
|
self.args.SC_USE_SPHERICAL_CONTAINER=False
|
|
@@ -124,7 +124,7 @@ class MultiMM:
|
|
|
124
124
|
self.args.CF_USE_CENTRAL_FORCE=False
|
|
125
125
|
self.args.SIM_RUN_MD=True
|
|
126
126
|
self.args.SIM_N_STEPS=10000
|
|
127
|
-
elif self.args.
|
|
127
|
+
elif self.args.MODELLING_LEVEL=='GW' or self.args.MODELLING_LEVEL=='GENOME':
|
|
128
128
|
print('\033[91m' + 'MAGIC COMMENT: For gw level it is needed to provide a loops_path. You can optionally add an eigenvector_tsv to include block-copolymer forces.'+ '\033[0m')
|
|
129
129
|
self.args.N_BEADS=200000
|
|
130
130
|
self.args.SC_USE_SPHERICAL_CONTAINER=True
|
|
@@ -309,6 +309,8 @@ class MultiMM:
|
|
|
309
309
|
except Exception as e:
|
|
310
310
|
print(f"Failed to find {self.args.PLATFORM}: {e}. Falling back to CPU.")
|
|
311
311
|
platform = mm.Platform.getPlatformByName('CPU')
|
|
312
|
+
if self.args.PLATFORM=='CPU' and self.args.CPU_THREADS!=None:
|
|
313
|
+
platform.setPropertyDefaultValue('Threads', f'{self.args.CPU_THREADS}')
|
|
312
314
|
|
|
313
315
|
# Run the simulation
|
|
314
316
|
self.simulation = Simulation(self.pdb.topology, self.system, self.integrator, platform)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|