Skip to content

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

@khoroshevskyi

Description

@khoroshevskyi

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?

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions