Skip to content

Commit 4c60485

Browse files
author
Your Name
committed
Updated result table
1 parent fba2890 commit 4c60485

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/functions.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ get_results_proteins <- function(dep) {
632632

633633
# Obtain average enrichments of conditions versus the control condition
634634
ratio <- as.data.frame(row_data) %>%
635-
tibble::column_to_rownames("name") %>%
635+
# tibble::column_to_rownames("name") %>%
636636
dplyr::select(dplyr::ends_with("diff")) %>%
637637
signif(., digits = 3) %>%
638638
tibble::rownames_to_column()
@@ -642,7 +642,7 @@ get_results_proteins <- function(dep) {
642642

643643
# Select the adjusted p-values and significance columns
644644
pval <- as.data.frame(row_data) %>%
645-
tibble::column_to_rownames("name") %>%
645+
# tibble::column_to_rownames("name") %>%
646646
dplyr::select(dplyr::ends_with("p.val"),
647647
dplyr::ends_with("p.adj"),
648648
dplyr::ends_with("significant")) %>%
@@ -665,6 +665,7 @@ get_results_proteins <- function(dep) {
665665
table<-table %>% dplyr::arrange(desc(significant))
666666
colnames(table)[1]<-c("Gene Name")
667667
colnames(table)[2]<-c("Protein IDs")
668+
table <- table %>% dplyr::select(grep("[^Protein.names]",colnames(table)), "Protein.names")
668669
# table$Gene_name<-table$name
669670
return(table)
670671
}

0 commit comments

Comments
 (0)