################################################################################################################################# # Script for 3 color HSS analysis # FACS/Flow analysis in R # ################################################################################################################################# ################################################################################################################################# # Load Packages library(flowCore) ################################################################################################################################# ## Reading in FCS files ## #reads .fcs files and converts to readable flowFrame matrix flowData<-exprs(read.FCS("/Users/PATH/to/FILE")) #flowData contains a titled column for each parameter measured: # "FSC-A" is Forward Scatter # "SSC-A" is Side Scatter # "Alexa Fluor 488-A" is for signal from "green" or SF-GFP # "DsRed-A" is for signal from "orange" or mKO2 # "PE-Cy5-A" is for signal from "red" or E2C ################################################################################################################################# ## Determing cell size gate ## #plot FSC vs SSC to determine head of comet, done for all strains per experiment plot(flowData[,"FSC-A"], flowData[,"SSC-A"], pch = '.', main = "Strain Name", xlab = "fsc", ylab = "ssc") #using above plot determine the min and max values for FSC and SSC to be within the gate #exact values depended on cytometer settings and vary day to day #must be determined for each separate flow experiment, determined as in Figure 1 supplement D fscMin<- # Determined from plot fscMax<- # Determined from plot sscMin<- # Determined from plot sscMax<- # Determined from plot # write a function called mask() to isolate cells within this gate mask = function(x) { subset(x, x[,"FSC-A"]>fscMin & x[,"FSC-A"]sscMin & x[,"SSC-A"]