Skip to content

midas-network/cromwell_flepimop_project

 
 

Repository files navigation

cromwell_flepimop_project

This project demostrates running FlepiMoP using Cromwell, Python, R, and Docker.

Pre-requisites:

  1. JAVA must be installed and be a minimum version of 11.
  2. Docker must also be installed.

Please note: The cromwell workflow script will check for these requirements and stop execution if they are not met.

Create your model

  1. Create your model configuration file according to FlepiMoP specifications and save it in this folder.
  2. Please specify in your model for input files to be in the model_inputs folder.
  3. Place all of your input files in the model_inputs folder.

To execute:

  1. Edit model_specs.json using a text editor to specify the model configuration file as well as the executable, then save.

Non-Inference run example:

{
	"flepiMoPWorkflow.model_configuration_yml": "config_sample_2pop.yml",
	"flepiMoPWorkflow.model_executable": "gempyor-simulate"
}

Inference run example:

{
	"flepiMoPWorkflow.model_configuration_yml": "config_sample_2pop_inference.yml",
	"flepiMoPWorkflow.model_executable": "Rscript  flepiMoP/flepimop/main_scripts/inference_main.R"
}
  1. From the command line execute the Cromwell workflow.
./cromwell_workflow.sh

Results:

If the workflow Succeededb>, results will be inside the model_output folder.

If the workflow Failed, see stderr file in the model_output folder.

For additional information, see stdout file in the model_output folder.

About

Project repository for Cromwell encapsulation of FlepiMoP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 97.7%
  • Shell 1.1%
  • Other 1.2%