Skip to content

Commit a9acb40

Browse files
committed
Change magic argument to modelling level
1 parent c79591a commit a9acb40

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Therefore, it is advisable to read the paper and understand well the meaning of
198198
| PLATFORM | str | CPU | CPU | name of the platform. Available choices: CPU, OpenCL, CUDA. |
199199
| CPU_THREADS | int | None | None | Number of CPU threads (in case that CPU is chosen as platform). |
200200
| DEVICE | str | None | None | device index for CUDA or OpenCL (count from 0) |
201-
| MAGIC_ARGUMENT | str | None | None | Helping function to specify parameters of simulation. Choose 'GENE', 'CHROM' or 'GW' depending on the resolution of interest. |
201+
| MODELLING_LEVEL | str | None | None | Helping function to specify parameters of simulation. Choose 'GENE', 'CHROM' or 'GW' depending on the resolution of interest. |
202202
| INITIAL_STRUCTURE_PATH | str | None | None | Path to CIF file. |
203203
| BUILD_INITIAL_STRUCTURE | bool | True | None | To build a new initial structure. |
204204
| INITIAL_STRUCTURE_TYPE | str | hilbert | None | you can choose between: hilbert, circle, rw, confined_rw, self_avoiding_rw, helix, spiral, sphere, knot. |

simulation/args_definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def write_config_file(self):
135135
Arg('PLATFORM', help=f"name of the platform. Available choices: {' '.join(available_platforms)}", type=str, default='CPU', val='CPU'),
136136
Arg('CPU_THREADS', help=f"The number of CPU threads (in case you would like to specify them).", type=int, default='', val=''),
137137
Arg('DEVICE', help="device index for CUDA or OpenCL (count from 0)", type=str, default='', val=''),
138-
Arg('MAGIC_ARGUMENT', 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+
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=''),
139139

140140
# Input data
141141
Arg('INITIAL_STRUCTURE_PATH', help="Path to CIF file.", type=str, default='', val=''),

simulation/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(self,args):
101101
def convenient_argument_changer(self):
102102
self.args.NUC_DO_INTERPOLATION = False
103103
self.args.ATACSEQ_PATH = None
104-
if self.args.MAGIC_ARGUMENT=='GENE' or self.args.MAGIC_ARGUMENT=='REGION' or self.args.MAGIC_ARGUMENT=='TAD':
104+
if self.args.MODELLING_LEVEL=='GENE' or self.args.MODELLING_LEVEL=='REGION' or self.args.MODELLING_LEVEL=='TAD':
105105
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')
106106
self.args.N_BEADS=1000
107107
self.args.SC_USE_SPHERICAL_CONTAINER=False
@@ -113,7 +113,7 @@ def convenient_argument_changer(self):
113113
self.args.SHUFFLE_CHROMS=False
114114
self.args.SIM_RUN_MD=True
115115
self.args.SIM_N_STEPS=10000
116-
elif self.args.MAGIC_ARGUMENT=='CHROMOSOME' or self.args.MAGIC_ARGUMENT=='CHROM' or self.args.MAGIC_ARGUMENT=='COMP':
116+
elif self.args.MODELLING_LEVEL=='CHROMOSOME' or self.args.MODELLING_LEVEL=='CHROM' or self.args.MODELLING_LEVEL=='COMP':
117117
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')
118118
self.args.N_BEADS=20000
119119
self.args.SC_USE_SPHERICAL_CONTAINER=False
@@ -124,7 +124,7 @@ def convenient_argument_changer(self):
124124
self.args.CF_USE_CENTRAL_FORCE=False
125125
self.args.SIM_RUN_MD=True
126126
self.args.SIM_N_STEPS=10000
127-
elif self.args.MAGIC_ARGUMENT=='GW' or self.args.MAGIC_ARGUMENT=='GENOME':
127+
elif self.args.MODELLING_LEVEL=='GW' or self.args.MODELLING_LEVEL=='GENOME':
128128
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')
129129
self.args.N_BEADS=200000
130130
self.args.SC_USE_SPHERICAL_CONTAINER=True

0 commit comments

Comments
 (0)