-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpairs.Rmd
54 lines (35 loc) · 1.08 KB
/
pairs.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
---
title: "pair code"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r, eval=F}
source('./shreyas_analysis_files/sero_mc_st.R')
source('./shreyas_analysis_files/sero_mc_cc.R')
```
```{r, eval=F}
source('./shreyas_analysis_files/sero_cc_mb.R')
source('./shreyas_analysis_files/sero_cc_mb.R')
```
Index to identify serotype pairs found more often than expected
```{r}
source('./shreyas_analysis_files/ss_results.R')
index.more <- read.csv('./shreyas_analysis_files/ss_index.csv')
index.more <- index.more[order(-index.more$total),]
View(index.more[,c('sero_pair','total')])
write.csv(index.more, 'st.pairs.over.csv')
```
Index to identify serotype pairs found LESS often than expected
```{r}
source('./shreyas_analysis_files/ss_results_LESS.R')
index.less <- read.csv('shreyas_analysis_files/ss_index_under_rep.csv')
index.less <- index.less[order(-index.less$total),]
View(index.less[,c('sero_pair','total')])
write.csv(index.less, 'st.pairs.under.csv')
```
Network plot
```{r}
source('./shreyas_analysis_files/index_network_plot.R')
```