Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor generate_DEA_reports write_DEA_all and make_SummarizedExperiment into R6 class #11

Open
wolski opened this issue Apr 8, 2024 · 1 comment

Comments

@wolski
Copy link
Collaborator

wolski commented Apr 8, 2024

Review the functions since. Maybe move make_SummarizedExperiment into write_DEA_all?
Or use the R6 class to minimize the number of parameters.

logger::log_info("run analysis")
grp <- prolfquapp::generate_DEA_reports2(lfqdata, GRP2, xd$protein_annotation, annotation$contrasts)

logger::log_info("write results and html reports")
prolfquapp::write_DEA_all(grp[[1]], names(grp)[1], GRP2$zipdir , boxplot = FALSE, markdown = "_Grp2Analysis_V2.Rmd")

logger::log_info("write results and summarized experiment")
SE <- prolfquapp::make_SummarizedExperiment(grp[[1]])


saveRDS(SE, file = file.path(GRP2$zipdir,
                             paste0("DE_", names(grp)[1], "_WU", grp[[1]]$project_spec$workunitID) ,
                             paste0("SummarizedExperiment",".rds") ))



@wolski
Copy link
Collaborator Author

wolski commented May 8, 2024

move :

make_DEA_report <- function(lfqdata,

and related functions into an R6 class.

This is needed so functionality like generating iBAQ values can be added.

@wolski wolski changed the title Review result writing code in DIANN_V2.R script Refactor generate_DEA_reports write_DEA_all and make_SummarizedExperiment into R6 class May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant