Skip to content

Commit 150de28

Browse files
author
Your Name
committed
Compatible with dataset without missing values
1 parent b4faed4 commit 150de28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/functions.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,7 @@ get_results_proteins <- function(dep) {
660660
table <- dplyr::left_join(table, pval, by = c("name" = "rowname"))
661661
# table <- dplyr::left_join(table, centered, by = c("name" = "rowname")) %>%
662662
# dplyr::arrange(desc(significant))
663-
table<-as.data.frame(row_data) %>%
664-
dplyr::select(name, imputed, num_NAs, Protein.names) %>%
663+
table<-as.data.frame(row_data)[, colnames(row_data) %in% c("name", "imputed", "num_NAs", "Protein.names")] %>%
665664
dplyr::left_join(table, ., by = "name")
666665
table<-table %>% dplyr::arrange(desc(significant))
667666
colnames(table)[1]<-c("Gene Name")

0 commit comments

Comments
 (0)