-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLCPMosquito_PerformanceAnalysis.R
35 lines (26 loc) · 1.42 KB
/
LCPMosquito_PerformanceAnalysis.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
rm(list = ls())
setwd("/Users/syu/OneDrive - St. Jude Children's Research Hospital/UDrive/Documents_Fischerlab_Backup/Crystallization_screens")
perform.table = read.table("LCPMosquito_PerformanceStatisticsMiteGenPlatesDec2017.csv",
header = T, sep = ",", as.is = T)
count.table = aggregate(data.frame(perform.table$Left.drop, perform.table$Right.drop),
by = list(perform.table$Row, perform.table$Column), FUN = sum)
colnames(count.table) = c("Row", "Column", "Left.drop.tot", "Right.drop.tot")
count.table
left.missing.count = matrix(5 - count.table$Left.drop.tot, nrow = 8, ncol = 12)
row.names(left.missing.count) = c("A","B","C","D","E","F","G","H")
colnames(left.missing.count) = 1:12
right.missing.count = matrix(5 - count.table$Right.drop.tot, nrow = 8, ncol = 12)
row.names(right.missing.count) = c("A","B","C","D","E","F","G","H")
colnames(right.missing.count) = 1:12
left.missing.per = paste(100*left.missing.count/5, "%", sep = "")
right.missing.per = paste(100*right.missing.count/5, "%", sep = "")
left.missing.prop = matrix(left.missing.per, nrow = 8, ncol = 12)
row.names(left.missing.prop) = c("A","B","C","D","E","F","G","H")
colnames(left.missing.prop) = 1:12
right.missing.prop = matrix(right.missing.per, nrow = 8, ncol = 12)
row.names(right.missing.prop) = c("A","B","C","D","E","F","G","H")
colnames(right.missing.prop) = 1:12
left.missing.count
right.missing.count
left.missing.prop
right.missing.prop