Skip to content

Commit dcd87a2

Browse files
committed
Remove diversity formatting
1 parent d66bc4a commit dcd87a2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

template.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ from the context dataset. The distribution of the nuclotide diversity is assumed
175175
`r div_values[["norm.text"]]` be normal after performing a Shapiro-Wilk test
176176
(p-value of $`r div_values[["normal.pvalue"]]`$).
177177

178-
The nucleotide diversity of the target samples is $`r div_values[["diversity"]] `$ (red line in @fig-div).
178+
The nucleotide diversity of the target samples is $`r format(div_values[["diversity"]], scientific = TRUE) `$ (red line in @fig-div).
179179
Assuming the independence of the context samples, the `r div_values[["type.test"]]`
180180
p-value of the context samples having a nucleotide diversity (in orange in @fig-div)
181181
as low as that of the target dataset is $`r div_values[["p.value"]]`$.

workflow/scripts/report/diversity_data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pvalue.emp <- empirical.probs(diversity)
9191
log_info("Building JSON data")
9292
p.value <- ifelse(st$p.value >= 0.05, pvalue.norm, pvalue.emp)
9393
list.div <- list(
94-
"diversity" = format(diversity, scientific = TRUE),
94+
"diversity" = diversity,
9595
"p.value" = ifelse(p.value >= 0.001, p.value, "< 0.001"),
9696
"normal.pvalue" = ifelse(st$p.value >= 0.001, p.value, "< 0.001"),
9797
"norm.text" = ifelse(st$p.value >= 0.05, "", "not"),

0 commit comments

Comments
 (0)