Skip to content

Commit 9f63202

Browse files
authored
Merge pull request #3 from LiChenPU/dev
Dev
2 parents 225960d + e522e9c commit 9f63202

19 files changed

+21763
-3978
lines changed

FDR_example/Target-Decoy Generator.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ FDR_Calculator <- function(decoy_address, output_address,
209209
anns_elements <- sapply(anns, function(x) unlist(strsplit(x, "\\d+")))
210210
decoys <- sapply(anns_elements, function(x) sum(unlist(x) %in% imp_elements))
211211
FP <- length(which(decoys > 0)) * (f - 1)
212-
FDR <- FP / (length(anns) - FP)
212+
FDR <- FP / (length(anns))
213213
}
214214

215215
NetID <- function(work_dir, file_name, ion_mode, decoy_lib) {

FDR_example/plot.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ load("FDR.RData")
5151
## Plot ####
5252
{
5353
p_all_precision = ggplot(data = gt_all, mapping = aes(x = method, y = precision, color = method)) +
54-
geom_boxplot() + #geom_point(data = stan, mapping = aes(x = method, y = precision, fill = method), shape = 22, color = "black") +
54+
geom_boxplot(outlier.shape = NA) + #geom_point(data = stan, mapping = aes(x = method, y = precision, fill = method), shape = 22, color = "black") +
5555
geom_point(alpha = 1 / 5, position = "jitter") +
5656
# ggtitle("Precision by Ground Truth") +
5757
theme_classic(base_size = 12 # edit font size for all non-data text
@@ -76,7 +76,7 @@ load("FDR.RData")
7676
facet_wrap(~ library, nrow = 2) #+coord_flip()
7777

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

174174
p1_FDR = ggplot(data = fdr_all %>% filter(library=="HMDB"), mapping = aes(x = method, y = FDR, color = method)) +
175-
geom_boxplot() + #geom_point(data = stan, mapping = aes(x = method, y = precision, fill = method), shape = 22, color = "black") +
175+
geom_boxplot(outlier.shape = NA) + #geom_point(data = stan, mapping = aes(x = method, y = precision, fill = method), shape = 22, color = "black") +
176176
geom_point(alpha = 1 / 5, position = "jitter") +
177177
# ggtitle("Precision by Ground Truth") +
178178
guides(color = guide_legend(

FDR_example/plot_7_1.pdf

-146 Bytes
Binary file not shown.

FDR_example/plot_7_1_all.pdf

-317 Bytes
Binary file not shown.

FDR_example/plot_7_2.pdf

8 Bytes
Binary file not shown.

FDR_example/plot_7_2_all.pdf

-639 Bytes
Binary file not shown.

FDR_example/plot_merge.pdf

-140 Bytes
Binary file not shown.

NetID_statistics/summary.xlsx

501 Bytes
Binary file not shown.

Sc_neg/NetID_output.csv

Lines changed: 5589 additions & 0 deletions
Large diffs are not rendered by default.

Sc_neg/cyto_edges.csv

Lines changed: 10439 additions & 0 deletions
Large diffs are not rendered by default.

Sc_neg/cyto_nodes.csv

Lines changed: 5589 additions & 0 deletions
Large diffs are not rendered by default.

get started/UserGuideMD/UG.html

Lines changed: 0 additions & 2437 deletions
This file was deleted.

get started/UserGuideMD/UG.log

Lines changed: 0 additions & 765 deletions
This file was deleted.

0 commit comments

Comments
 (0)