Please have a look also to
nanny for tidy high-level data analysis and manipulation
tidyHeatmap for producing heatmaps following tidy principles
tidybulk for tidy and modular transcriptomics analyses
library(knitr) knitr::opts_chunk$set(cache = TRUE, warning = FALSE, message = FALSE, cache.lazy = FALSE) library(dplyr) library(tidygate)
# From Github devtools::install_github("stemangiola/tidygate") # From CRAN install.package("tidygate")
It interactively or programmately labels points within custom gates on two dimensions, according to tidyverse principles. The information is added to your tibble. It is based on the package gatepoints
from Wajid Jawaid.
The main benefits are
A tibble of this kind
dimension1 | dimension2 | annotations |
------------- | ------------- | -------------
chr
or fctr
| numeric
| ...
tidygate_gate <- tidygate_data %>% mutate( gate = gate_chr( Dim1, Dim2 ) )
escape
on your keyboardtidygate_gate
tidygate_data %>% mutate( gate = gate_chr( Dim1, Dim2, # Pre-defined gates gate_list = tidygate::gate_list ))
Gates are saved in a temporary file for later use
my_gates = tidygate::gate_list my_gates
We can use previously drawn gates to programmately add the gate column
tidygate_data %>% mutate( gate = gate_chr( Dim1, Dim2, # Pre-defined gates gate_list = my_gates ))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.