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

Speed up calculation of the 'Open Chromatin' plot. #109

Open
khoroshevskyi opened this issue Mar 5, 2025 · 0 comments
Open

Speed up calculation of the 'Open Chromatin' plot. #109

khoroshevskyi opened this issue Mar 5, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request likely-solved

Comments

@khoroshevskyi
Copy link
Member

To calculate and crate the Open Chromatin plot we spend 20sec.
The line of code that does it is:

# Tissue specificity plot if open signal matrix is provided
if (!exists("bedmeta") ){
if (openSignalMatrix == "None") {
message("open signal matrix not provided. Skipping tissue specificity plot ... ")
} else {
tryCatch(
expr = {
plotBoth("open_chromatin", plotSummarySignal(calcSummarySignal(query, data.table::fread(openSignalMatrix))), digest, outfolder)
plots = rbind(plots, getPlotReportDF("open_chromatin", "Cell specific enrichment for open chromatin", digest, outfolder))
message("Successfully calculated and plot cell specific enrichment for open chromatin.")
},
error = function(e){
message('Caught an error in creating: Cell specific enrichment for open chromatin plot!')
print(e)
}
)
}
}

Is there a way to speed this process up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request likely-solved
Projects
None yet
Development

No branches or pull requests

2 participants