@@ -9,7 +9,7 @@ library(rstatix)
99library(psych )
1010
1111# Read in .csv output file from CellProfiler:
12- # replace /path/to/folder/ below with path to experiment folder
12+ # replace /path/to/folder/ below with path to experiment folder
1313dir_path <- " /path/to/folder/"
1414expt_name <- " EMD-LMNB1_MCF7" # name of experiment folder
1515root_dir <- paste(dir_path , expt_name , " /" , sep = " " )
@@ -35,13 +35,13 @@ mydata$Well[mydata$ImageNumber >=31] <-"B2"
3535mydata $ Well [mydata $ ImageNumber > = 34 ] <- " B3"
3636
3737# Create a new column "Condition" with information on experimental condition
38- mydata $ Condition [mydata $ Slide == " S1" ] <- " EMD"
39- mydata $ Condition [mydata $ Slide == " S2" ] <- " LMNB1"
40- mydata $ Condition [mydata $ Slide == " S3" ] <- " EMD-LMNB1"
38+ mydata $ Condition [mydata $ Slide == " S1" ] <- " EMD only "
39+ mydata $ Condition [mydata $ Slide == " S2" ] <- " LMNB1 only "
40+ mydata $ Condition [mydata $ Slide == " S3" ] <- " EMD-LMNB1 complex "
4141
4242
4343# Change "Condition" to a factor instead of a character and define the levels to get it in the right order in the plots later
44- mydata $ Condition <- factor (mydata $ Condition , levels = c(" EMD" , " LMNB1" , " EMD-LMNB1" ))
44+ mydata $ Condition <- factor (mydata $ Condition , levels = c(" EMD only " , " LMNB1 only " , " EMD-LMNB1 complex " ))
4545class(mydata $ Condition )
4646levels(mydata $ Condition )
4747
@@ -76,10 +76,10 @@ mydata$Condition <- recode_factor(mydata$Condition, 'EMD'='Protein A only', 'LMN
7676
7777# split data set for plotting based on condition
7878EMD_LMNB1 <- mydata %> %
79- filter(Condition == " Protein A-Protein B complex" )
79+ filter(Condition == " EMD-LMNB1 complex" )
8080
8181EMD_LMNB1_omitting <- mydata %> %
82- filter(Condition != " Protein A-Protein B complex" )
82+ filter(Condition != " EMD-LMNB1 complex" )
8383
8484
8585# Plot RCP/cell
0 commit comments