Skip to content

Commit

Permalink
Updagte aggregation funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
samWieczorek committed Dec 14, 2024
1 parent 44e9092 commit 3b4a081
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions R/mod_download_dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ download_dataset_server <- function(id,


rv$export_file_xlsx <- tryCatch({

out.xlsx <- tempfile(fileext = ".xlsx")
DaparToolshed::write.excel(obj = dataIn(), filename = out.xlsx)
obj.cleaned <- DaparToolshed::CleanRowData(dataIn())
DaparToolshed::write.excel(obj = obj.cleaned, filename = out.xlsx)
out.xlsx

},
warning = function(w) w,
error = function(e) e
)


rv$export_file_qf <- tryCatch({
out.qf <- tempfile(fileext = ".qf")
saveRDS(dataIn(), file = out.qf)
Expand Down
11 changes: 5 additions & 6 deletions inst/workflow/PipelinePeptide/R/PipelinePeptide_Aggregation.R
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,10 @@ PipelinePeptide_Aggregation_server <- function(id,
dataOut$value <- NULL
rv$steps.status['Aggregation'] <- stepStatus$VALIDATED
} else {
dataOut$trigger <- MagellanNTK::Timestamp()
dataOut$value <- NULL
rv$steps.status['Aggregation'] <- stepStatus$VALIDATED

#rv.custom$temp.aggregate <- NULL
}
})
Expand Down Expand Up @@ -570,12 +574,7 @@ PipelinePeptide_Aggregation_server <- function(id,

paramshistory(rv.custom$temp.aggregate[[length(rv.custom$temp.aggregate)]]) <- rv.custom$history

browser()
# new.dataset <- rv$temp.aggregate$obj.prot
#
# new.name <- paste0("Aggregated", ".", TypeOfDataset(new.dataset))
#
#
rv$dataIn <- rv.custom$temp.aggregate

# DO NOT MODIFY THE THREE FOLLOWING LINES
dataOut$trigger <- MagellanNTK::Timestamp()
Expand Down

0 comments on commit 3b4a081

Please sign in to comment.