-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update manuscript figures per review (#72)
* update manuscript figure per review * add figure 4 to main README
- Loading branch information
1 parent
e581f47
commit 775cc9a
Showing
24 changed files
with
1,273 additions
and
579 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-8.69 KB
(99%)
3.figures/figures/supplementary/supp_figure_1_splitbyplate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
450 changes: 0 additions & 450 deletions
450
3.figures/supp_figure_2/SuppFigure2_qualitycontrol.ipynb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
suppressPackageStartupMessages(library(dplyr)) | ||
suppressPackageStartupMessages(library(ggplot2)) | ||
suppressPackageStartupMessages(library(platetools)) | ||
suppressPackageStartupMessages(library(patchwork)) | ||
|
||
figure_dir <- "../figures/supplementary" | ||
output_supp_figure_2 <- file.path(figure_dir, "supp_figure_2_platemaps.png") | ||
|
||
# Path to platemaps | ||
platemap_dir <- file.path( | ||
"../../../nf1_cellpainting_data/0.download_data/metadata" | ||
) | ||
|
||
# Load data | ||
plate_A_B_file <- file.path(platemap_dir, "platemap_NF1_plate3.csv") | ||
|
||
plate_A_B_df <- readr::read_csv(plate_A_B_file) | ||
|
||
# Remove rows where genotype is "HET" | ||
plate_A_B_df <- plate_A_B_df %>% | ||
filter(!grepl("HET", genotype)) | ||
|
||
dim(plate_A_B_df) | ||
head(plate_A_B_df) | ||
|
||
platemap_A_B <- | ||
platetools::raw_map( | ||
data = as.numeric(plate_A_B_df$seed_density), | ||
well = plate_A_B_df$well_position, | ||
plate = 96, | ||
size = 8 | ||
) + | ||
theme(plot.title = element_text(size = 10, face = "bold")) + | ||
ggplot2::geom_point(aes(shape = plate_A_B_df$genotype)) + | ||
ggplot2::scale_shape_discrete(name = "Genotype") + | ||
ggplot2::scale_fill_gradient2( | ||
name = "Seed Density", | ||
low = "white", | ||
high = "red", | ||
) | ||
|
||
platemap_A_B | ||
|
||
# Load data | ||
plate_C_file <- file.path(platemap_dir, "platemap_NF1_plate5.csv") | ||
|
||
plate_C_df <- readr::read_csv(plate_C_file) | ||
|
||
# Remove rows where genotype is "HET" | ||
plate_C_df <- plate_C_df %>% | ||
filter(!grepl("HET", genotype)) | ||
|
||
dim(plate_C_df) | ||
head(plate_C_df) | ||
|
||
platemap_C <- | ||
platetools::raw_map( | ||
data = plate_C_df$genotype, | ||
well = plate_C_df$well_position, | ||
plate = 96, | ||
size = 8 | ||
) + | ||
theme(plot.title = element_text(size = 10, face = "bold")) + | ||
ggplot2::scale_fill_discrete(name = "Genotype") | ||
|
||
platemap_C | ||
|
||
align_plot <- ( | ||
platemap_A_B / | ||
platemap_C | ||
) + plot_layout(heights= c(2,2)) | ||
|
||
align_plot | ||
|
||
supp_fig_2_gg <- ( | ||
align_plot | ||
) + plot_annotation(tag_levels = "A") & theme(plot.tag = element_text(size = 20)) | ||
|
||
# Save or display the plot | ||
ggsave(output_supp_figure_2, plot = supp_fig_2_gg, dpi = 500, height = 7.75, width = 7) | ||
|
||
supp_fig_2_gg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Creating supplemental figure 3 - Image quality control distributions | ||
|
||
To generate the third supplemental figure of the manuscript, there is one step to follow: | ||
|
||
1. [SuppFigure3_qualitycontrol.ipynb](./SuppFigure3_qualitycontrol.ipynb): Generate distribution plots for blur and saturation metrics across plate, and patch the plots together to make one figure. | ||
|
||
All steps can be ran with the bash script using the command below: | ||
|
||
```bash | ||
source supp_figure_3.sh | ||
``` |
Oops, something went wrong.