Giter Site home page Giter Site logo

deploid-shinyapp's People

Contributors

liuyingh avatar shajoezhu avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

deploid-shinyapp's Issues

Rearrange the app tabs

Use four tabs at the top

  1. Sample infos
  2. Sample sequence exploration
  3. Sequence deconvolution
  4. MCMC diagnostic

plaf url

plot wsaf using dygraph

dygraph
function (data, main = NULL, xlab = NULL, ylab = NULL, periodicity = NULL, 
    group = NULL, elementId = NULL, width = NULL, height = NULL) 
{
    if (xts::xtsible(data)) {
        if (!xts::is.xts(data)) 
            data <- xts::as.xts(data)
        format <- "date"
    }
    else if (is.list(data) && is.numeric(data[[1]])) {
        if (is.null(names(data))) 
            stop("For numeric values, 'data' must be a named list or data frame")
        format <- "numeric"
    }
    else {
        stop("Unsupported type passed to argument 'data'.")
    }
    if (format == "date") {
        if (is.null(periodicity)) {
            if (nrow(data) < 2) {
                periodicity <- defaultPeriodicity(data)
            }
            else {
                periodicity <- xts::periodicity(data)
            }
        }
        time <- time(data)
        data <- zoo::coredata(data)
        data <- unclass(as.data.frame(data))
        timeColumn <- list()
        timeColumn[[periodicity$label]] <- asISO8601Time(time)
        data <- append(timeColumn, data)
    }
    else {
        data <- as.list(data)
    }
    attrs <- list()
    attrs$title <- main
    attrs$xlabel <- xlab
    attrs$ylabel <- ylab
    attrs$labels <- names(data)
    attrs$legend <- "auto"
    attrs$retainDateWindow <- FALSE
    attrs$axes$x <- list()
    attrs$axes$x$pixelsPerLabel <- 60
    x <- list()
    x$attrs <- attrs
    x$scale <- if (format == "date") 
        periodicity$scale
    else NULL
    x$group <- group
    x$annotations <- list()
    x$shadings <- list()
    x$events <- list()
    x$format <- format
    attr(x, "time") <- if (format == "date") 
        time
    else NULL
    attr(x, "data") <- data
    attr(x, "autoSeries") <- 2
    names(data) <- NULL
    x$data <- data
    htmlwidgets::createWidget(name = "dygraphs", x = x, width = width, 
        height = height, htmlwidgets::sizingPolicy(viewer.padding = 10, 
            browser.fill = TRUE), elementId = elementId)
}

Sample info

  1. Tick boxes for choosing pv or pf
  2. Given the choice of 1, dropdown list for choosing the origin of the file
  3. Link to google map, show the plaf used individual origins

pf country list

Africa

  1. Malawi, Congo;
  2. Ghana (Kassena);
  3. Nigeria, Senegal, Mali;
  4. Gambia, Guinea, Ghana (Kintampo).

Asia

  1. Combodia (Pursat), Combodia (Pailin), Thailand (Sisakhet);
  2. Vietnam, Laos, Combodia (Ratanakiri), Combodia (Preah Vihear);
  3. Bangladesh, Myanmar, Thailand (Mae Sot), Thailand (Ranong);

requirements

shiny
plotly
dygraphs
leaflet
shinythemes
quantmod
RCurl

tidy up files

create a remove dir, move DEploid existing functions to the dir

pv country list

clusterNames.1 = c("Thailand")
clusterNames.2 = c("Indonesia", "Malaysia", "Papua New Guinea")
clusterNames.3 = c("Cambodia", "Vietnam", "Laos")
clusterNames.4 = c("Myanmar (Burma)", "China", "Madagascar", "Sri Lanka", "Brazil", "India")

chrom sizes

CHROM CHROMSIZE
Pf3D7_01_v3 643292
Pf3D7_02_v3 947102
Pf3D7_03_v3 1060087
Pf3D7_04_v3 1204112
Pf3D7_05_v3 1343552
Pf3D7_06_v3 1418244
Pf3D7_07_v3 1501717
Pf3D7_08_v3 1419563
Pf3D7_09_v3 1541723
Pf3D7_10_v3 1687655
Pf3D7_11_v3 2038337
Pf3D7_12_v3 2271478
Pf3D7_13_v3 2895605
Pf3D7_14_v3 3291871

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.