Skip to content

Commit

Permalink
Merge pull request #41 from hancockinformatics/sort_conc
Browse files Browse the repository at this point in the history
Changes to concentration sorting, Help page additions
  • Loading branch information
travis-m-blimkie authored Apr 3, 2024
2 parents 98baa2b + d635a72 commit ca33e83
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 17 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ABCindex
Title: A Shiny app to calculate ABCI for checkerboard assays
Version: 0.99.75
Version: 0.99.78
Authors@R:
person(given = "Travis",
family = "Blimkie",
Expand Down
6 changes: 4 additions & 2 deletions R/2_upload.R
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,13 @@ fill_card <- function(expt) {
p(strong("Treatment in the columns: "), expt$cols$name),
p(
tags$b("Detected concentrations: "),
paste(expt$cols$conc, collapse = ", ")
paste(sort(expt$cols$conc, decreasing = TRUE), collapse = ", ")
),
hr(),
p(strong("Treatment in the rows: "), expt$rows$name),
p(
strong("Detected concentrations: "),
paste(expt$rows$conc, collapse = ", ")
paste(sort(expt$rows$conc, decreasing = TRUE), collapse = ", ")
),
)
}
Expand Down Expand Up @@ -413,6 +413,8 @@ make_card <- function(title, height = NULL, class = NULL, content) {
#' @return A shiny notification bubble
#'
notify <- function(id = NULL, list) {
stopifnot(all(c("type", "status", "message", "suggest") %in% names(list)))

showNotification(
id = id,
type = list$type,
Expand Down
6 changes: 5 additions & 1 deletion app.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ suppressPackageStartupMessages({
app_theme <- bs_theme(
version = 5,
bootswatch = "cosmo",
base_font = font_collection(font_google("Inter", local = FALSE), "Roboto", "sans-serif"),
base_font = font_collection(
font_google("Inter", local = FALSE),
"Roboto",
"sans-serif"
),
font_scale = 0.9,
primary = "#cc002c",
secondary = "#373a3c",
Expand Down
51 changes: 38 additions & 13 deletions www/help/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,40 @@
<div class="container col-xxl-6 px-4 pt-1 mb-auto">
<div class="row flex-lg-row align-items-center pt-5 pb-2">

<h1 class="display-3 fw-bold text-body-emphasis lh-1 mb-3">Help for ABCindex</h1>
<h1 id="anchor-top" class="display-3 fw-bold text-body-emphasis lh-1 mb-3">Help for ABCindex</h1>
<p class="lead">
The first section covers the use of the app. Click
<a href="#anchor-calc">here</a> to jump to the next section, which details
the calculation of the ABCI values.
The first section covers how to use the app, while the second section
details the calculation of ABCI values.
</p>

<h1 id="anchor-howto">How to use ABCindex</h1>

<h1 class="mt-4">Table of contents</h1>

<ul class="toc lead px-4" role="list">
<li><a href="#anchor-howto">How to use ABCindex</a></li>
<ul>
<li><a href="#anchor-prep">1. Prepare your data</a></li>
<li><a href="#anchor-upload">2. Upload and analyze your data</a></li>
<li><a href="#anchor-plot">3. Create plots from your results</a></li>
<li><a href="#anchor-learn1">Learn more</a></li>
</ul>

<li><a href="#anchor-calc">ABCI calculations</a></li>
<ul>
<li><a href="#anchor-rationale">Rationale behind ABCindex</a></li>
<li><a href="#anchor-abci">Anti-Biofilm Combination Index</a></li>
<li><a href="#anchor-processing">Data processing in ABCindex</a></li>
<li><a href="#anchor-learn2">Learn more</a></li>
</ul>
</ul>


<h1 class="mt-4" id="anchor-howto">How to use ABCindex</h1>
<p class="lead">
Interpretation and visualization of checkerboard assays.
</p>

<h3>1. Prepare your data</h3>
<h3 id="anchor-prep">1. Prepare your data</h3>
<p>
ABCindex takes any form of checkerboard assay data (e.g. crystal
violet or TTC) in the same format produced by microplate readers. Data can
Expand Down Expand Up @@ -46,7 +67,7 @@ <h3>1. Prepare your data</h3>
</p>
<img src="help/input_template.png" alt="Input template" class="center img-fluid" style="width:75%">

<h3 class="mt-4">2. Upload and analyze your data</h3>
<h3 class="mt-4" id="anchor-upload">2. Upload and analyze your data</h3>
<p>
Click <b>"Upload plate data"</b> and select an .xlsx or .ods file
formatted as detailed above. An input preview will appear to the right of
Expand Down Expand Up @@ -75,7 +96,7 @@ <h3 class="mt-4">2. Upload and analyze your data</h3>
tab.
</p>

<h3 class="mt-4">3. Create plots from your results</h3>
<h3 class="mt-4" id="anchor-plot">3. Create plots from your results</h3>
<p>ABCindex lets you visualize two types of information:</p>
<ul>
<li>
Expand Down Expand Up @@ -123,7 +144,7 @@ <h3 class="mt-4">3. Create plots from your results</h3>
be lost, so be sure to save anything you want to keep first!
</p>

<h3 class="mt-4">Learn more</h3>
<h3 class="mt-4" id="anchor-learn1">Learn more</h3>
<div class="accordion" id="accordion1" style="margin-bottom:3rem">
<div class="accordion-item">
<h2 class="accordion-header">
Expand Down Expand Up @@ -261,6 +282,8 @@ <h2 class="accordion-header">
</div>
</div>

<p class="mb-5 lead"><a href="#anchor-top">Return to top</a></p>


<br>
<hr>
Expand All @@ -272,7 +295,7 @@ <h1 class="mt-3" id="anchor-calc">ABCI calculations</h1>
calculates and plots the data.
</p>

<h3>Rationale behind ABCindex</h3>
<h3 id="anchor-rationale">Rationale behind ABCindex</h3>
<p>
ABCindex aims to overcome the main challenges presented when evaluating
antibiofilm combination therapies and, in more general terms, provide a
Expand Down Expand Up @@ -325,7 +348,7 @@ <h3>Rationale behind ABCindex</h3>
promising interactions and favourable drug ratios.
</p>

<h3 class="mt-4">Anti-Biofilm Combination Index</h3>
<h3 class="mt-4" id="anchor-abci">Anti-Biofilm Combination Index</h3>
<p>
The Anti-Biofilm Combination Index (ABCI) is calculated for each specific
combination of drug concentrations (i.e., each well on a 96-well plate).
Expand Down Expand Up @@ -423,7 +446,7 @@ <h3 class="mt-4">Anti-Biofilm Combination Index</h3>
</tr>
</table>

<h3 class="mt-4">Data processing in ABCindex</h3>
<h3 class="mt-4" id="anchor-processing">Data processing in ABCindex</h3>
<p>
Checkerboard data uploaded to ABCindex goes through the following steps:
</p>
Expand Down Expand Up @@ -454,7 +477,7 @@ <h3 class="mt-4">Data processing in ABCindex</h3>
downloaded in the results spreadsheets.
</p>

<h3 class="mt-4">Learn more</h3>
<h3 class="mt-4" id="anchor-learn2">Learn more</h3>

<div class="accordion" id="accordion2">
<div class="accordion-item">
Expand Down Expand Up @@ -509,5 +532,7 @@ <h2 class="accordion-header">
</div>
</div>

<p class="lead mb-4 mt-5"><a href="#anchor-top">Return to top</a></p>

</div>
</div>

0 comments on commit ca33e83

Please sign in to comment.