diff --git a/examples/README.md b/examples/README.md index 67a2c73..914b4c4 100755 --- a/examples/README.md +++ b/examples/README.md @@ -7,9 +7,15 @@ The `examples/input` comprises of the fasta sequences (`examples/input/fasta`), In addition it also comprises the `topology{x}.txt` files that define the representation to be used for running the `nude_modeling.py` modeling script. The `{x}` in the topology file's name corresponds to the number of amino acid residues to be coarse-grained to a single flexible bead for regions that lack a previously characterized structure. In this example, we are comparing the 1, 5, 10, 20, 30 and 50 residues per bead coarse-grained representations of the regions with unknown structure of NuDe sub-complex. It is to be noted that the regions with known structure will be modeled as 1 and 10 residues per bead representation. Importantly, note that *any* representation can be compared as long there is a valid modeling file associated with it (representation can be mentioned via a topology file or manually). -The `nude_modeling.py` script is also adapted from the [Integrative model of the NuRD subcomplexes](https://github.com/isblab/nurd) repository for use with NestOR. +It also contains the `nestor_params_optrep.yaml` file which defines the NestOR parameters. Each parameter is described in the file itself. -The `nestor_params_optrep.yaml` defines the NestOR parameters. Each parameter is described in the file itself. +The `nude_modeling.py` script is also adapted from the [Integrative model of the NuRD subcomplexes](https://github.com/isblab/nurd) repository for use with NestOR. The `nestor_output.yaml` contains an example output for the given setup. In addition to this file, NestOR also saves a model from each iteration. These models are not included here due to space constraints. It also generates plots visualizing the log(evidence) (mean and standard error on the mean) (`examples/trial_optrep_params_evidence_errorbarplot.png`), MCMC per step sampling time (`examples/trial_optrep_params_persteptime.png`), NestOR total process time (`examples/trial_optrep_params_proctime.png`) and per step MCMC sampling time and log(evidence) together for all candidate representations (`examples/sterr_evi_and_proctime.png`). +## Running nested sampling on this example +For this example, the user only needs to run +``` +{path_to_IMP_installation} python nude_modeling.py +``` +This command will run one nested sampling run. However, for use with the `wrapper_v{x}.py` the user will need to use modify this `nude_modeling.py` a bit to use command-line arguments. In the current form, the command line arguments have been hard coded in `nude_modeling.py`. The user will need to make these `sys.argv` in the correct order for the wrapper to work. Please see the comments in the `nude_modeling.py` for more details. \ No newline at end of file diff --git a/examples/nude_modeling.py b/examples/nude_modeling.py index 144a1cc..6e4b887 100755 --- a/examples/nude_modeling.py +++ b/examples/nude_modeling.py @@ -40,10 +40,10 @@ # --- remove this section -dat_dir = IMP.nestor.get_example_path("input") -run_output_dir = "run_" + "0" -topology_file = os.path.join(dat_dir, "topology50.txt") -h_param_file = os.path.join(dat_dir, "nestor_params_optrep.yaml") +dat_dir = IMP.nestor.get_example_path("input") +run_output_dir = "run_" + "0" # sys.argv[1] +topology_file = os.path.join(dat_dir, "topology50.txt") # sys.argv[2] +h_param_file = os.path.join(dat_dir, "nestor_params_optrep.yaml") # sys.argv[3] max_shuffle_core = 5 max_shuffle_set2 = 50 diff --git a/pyext/src/wrapper_v6.py b/pyext/src/wrapper_v6.py index 2433392..7251ce4 100755 --- a/pyext/src/wrapper_v6.py +++ b/pyext/src/wrapper_v6.py @@ -384,9 +384,10 @@ def main(): print("\nNone of the runs was successful...!") print("Done...!\n\n") + ################################################### # Main ################################################### if __name__ == "__main__": - main() \ No newline at end of file + main()