... | ... |
@@ -1654,7 +1654,7 @@ AR_classification_wrapper<- function (GRN, significanceThreshold_Wilcoxon = 0.05 |
1654 | 1654 |
suffixFile = .getPermutationSuffixStr(permutationCur) |
1655 | 1655 |
|
1656 | 1656 |
|
1657 |
- fileCur = paste0(outputFolder, .getOutputFileName("plot_class_density"), "_", connectionTypeCur, suffixFile) |
|
1657 |
+ fileCur = paste0(outputFolder, .getOutputFileName("plot_class_density"), "_", connectionTypeCur, suffixFile, ".pdf") |
|
1658 | 1658 |
if (!file.exists(fileCur) | forceRerun) { |
1659 | 1659 |
.plot_density(.asMatrixFromSparse(GRN@data$TFs$classification[[permIndex]] [[connectionTypeCur]]$TF_peak_cor_foreground), |
1660 | 1660 |
.asMatrixFromSparse(GRN@data$TFs$classification[[permIndex]] [[connectionTypeCur]]$TF_peak_cor_background), |
... | ... |
@@ -1664,7 +1664,7 @@ AR_classification_wrapper<- function (GRN, significanceThreshold_Wilcoxon = 0.05 |
1664 | 1664 |
futile.logger::flog.info(paste0(" File ", fileCur, " already exists, not overwriting since forceRerun = FALSE")) |
1665 | 1665 |
} |
1666 | 1666 |
|
1667 |
- fileCur = paste0(outputFolder, .getOutputFileName("plot_class_medianClass"), "_", connectionTypeCur, suffixFile) |
|
1667 |
+ fileCur = paste0(outputFolder, .getOutputFileName("plot_class_medianClass"), "_", connectionTypeCur, suffixFile, ".pdf") |
|
1668 | 1668 |
if (!file.exists(fileCur) | forceRerun) { |
1669 | 1669 |
.plot_AR_thresholds( |
1670 | 1670 |
median.cor.tfs = .asMatrixFromSparse(GRN@data$TFs$classification[[permIndex]] [[connectionTypeCur]]$TF_cor_median_foreground), |
... | ... |
@@ -1677,7 +1677,7 @@ AR_classification_wrapper<- function (GRN, significanceThreshold_Wilcoxon = 0.05 |
1677 | 1677 |
futile.logger::flog.info(paste0(" File ", fileCur, " already exists, not overwriting since forceRerun = FALSE")) |
1678 | 1678 |
} |
1679 | 1679 |
|
1680 |
- fileCur = paste0(outputFolder, .getOutputFileName("plot_class_densityClass"), "_", connectionTypeCur, suffixFile) |
|
1680 |
+ fileCur = paste0(outputFolder, .getOutputFileName("plot_class_densityClass"), "_", connectionTypeCur, suffixFile, ".pdf") |
|
1681 | 1681 |
if (!file.exists(fileCur) | forceRerun) { |
1682 | 1682 |
|
1683 | 1683 |
TF_peak_cor = GRN@data$TFs$classification[[permIndex]] [[connectionTypeCur]]$TF_peak_cor |
... | ... |
@@ -3171,7 +3171,7 @@ filterGRNAndConnectGenes <- function(GRN, |
3171 | 3171 |
suffixFile = .getPermutationSuffixStr(permutationCur) |
3172 | 3172 |
|
3173 | 3173 |
outputFolder = .checkOutputFolder(GRN, outputFolder) |
3174 |
- outputFile = paste0(outputFolder, .getOutputFileName("plot_peakGene_IHW_diag"), suffixFile) |
|
3174 |
+ outputFile = paste0(outputFolder, .getOutputFileName("plot_peakGene_IHW_diag"), suffixFile, ".pdf") |
|
3175 | 3175 |
|
3176 | 3176 |
IHW.res = .performIHW(grn.filt$peak_gene.p_raw[indexes], |
3177 | 3177 |
covariate_val[indexes] %>% unlist() %>% unname(), |
... | ... |
@@ -546,7 +546,7 @@ plotDiagnosticPlots_TFPeaks <- function(GRN, |
546 | 546 |
} |
547 | 547 |
|
548 | 548 |
# TODO: page selection not implemented here yet |
549 |
- fileCur = paste0(outputFolder, .getOutputFileName("plot_TFPeak_fdr_GC"), suffixFile) |
|
549 |
+ fileCur = paste0(outputFolder, .getOutputFileName("plot_TFPeak_fdr_GC"), suffixFile, ".pdf") |
|
550 | 550 |
if (useGCCorrection & (!file.exists(fileCur) | !plotAsPDF | forceRerun)) { |
551 | 551 |
|
552 | 552 |
if (!plotAsPDF) fileCur = NULL |
... | ... |
@@ -3365,7 +3365,7 @@ visualizeGRN <- function(GRN, outputFolder = NULL, basenameOutput = NULL, plotA |
3365 | 3365 |
|
3366 | 3366 |
if (plotAsPDF) { |
3367 | 3367 |
futile.logger::flog.info(paste0("Plotting GRN network to ", outputFolder, dplyr::if_else(is.null(basenameOutput), .getOutputFileName("plot_network"), basenameOutput),".pdf")) |
3368 |
- grDevices::pdf(file = paste0(outputFolder,"/", ifelse(is.null(basenameOutput), .getOutputFileName("plot_network"), basenameOutput),".pdf"),width = pdf_width, height = pdf_height ) |
|
3368 |
+ grDevices::pdf(file = paste0(outputFolder,"/", ifelse(is.null(basenameOutput), .getOutputFileName("plot_network"), basenameOutput),".pdf"), width = pdf_width, height = pdf_height ) |
|
3369 | 3369 |
} else { |
3370 | 3370 |
futile.logger::flog.info(paste0("Plotting GRN network")) |
3371 | 3371 |
} |