Undefined columns error R cytometry analysis
0
0
Entering edit mode
Elizabeth • 0
@df46ae5a
Last seen 19 days ago
United States

Enter the body of text here

Hello! I have been following the GvHD code in order to work on analyzing flow data in R. However, I keep getting the following undefined columns error Code should be placed in three backticks as shown below

knitr::opts_chunk$set(echo = TRUE)
library(ggfortify)
library("flowCore")
library("mtvnorm")
library(ggcyto)
library("ggplot2")
library(flowWorkspace)
library(flowWorkspaceData)
library(xtable)
library(cowplot)
data("GvHD") #load data set
dataDir <- system.file("extdata", package="flowWorkspaceData")

gs <- load_gs(list.files(dataDir, pattern = "gs_bcell_auto",full =TRUE))
gs@transformation <- transform(colnames(gs)[-(1:2)], flowjo_biexp_trans())

autoplot(gs[1], gate = c("CD3","CD19"), bins = 64) + 
  geom_overlay(data = "IgD+CD27+",size=0.25)

Error in `[.data.frame`(x@transformation, i) : undefined columns selected

Any help would be appreciated thanks.

flowCore ggcyto FlowCytometryData • 40 views
ADD COMMENT

Login before adding your answer.

Traffic: 457 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6