PoonLab / KaphiShiny

A Shiny web interface for running Kaphi
0 stars 0 forks source link

Use lists to provide help text in app.R script #3

Open ArtPoon opened 7 years ago

ArtPoon commented 7 years ago

For example:

models <- list(
  "Coalescent" = list(
    "Constant Coalescent"="help text"
  ),

and

parameters <- list(
  "Constant Coalescent" = list(
    "Ne.tau"="Coalescent time: product of effective population size and generation time"
  ),
0ldM4j0r commented 7 years ago

I was wondering if it would be more appropriate to replace the help text with a string that corresponds to the way the expressions are coded in Kaphi.

For example:

models <- list(
  "Coalescent" = list(
    Constant = "const.coalescent"
  ),
  "Compartmental" = list(
    SIRD = "sir.dynamic",
    SIRND = "sir.nondynamic",
    SEIR = "seir",
    SIS = "sis"
  ),
  "Networks" = list(
  ),
  "Speciation" = list(
    Yule = "yule", 
    BirthDeath = "bd",
    BiSSE = "bisse",
    MuSSE = "musse",
    QuaSSE = "quasse",
    GeoSSE = "geosse",
    BiSSness = "bisseness",
    ClaSSE  = "classe"
  )
)
ArtPoon commented 7 years ago

Let's have both:

models <- list(
  "Coalescent" = list(
    Constant = list(Rexp="const.coalescent", help.txt="foo")
  ),
ArtPoon commented 7 years ago

@0ldM4j0r to test implementation of this on a separate branch