Giter Site home page Giter Site logo

shinyscdb's Introduction

This package contains functions for single-cell atlas database shiny apps, including single species metacell atlases and comparative anlyisis between pairs of species.

To use these functions, each app needs to have config.yaml in which input files are specified, and global.R (example below), with libraries and global variables, including list of species (the species acronyms should match those used in config file).

# packages
options(repos = BiocManager::repositories())
library(BiocManager)
library(shiny)
library(data.table)
library(dplyr)
library(reshape2)
library(stringr)
library(glue)
library(ggplot2)
library(ggpubr)
library(RColorBrewer)
library(viridis)
library(gplots)
library(shinydashboard)
library(shinyWidgets)
library(DT)
library(zoo)
library(kableExtra)
library(ComplexHeatmap)
library(circlize)
library(scales)
library(patchwork)
library(rtracklayer)
library(shinyscdb)
library(shinycssloaders)

# config file
conf <- yaml::yaml.load_file("config.yaml", eval.expr=TRUE)

# species dictionary with '"full name" = acronym' pairs
sps <- c(
  "Hoilungia hongkongensis" = "Hhon",
  "Trichoplax adhaerens" = "Tadh",
  "Nematostella vectensis" = "Nvec"
)

# graphical params
heatmap_colors <- c("white","gray99","orange","orangered2","#520c52")

# env interactive heatmap
shiny_env = new.env()

shinyscdb's People

Contributors

anamariaelek avatar

Watchers

Xavier Grau-Bové avatar  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.