Skip to content

Instantly share code, notes, and snippets.

View lgatto's full-sized avatar

Laurent Gatto lgatto

View GitHub Profile
@lgatto
lgatto / gist:6f6facde55ab9e313753b4d92faa021a
Created November 23, 2018 10:34 — forked from ajstewartlang/gist:89dcdf01c4512a213141a16e9243626d
Hacked together code for animated raincloud plots for N=20 and N=500 where no difference exists in underlying populations
#Usimg @micahgallen's nice raincloud plot code
#and fork of benmarwick/geom_flat_violin.R code
devtools::install_github('thomasp85/gganimate')
library(tidyverse)
library(gganimate)
library(RColorBrewer)
library(plyr)
#the following is a fork of benmarwick/geom_flat_violin.R
library(base64enc)
library(RJSONIO)
library(httr)
default_key <- function () {
key <- Sys.getenv("POSTMARKAPP_API_KEY")
if (key == "") {
stop("Either provide key or set envvar POSTMARKAPP_API_KEY", call. = FALSE)
}
key
@lgatto
lgatto / deseq-vs-edger.R
Created September 19, 2012 09:38 — forked from stephenturner/deseq-vs-edger.R
DESeq vs edgeR comparison
## http://gettinggeneticsdone.blogspot.co.uk/2012/09/deseq-vs-edger-comparison.html
library(DESeq)
library(edgeR)
library(VennDiagram)
# Read in data ------------------------------------------------------------
## Use pasilla data
datafile = system.file( "extdata/pasilla_gene_counts.tsv", package="pasilla" )