-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fig_k.Rmd
106 lines (82 loc) · 3.15 KB
/
Fig_k.Rmd
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
title: "Data Visualization"
output: html_notebook
---
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Cmd+Shift+Enter*.
#Download dataset
```{r}
data <- read.csv("/Users/sanzidaakhteranee/Documents/HackBio_Contest/figure_one_k.csv", header= TRUE, sep = ",")
print(data)
```
#Remove column
```{r}
data <-subset (data, select = -X)
print(data)
```
#Divide a data vector into groups as defined by technology
```{r}
partitions <- split(data, data$tech)
print(partitions)
```
Create dataframe or matrix for technology
```{r}
technology <- unique(data$tech)
technology
```
#Plotting boxplot
```{r}
par(mfrow=c(2,5))
par(mar=c(5,4,4,2)+0.1)
boxplot(seurat_cell_type_pred_score ~ sample_id,
data=partitions$ddseq,
col= 'cornflowerblue', pch=19,
xlim =c(), ylim=c(0.0, 1.0),
xaxt ='n', main='ddseq',
xlab= 'sample_id', ylab= 'Seurat Score')
boxplot(seurat_cell_type_pred_score ~ sample_id,
data=partitions$mtscatacfacs, col= 'darkorange', pch=19,
xlim =c(), ylim=c(0.0, 1.0),
xaxt ='n', main='mtscatacfacs',
xlab= 'sample_id', ylab= 'Seurat Score')
boxplot(seurat_cell_type_pred_score ~ sample_id,
data=partitions$ '10xmultiome', col= 'darkgreen', pch=19,
xlim =c(), ylim=c(0.0, 1.0),
xaxt ='n', main='10xmultiome',
xlab= 'sample_id', ylab= 'Seurat Score')
boxplot(seurat_cell_type_pred_score ~ sample_id,
data=partitions$'10xv11', col= 'deeppink', pch=19,
xlim =c(), ylim=c(0.0, 1.0),
xaxt ='n', main='10xv11',
xlab= 'sample_id', ylab= 'Seurat Score')
boxplot(seurat_cell_type_pred_score ~ sample_id,
data=partitions$'10xv11c', col= 'darkorchid', pch=19,
xlim =c(), ylim=c(0.0, 1.0),
xaxt ='n', main='10xv11c',
xlab= 'sample_id', ylab= 'Seurat Score')
boxplot(seurat_cell_type_pred_score ~ sample_id,
data=partitions$'10xv2', col= 'aquamarine4', pch=19,
ylim=c(0.0, 1.0),
xaxt ='n', main='10xv2',
xlab= 'sample_id', ylab= 'Seurat Score')
boxplot(seurat_cell_type_pred_score ~ sample_id,
data=partitions$hydrop, col= 'blue4', pch=19,
xlim =c(), ylim=c(0.0, 1.0),
xaxt ='n', main='hydrop',
xlab= 'sample_id', ylab= 'Seurat Score')
boxplot(seurat_cell_type_pred_score ~ sample_id,
data=partitions$mtscatac, col= 'darkmagenta', pch=19,
xlim =c(), ylim=c(0.0, 1.0),
xaxt ='n', main='mtscatac',
xlab= 'sample_id', ylab= 'Seurat Score')
boxplot(seurat_cell_type_pred_score ~ sample_id,
data=partitions$'s3atac', col= 'azure4', pch=19,
xlim =c(), ylim=c(0.0, 1.0),
xaxt ='n', main='s3tac',
xlab= 'sample_id', ylab= 'Seurat Score')
boxplot(seurat_cell_type_pred_score ~ sample_id,
data=partitions$'10xv1', col= 'coral2', pch=19,
xlim =c(), ylim=c(0.0, 1.0),
xaxt ='n', main='10xv1',
xlab= 'sample_id', ylab= 'Seurat Score')
```