Skip to content

Commit

Permalink
Update flag description table and add example flag image
Browse files Browse the repository at this point in the history
  • Loading branch information
ElizabethGilson committed Dec 31, 2024
1 parent c61f7d1 commit 1d4899b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions vignettes/Introduction_Appendices.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ vignette: >
```

```{r, echo = FALSE, message = FALSE, warning = FALSE}
#devtools::load_all() #use this instead of lbrary(tcpl) when dev versions are installed locally
library(tcpl)
devtools::load_all() #use this instead of lbrary(tcpl) when dev versions are installed locally
# library(tcpl)
library(tcplfit2)
# Data Formatting Packages #
library(data.table)
Expand Down Expand Up @@ -2184,10 +2184,10 @@ For example, a curve may be considered a single point hit with activity not at t
Method <- c(5:11, 13:15, 17:20)
# Second column - Level 6 Flag Names
FlagNames <- c("modl.directionality.fail", "singlept.hit.high", "singlept.hit.mid",
"multipoint.neg", "bmd.high", "noise", "border", "low.nrep",
"low.nconc", "gnls.lowconc", "efficacy.50", "ac50.lowconc",
"viability.gnls", "no.med.gt.3bmad")
FlagNames <- c("Model directionality questionable", "Active with only highest conc above baseline (3*bmad)", "Active with one conc (not highest) above baseline (3*bmad)",
"Inactive with multiple concs above baseline (3*bmad)", "Bmd > ac50, indication of high baseline bariability", "Noisy data", "Borderline", "Average number of replicates per conc < 2",
"Number of concentrations tested < 4", "Gain AC50 < lowest concn & loss AC50 < mean conc", "Efficacy < 50%", "AC50 < lowest concentration tested",
"Cell viability assay fit with gnls winning model", "No median responses above baseline")
# Third column - Level 6 Flag Descriptions
FlagDescription <- c("Flag series if model directionality is questionable, i.e. if the winning model
direction was opposite, more responses $(resp)$ would have exceeded the cutoff
Expand Down Expand Up @@ -2233,15 +2233,28 @@ FlagDescription <- c("Flag series if model directionality is questionable, i.e.
"Flag series where no median response values are greater than baseline as
defined by 3 times the baseline median absolute deviation $(bmad)$ or less than baseline as defined by -3 times $bmad$; both $nmed\\_gtbl\\_pos$ and $nmed\\_gtbl\\_neg = 0$, where $nmed\\_gtbl\\_pos$ is the number of median response values $> 3 * bmad$ and $nmed\\_gtbl\\_neg$ is the number of median response values $< -3 * bmad$.")
# Consolidate all columns into a table.
output <- data.frame(Method, FlagNames, FlagDescription)
output <- data.frame(Method, FlagNames, FlagDescription)
colnames(output)<- c("Method", "Flag Name", "Flag Description")
htmlTable(output,
align = 'l',
align.header = 'l',
rnames = FALSE ,
css.cell = ' padding-bottom: 5px; vertical-align:top; padding-right: 10px;min-width: 5em ' )
css.cell = ' padding-bottom: 5px; vertical-align:top; padding-right: 10px;min-width: 5em ')
```
### Example of Flags

Below is a diagram with various example graphs for some of the above flags. The annotations highlight the part(s) of the graph that are concerning and caused that specific flag to be assigned to the data.

<center>

![<font style="font-size:15px"><i>Representative Graphs of Flags</i></font>](img/flag_examples.png){width=650px}



## Representative Samples {#chid}

Expand Down
Binary file added vignettes/img/flag_examples.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1d4899b

Please sign in to comment.