Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Easy16S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
migale
Easy16S
Commits
0d172aa9
Commit
0d172aa9
authored
1 year ago
by
Cedric Midoux
Browse files
Options
Downloads
Patches
Plain Diff
hotfix negative counts for heatmap
parent
0eaa13c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#172157
passed
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R/mod_heatmap.R
+2
-1
2 additions, 1 deletion
R/mod_heatmap.R
with
2 additions
and
1 deletion
R/mod_heatmap.R
+
2
−
1
View file @
0d172aa9
...
...
@@ -76,7 +76,7 @@ mod_heatmap_ui <- function(id) {
#'
#' @noRd
#' @importFrom ggplot2 element_blank element_text facet_grid theme theme_bw vars
#' @importFrom phyloseq plot_heatmap
#' @importFrom phyloseq
otu_table
plot_heatmap
#' @importFrom plotly renderPlotly
#' @importFrom rlang .data is_null
#' @importFrom shiny moduleServer need observeEvent reactive validate
...
...
@@ -87,6 +87,7 @@ mod_heatmap_server <- function(id, r) {
output
$
heatmap
<-
renderPlotly
({
validate
(
need
(
slot_phyloseq
(
r
$
physeq
),
message
=
"Requires an abundance dataset"
),
need
(
min
(
otu_table
(
r
$
physeq
))
>=
0
,
message
=
"Transformation introduced negative counts"
),
need
(
slot_phyloseq
(
r
$
physeq
,
"tax_table"
),
message
=
"Requires tax_table"
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment