Skip to content

Commit 3bd5c35

Browse files
author
Philip Harrison
committed
fixed naming
1 parent 8191f7e commit 3bd5c35

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

PLA_plotting_cells.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ library(rstatix)
99
library(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
1313
dir_path <- "/path/to/folder/"
1414
expt_name <- "EMD-LMNB1_MCF7" # name of experiment folder
1515
root_dir <- paste(dir_path, expt_name, "/", sep="")
@@ -35,13 +35,13 @@ mydata$Well[mydata$ImageNumber >=31] <-"B2"
3535
mydata$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"))
4545
class(mydata$Condition)
4646
levels(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
7878
EMD_LMNB1<-mydata %>%
79-
filter(Condition == "Protein A-Protein B complex")
79+
filter(Condition == "EMD-LMNB1 complex")
8080

8181
EMD_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

Comments
 (0)