@sjcrh/proteinpaint-server 2.91.1-0 → 2.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/utils/edge.R CHANGED
@@ -114,14 +114,20 @@ keep <- filterByExpr(y, min.count = input$min_count, min.total.count = input$min
114
114
  y <- y[keep, keep.lib.sizes = FALSE]
115
115
  y <- calcNormFactors(y, method = "TMM")
116
116
  #print (y)
117
- #calculate_DE_time_start <- Sys.time()
117
+ calculate_dispersion_time_start <- Sys.time()
118
118
  suppressWarnings({
119
119
  suppressMessages({
120
120
  dge <- estimateDisp(y = y)
121
121
  })
122
122
  })
123
+ calculate_dispersion_time_stop <- Sys.time()
124
+ print("Dispersion Time")
125
+ print (calculate_dispersion_time_stop - calculate_dispersion_time_start)
126
+ calculate_exact_test_time_start <- Sys.time()
123
127
  et <- exactTest(object = dge)
124
- calculate_DE_time_stop <- Sys.time()
128
+ calculate_exact_test_time_stop <- Sys.time()
129
+ print("Exact Time")
130
+ print(calculate_exact_test_time_stop - calculate_exact_test_time_start)
125
131
  #print ("Time to calculate DE")
126
132
  #print (calculate_DE_time_stop - calculate_DE_time_start)
127
133
  #print (et)
@@ -139,8 +145,8 @@ names(output)[2] <- "gene_symbol"
139
145
  names(output)[3] <- "fold_change"
140
146
  names(output)[4] <- "original_p_value"
141
147
  names(output)[5] <- "adjusted_p_value"
142
-
143
- toJSON(output)
148
+ #write_csv(output,"DE_output.txt")
149
+ cat(paste0("adjusted_p_values:",toJSON(output)))
144
150
  #output_json <- toJSON(output)
145
151
  #print ("output_json")
146
152
  #output_file <- paste0(input$output_path,"/r_output.txt")