Skip to content

Commit

Permalink
rearrange files
Browse files Browse the repository at this point in the history
  • Loading branch information
wikiselev committed Feb 27, 2017
1 parent a305ea4 commit 1840aa6
Show file tree
Hide file tree
Showing 31 changed files with 43 additions and 42 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.RData
.Ruserdata
*.Rproj
Rplots.pdf
6 changes: 3 additions & 3 deletions 1c.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ library(dplyr)

options(stringsAsFactors = FALSE)

d <- read.csv("1c.csv")
d <- read.csv("data/1c.csv")

d$Dataset <- factor(
d$Dataset,
Expand All @@ -24,5 +24,5 @@ p <- ggplot(d, aes(d, fill = Dataset)) +
labs(x = "d as % of N", y = "# of solutions with ARI > 95% of max.") +
theme_classic(base_size = 14)

ggsave("1c.pdf", w = 6, h = 4.5)
ggsave("1c.jpeg", w = 6, h = 4.5)
ggsave("pdf/1c.pdf", w = 6, h = 4.5)
ggsave("jpeg/1c.jpeg", w = 6, h = 4.5)
6 changes: 3 additions & 3 deletions 1d.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ gtable_stack <- function(g1, g2){
g1
}

d <- read.csv("1d.csv")
d <- read.csv("data/1d.csv")

d[d$Dataset == "Kolodziejczyk", ]$Dataset <- "Kolodz."

Expand Down Expand Up @@ -81,5 +81,5 @@ new_plot <- gtable_stack(g1, new_strips)

plot_grid(new_plot)

ggsave("1d.pdf", w = 6.3, h = 4.5)
ggsave("1d.jpeg", w = 6.3, h = 4.5)
ggsave("pdf/1d.pdf", w = 6.3, h = 4.5)
ggsave("jpeg/1d.jpeg", w = 6.3, h = 4.5)
Binary file removed 1d.pdf
Binary file not shown.
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,44 @@ This repository contains scripts for recreation of the figures from the SC3 pape
[dplyr](https://cran.r-project.org/web/packages/dplyr/index.html)

### Fig. 1
[data_c](1c.csv)
[data_c](data/1c.csv)
[script](1c.R)
[pdf](1c.pdf)
![](1c.jpeg)
[pdf](pdf/1c.pdf)
![](jpeg/1c.jpeg)

[data_d](1d.csv)
[data_d](data/1d.csv)
[script](1d.R)
[pdf](1d.pdf)
![](1d.jpeg)
[pdf](pdf/1d.pdf)
![](jpeg/1d.jpeg)

### Fig. S1

[data](S1.csv)
[data](data/S1.csv)
[script](S1.R)
![](S1.jpeg)
![](jpeg/S1.jpeg)

### Fig. S2

[data](S2.csv)
[data](data/S2.csv)
[script](S2.R)
![](S2.jpeg)
![](jpeg/S2.jpeg)

### Fig. S3
[data_a](S3a.csv)
[data_b](S3b.csv)
[data_c](S3c.csv)
[data_d](S3d.csv)
[data_a](data/S3a.csv)
[data_b](data/S3b.csv)
[data_c](data/S3c.csv)
[data_d](data/S3d.csv)
[script](S3.R)
![](S3.jpeg)
![](jpeg/S3.jpeg)

### Fig. S4
[data_a](S4a.csv)
[data_b](S4b.csv)
[data_c](S4c.csv)
[data_d](S4d.csv)
[data_e](S4e.csv)
[data_a](data/S4a.csv)
[data_b](data/S4b.csv)
[data_c](data/S4c.csv)
[data_d](data/S4d.csv)
[data_e](data/S4e.csv)
[script](S4.R)
![](S4.jpeg)
![](jpeg/S4.jpeg)

## Session Info

Expand Down
4 changes: 2 additions & 2 deletions S1.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ library(dplyr)

options(stringsAsFactors = FALSE)

d <- read.csv("S1.csv")
d <- read.csv("data/S1.csv")

d_med <- d %>%
group_by(Dataset, gene_filter, Distance, Transformation, d) %>%
Expand All @@ -25,4 +25,4 @@ p <- ggplot(d, aes(d, ARI, group = Group, color = Transformation)) +
annotate("segment", x=-Inf, xend=Inf, y=-Inf, yend=-Inf, color = "black")+
annotate("segment", x=-Inf, xend=-Inf, y=-Inf, yend=Inf, color = "black")

ggsave("S1.jpeg", w = 9, h = 6)
ggsave("jpeg/S1.jpeg", w = 9, h = 6)
4 changes: 2 additions & 2 deletions S2.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ library(dplyr)

options(stringsAsFactors = FALSE)

d <- read.csv("S2.csv")
d <- read.csv("data/S2.csv")

d_med <- d %>%
group_by(Dataset, gene_filter, Distance, Transformation, d) %>%
Expand All @@ -25,4 +25,4 @@ p <- ggplot(d, aes(d, ARI, group = Group, color = Transformation)) +
annotate("segment", x=-Inf, xend=Inf, y=-Inf, yend=-Inf, color = "black")+
annotate("segment", x=-Inf, xend=-Inf, y=-Inf, yend=Inf, color = "black")

ggsave("S2.jpeg", w = 9, h = 6)
ggsave("jpeg/S2.jpeg", w = 9, h = 6)
10 changes: 5 additions & 5 deletions S3.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ options(stringsAsFactors = FALSE)
font_size <- 6

get_a <- function() {
d <- read.csv("S3a.csv")
d <- read.csv("data/S3a.csv")

d$Dataset <- factor(
d$Dataset,
Expand All @@ -29,7 +29,7 @@ get_a <- function() {
}

get_b <- function() {
d <- read.csv("S3b.csv")
d <- read.csv("data/S3b.csv")

d$Dataset <- factor(
d$Dataset,
Expand All @@ -53,7 +53,7 @@ get_b <- function() {
}

get_c <- function() {
d <- read.csv("S3c.csv")
d <- read.csv("data/S3c.csv")

d$Dataset <- factor(
d$Dataset,
Expand Down Expand Up @@ -125,7 +125,7 @@ get_d <- function() {
"Usoskin3" = "#fdb462", "Kolodziejczyk" = "#bf812d",
"Klein" = "#b3de69", "Zeisel" = "#fccde5")

d <- read.csv("S3d.csv")
d <- read.csv("data/S3d.csv")

d$Hierarchy <- factor(
d$Hierarchy,
Expand Down Expand Up @@ -178,4 +178,4 @@ get_d <- function() {

plot_grid(get_a(), get_b(), get_c(), get_d(), ncol = 2, labels = c("a", "b", "c", "d"), rel_heights = c(1, 1.8))

ggsave("S3.jpeg", w = 9, h = 6)
ggsave("jpeg/S3.jpeg", w = 9, h = 6)
Binary file removed S3.jpeg
Binary file not shown.
12 changes: 6 additions & 6 deletions S4.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ options(stringsAsFactors = FALSE)
font_size <- 7

get_a <- function() {
d <- read.csv("S4a.csv")
d <- read.csv("data/S4a.csv")
d$group <- paste(d$nstart, d$Method)
d$Method <- factor(
d$Method,
Expand Down Expand Up @@ -45,7 +45,7 @@ get_b <- function() {
"Usoskin3" = "#fdb462", "Kolodziejczyk" = "#bf812d",
"Klein" = "#b3de69", "Zeisel" = "#fccde5")

d <- read.csv("S4b.csv")
d <- read.csv("data/S4b.csv")

d$Dataset <- factor(
d$Dataset,
Expand Down Expand Up @@ -101,7 +101,7 @@ get_c <- function() {
"Kolodziejczyk" = "#bf812d", "Usoskin3" = "#fdb462",
"Klein" = "#40E0D0", "Zeisel" = "#fccde5", "Macosko" = "#d9d9d9")

d <- read.csv("S4c.csv")
d <- read.csv("data/S4c.csv")

d$Dataset <- factor(
d$Dataset,
Expand Down Expand Up @@ -149,7 +149,7 @@ get_d <- function() {
cols <- c("Pollen2" = "#fb8072",
"Kolodziejczyk" = "#bf812d")

d <- read.csv("S4d.csv")
d <- read.csv("data/S4d.csv")
d$Dataset <- factor(d$Dataset, levels <- c("Pollen2", "Kolodziejczyk"))

limits <- aes(ymax = mean + se, ymin = mean - se)
Expand All @@ -168,7 +168,7 @@ get_e <- function() {
cols <- c("Pollen2" = "#fb8072",
"Kolodziejczyk" = "#bf812d")

d <- read.csv("S4e.csv")
d <- read.csv("data/S4e.csv")
d$Dataset <- factor(d$Dataset, levels <- c("Pollen2", "Kolodziejczyk"))

limits <- aes(ymax = mean + se, ymin = mean - se)
Expand All @@ -190,4 +190,4 @@ third_row <- plot_grid(get_d(), get_e(), ncol = 2, labels = c("d", "e"))

plot_grid(first_row, second_row, third_row, nrow = 3)

ggsave("S4.jpeg", w = 9, h = 6)
ggsave("jpeg/S4.jpeg", w = 9, h = 6)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
Binary file renamed 1d.jpeg → jpeg/1d.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added jpeg/S3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file renamed 1c.pdf → pdf/1c.pdf
Binary file not shown.
Binary file added pdf/1d.pdf
Binary file not shown.

0 comments on commit 1840aa6

Please sign in to comment.