Skip to content

Latest commit

 

History

History

Carnegie Mellon University, Massachusetts Institute of Technology, Stanford University, University of Memphis. Copyright 2016. All Rights Reserved.

I. Dependencies

  1. Ant 1.9 or greater

  2. Java Enterprise Edition Software Development Kit (J2EE SDK)

  3. Eclipse or Cygwin

  4. Git

    git clone https://github.com/PSLCDataShop/WorkflowComponents WorkflowComponents

AnalysisDescriptive Requirements:

  • R 3.2.3 or higher

The following installation commands should be run in the R console as administrator.

options(repos=structure(c(CRAN="http://cran.cnr.berkeley.edu/")))

install.packages("lme4", lib="C:/R-3.2.3/library")
install.packages("plyr", lib="C:/R-3.2.3/library")
install.packages("caTools", lib="C:/R-3.2.3/library")
install.packages("pROC", lib="C:/R-3.2.3/library")
install.packages("minqa", lib="C:/R-3.2.3/library")
install.packages("Rcpp", lib="C:/R-3.2.3/library")
install.packages("nloptr", lib="C:/R-3.2.3/library")

This component also requires EpiCalc which is no longer available from CRAN. The EpiCalc package can be downloaded from https://cran.r-project.org/src/contrib/Archive/epicalc/

wget https://cran.r-project.org/src/contrib/Archive/epicalc/epicalc_2.15.1.0.tar.gz
Unzip (tar/gz) and copy to C:\R-3.2.3\library or wherever your R\library folder is located

In the R console, execute the command:

    install.packages("C:/downloads/epicalc", lib="C:/R-3.2.3/library", repos = NULL, type="source")

II. Documentation

See WorkflowComponents/Workflow Components.docx for detailed information on creating, modifying, or running components.

III. Testing a workflow component in Eclipse, Cygwin, or Linux

A. Eclipse

  1. File -> Import -> General -> Existing Projects into Workspace
  2. Choose any component directory from your newly imported git clone, i.e. WorkflowComponents/
  3. Click 'Finish'
  4. In the Ant view (Windows -> Show View -> Ant), add the desired component's build.xml to your current buildfiles, e.g. /build.xml
  5. Double click the ant task "runToolTemplate". The component should produce example XML output if it is setup correctly.
  • For debugging, you may wish to add the jars in the directory WorkflowComponents/CommonLibraries to your build path.

B. Cygwin or Linux

  1. Change to your WorkflowComponents directory, e.g. /cygdrive/c/your_workspace//
  2. Type the command "ant -p" to get a list of ant tasks
  3. Type "ant runComponent" to run the component with the included example data

IV. Building components

Build all components

Modify the "dir" variable in WorkflowComponents/build.sh to match your WorkflowComponents path, then run the script (requires bash)

Building a single component

ant dist