Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flag description table and add Image with Examples of Flags #321

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions vignettes/Introduction_Appendices.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ vignette: >
```

```{r, echo = FALSE, message = FALSE, warning = FALSE}
#devtools::load_all() #use this instead of lbrary(tcpl) when dev versions are installed locally
# devtools::load_all() #use this instead of lbrary(tcpl) when dev versions are installed locally
library(tcpl)
library(tcplfit2)
# Data Formatting Packages #
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
madison-feshuk marked this conversation as resolved.
Show resolved Hide resolved
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading