Skip to content

Commit

Permalink
polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmaier12 committed Dec 12, 2024
1 parent b904dad commit 6ff8f10
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion R/TrIdentClassifier.R
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ TrIdentClassifier <- function(VLPpileup,
" of the prophage-like classifications are mixed, i.e. heterogenously
integrated into their bacterial host population"
)
print(plot(resultsHisto(summaryList, suggFiltThresh)))
plot(resultsHisto(summaryList, suggFiltThresh))
if (missing(SaveFilesTo) == FALSE) {
ifelse(!dir.exists(paths = paste0(SaveFilesTo, "\\TrIdentOutput")),
dir.create(paste0(SaveFilesTo, "\\TrIdentOutput")),
Expand Down
2 changes: 1 addition & 1 deletion R/plotTrIdentResults.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ plotTrIdentResults <- function(VLPpileup,
axis.line = element_line(colour = "black"),
text = element_text(size = 14),
axis.text = element_text(size = 10),
plot.subtitle = element_text(size = 10),
plot.subtitle = element_text(size = 11),
plot.margin = margin(
t = 0,
r = 6,
Expand Down
12 changes: 6 additions & 6 deletions R/specTransductionPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ specTransductionPlot <-
position <- logcoverage <- NULL
if (classifSumm[
which(classifSumm[, 1] == contigName),
6
8
] == "Elevated") {
prophageLikeInfo <- "Highly active/abundant prophage-like element"
} else if (classifSumm[
which(classifSumm[, 1] == contigName),
6
8
] == "Depressed") {
prophageLikeInfo <-
"Not homogenously present/integrated prophage-like element"
Expand Down Expand Up @@ -82,15 +82,15 @@ specTransductionPlot <-
theme(
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
plot.subtitle = element_text(size = 10),
plot.subtitle = element_text(size = 11),
panel.background = element_blank(),
axis.line = element_line(colour = "black"),
text = element_text(size = 15)
text = element_text(size = 15),
plot.title = element_text(size = 12)
) +
labs(
title = paste(
contigName, classifPatternMatches[[i]][[8]],
prophageLikeInfo
contigName, prophageLikeInfo
),
subtitle = paste(
"Specialized transduction on left:",
Expand Down
4 changes: 4 additions & 0 deletions R/specializedTransductionID.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ specializedTransductionID <- function(VLPpileup,
specTransCount,
" contigs have potential specialized transduction"
)
if (logScale == FALSE) message(
"We recommend that you also view the results of this search with
logScale=TRUE"
)
names(plots) <- specTransSumm[, 1]
specTransList <- list(summaryTable = specTransSumm, Plots = plots)
if (missing(SaveFilesTo) == FALSE) {
Expand Down

0 comments on commit 6ff8f10

Please sign in to comment.