Skip to content

Commit

Permalink
Merge pull request #3 from LiChenPU/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
LiChenPU authored Sep 15, 2021
2 parents 225960d + e522e9c commit 9f63202
Show file tree
Hide file tree
Showing 19 changed files with 21,763 additions and 3,978 deletions.
2 changes: 1 addition & 1 deletion FDR_example/Target-Decoy Generator.R
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ FDR_Calculator <- function(decoy_address, output_address,
anns_elements <- sapply(anns, function(x) unlist(strsplit(x, "\\d+")))
decoys <- sapply(anns_elements, function(x) sum(unlist(x) %in% imp_elements))
FP <- length(which(decoys > 0)) * (f - 1)
FDR <- FP / (length(anns) - FP)
FDR <- FP / (length(anns))
}

NetID <- function(work_dir, file_name, ion_mode, decoy_lib) {
Expand Down
8 changes: 4 additions & 4 deletions FDR_example/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ load("FDR.RData")
## Plot ####
{
p_all_precision = ggplot(data = gt_all, mapping = aes(x = method, y = precision, color = method)) +
geom_boxplot() + #geom_point(data = stan, mapping = aes(x = method, y = precision, fill = method), shape = 22, color = "black") +
geom_boxplot(outlier.shape = NA) + #geom_point(data = stan, mapping = aes(x = method, y = precision, fill = method), shape = 22, color = "black") +
geom_point(alpha = 1 / 5, position = "jitter") +
# ggtitle("Precision by Ground Truth") +
theme_classic(base_size = 12 # edit font size for all non-data text
Expand All @@ -76,7 +76,7 @@ load("FDR.RData")
facet_wrap(~ library, nrow = 2) #+coord_flip()

p1_precision = ggplot(data = gt_all %>% filter(library=="HMDB"), mapping = aes(x = method, y = precision, color = method)) +
geom_boxplot() + #geom_point(data = stan, mapping = aes(x = method, y = precision, fill = method), shape = 22, color = "black") +
geom_boxplot(outlier.shape = NA) + #geom_point(data = stan, mapping = aes(x = method, y = precision, fill = method), shape = 22, color = "black") +
geom_point(alpha = 1 / 5, position = "jitter") +
# ggtitle("Precision by Ground Truth") +
# guides(color = F) +
Expand Down Expand Up @@ -147,7 +147,7 @@ load("FDR.RData")
## Plot ####
{
p_all_FDR = ggplot(data = fdr_all, mapping = aes(x = method, y = FDR, color = method)) +
geom_boxplot() + #geom_point(data = stan, mapping = aes(x = method, y = precision, fill = method), shape = 22, color = "black") +
geom_boxplot(outlier.shape = NA) + #geom_point(data = stan, mapping = aes(x = method, y = precision, fill = method), shape = 22, color = "black") +
geom_point(alpha = 1 / 5, position = "jitter") +
# ggtitle("Precision by Ground Truth") +
theme_classic(base_size = 12 # edit font size for all non-data text
Expand All @@ -172,7 +172,7 @@ load("FDR.RData")
facet_wrap(~ library, nrow = 2) #+coord_flip()

p1_FDR = ggplot(data = fdr_all %>% filter(library=="HMDB"), mapping = aes(x = method, y = FDR, color = method)) +
geom_boxplot() + #geom_point(data = stan, mapping = aes(x = method, y = precision, fill = method), shape = 22, color = "black") +
geom_boxplot(outlier.shape = NA) + #geom_point(data = stan, mapping = aes(x = method, y = precision, fill = method), shape = 22, color = "black") +
geom_point(alpha = 1 / 5, position = "jitter") +
# ggtitle("Precision by Ground Truth") +
guides(color = guide_legend(
Expand Down
Binary file modified FDR_example/plot_7_1.pdf
Binary file not shown.
Binary file modified FDR_example/plot_7_1_all.pdf
Binary file not shown.
Binary file modified FDR_example/plot_7_2.pdf
Binary file not shown.
Binary file modified FDR_example/plot_7_2_all.pdf
Binary file not shown.
Binary file modified FDR_example/plot_merge.pdf
Binary file not shown.
Binary file modified NetID_statistics/summary.xlsx
Binary file not shown.
5,589 changes: 5,589 additions & 0 deletions Sc_neg/NetID_output.csv

Large diffs are not rendered by default.

10,439 changes: 10,439 additions & 0 deletions Sc_neg/cyto_edges.csv

Large diffs are not rendered by default.

5,589 changes: 5,589 additions & 0 deletions Sc_neg/cyto_nodes.csv

Large diffs are not rendered by default.

2,437 changes: 0 additions & 2,437 deletions get started/UserGuideMD/UG.html

This file was deleted.

765 changes: 0 additions & 765 deletions get started/UserGuideMD/UG.log

This file was deleted.

Loading

0 comments on commit 9f63202

Please sign in to comment.