Giter VIP home page Giter VIP logo

cromwell_flepimop_project's Introduction

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 the json where the input files for your model are located. The default setting is 'model_input'.
  3. Place all of your input files in this folder.

To execute:

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

Non-Inference run example:

{
  "modelWorkflow.run_Model.name_of_this_model_run": "flepimop",
  "modelWorkflow.run_Model.model_configuration_yml": "config_sample_2pop.yml",
  "modelWorkflow.run_Model.model_executable": "gempyor-simulate",
  "modelWorkflow.run_Model.model_input_folder": "model_input",

  "modelWorkflow.run_Model.model_git_repository": "https://github.com/HopkinsIDD/flepiMoP.git",
  "modelWorkflow.run_Model.model_output_folder": "model_output",
  "modelWorkflow.run_Model.model_output_file_types": "[parquet]",
  "modelWorkflow.run_Model.install_model_script": "./scripts/sh/flepimop/install_model.sh",
  "modelWorkflow.run_Model.run_model_script": "./scripts/sh/flepimop/run_model.sh",
  "modelWorkflow.run_Model.model_runtime_docker": "rocker/verse:latest",
  "modelWorkflow.setup_os_script": "./scripts/sh/setup_os.sh",
  "modelWorkflow.clone_repository_script": "./scripts/sh/clone_git_repository.sh",
  "modelWorkflow.copy_cromwell_logs_script": "./scripts/sh/copy_cromwell_logs.sh",
  "modelWorkflow.copy_model_output_script": "scripts/python/copy_model_output.py"
}

Inference run example:

{
  "modelWorkflow.run_Model.name_of_this_model_run": "flepimop",
  "modelWorkflow.run_Model.model_configuration_yml": "config_sample_2pop_inference.yml",
  "modelWorkflow.run_Model.model_executable": "Rscript  flepiMoP/flepimop/main_scripts/inference_main.R",
  "modelWorkflow.run_Model.model_input_folder": "model_input",

  "modelWorkflow.run_Model.model_git_repository": "https://github.com/HopkinsIDD/flepiMoP.git",
  "modelWorkflow.run_Model.model_output_folder": "model_output",
  "modelWorkflow.run_Model.model_output_file_types": "[parquet]",
  "modelWorkflow.run_Model.install_model_script": "./scripts/sh/flepimop/install_model.sh",
  "modelWorkflow.run_Model.run_model_script": "./scripts/sh/flepimop/run_model.sh",
  "modelWorkflow.run_Model.model_runtime_docker": "rocker/verse:latest",
  "modelWorkflow.setup_os_script": "./scripts/sh/setup_os.sh",
  "modelWorkflow.clone_repository_script": "./scripts/sh/clone_git_repository.sh",
  "modelWorkflow.copy_cromwell_logs_script": "./scripts/sh/copy_cromwell_logs.sh",
  "modelWorkflow.copy_model_output_script": "scripts/python/copy_model_output.py"
}
  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.

cromwell_flepimop_project's People

Contributors

alsnhll avatar jeffstazer avatar jcblemai avatar saraloo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.