Skip to content

Commit 2b4216f

Browse files
committed
no change on report
1 parent 9a15393 commit 2b4216f

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

src/report.Rmd

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
---
23
output:
34
html_document:
@@ -206,7 +207,6 @@ total_row <- agg_ref_type %>%
206207
reference_label = "Total",
207208
assigned_type = "",
208209
effective_count = sum(effective_count, na.rm = TRUE),
209-
base = sum(base, na.rm=TRUE),
210210
counts_wo_lambda = sum(counts_wo_lambda, na.rm = TRUE),
211211
pct_wo_lambda = sum(pct_wo_lambda, na.rm = TRUE)
212212
)
@@ -220,7 +220,6 @@ flextable(agg_ref_type_with_total %>% select(! c(pct_vector, pct_total))) %>%
220220
"Mapped Reference",
221221
"Assigned Type",
222222
"Counts",
223-
"Base Counts",
224223
"Counts Excluding Lambda",
225224
"Frequency (%, Excluding Lambda)"
226225
))
@@ -259,7 +258,6 @@ total_row <- vectypes %>%
259258
summarise(
260259
assigned_type = "Total",
261260
effective_count = sum(effective_count, na.rm = TRUE),
262-
base = sum(base, na.rm = TRUE),
263261
pct_vector = sum(pct_vector, na.rm = TRUE),
264262
pct_wo_lambda = sum(pct_wo_lambda, na.rm = TRUE)
265263
)
@@ -268,11 +266,10 @@ total_row <- vectypes %>%
268266
vectypes_with_total <- bind_rows(vectypes, total_row)
269267
270268
# Create the flextable with reordered columns
271-
flextable(vectypes_with_total %>% select(assigned_type, effective_count, base, pct_wo_lambda, pct_vector)) %>%
269+
flextable(vectypes_with_total %>% select(assigned_type, effective_count, pct_wo_lambda, pct_vector)) %>%
272270
set_header_labels(values = c(
273271
"Assigned Type",
274272
"Counts",
275-
"Base Count",
276273
"Frequency (%, Excluding Lambda)",
277274
"GOI Vector Frequency (%)"
278275
))
@@ -347,7 +344,6 @@ total_row <- agg_subtype %>%
347344
assigned_type = "Total",
348345
assigned_subtype = "",
349346
effective_count = sum(effective_count, na.rm = TRUE),
350-
base = sum(base, na.rm=TRUE),
351347
pct_vector= sum(pct_vector, na.rm = TRUE),
352348
pct_wo_lambda = sum(pct_wo_lambda, na.rm = TRUE)
353349
)
@@ -356,13 +352,12 @@ total_row <- agg_subtype %>%
356352
agg_subtype_with_total <- bind_rows(agg_subtype, total_row)
357353
358354
# Create the flextable with reordered columns
359-
flextable(agg_subtype_with_total %>% select(assigned_type, assigned_subtype, effective_count, base, pct_wo_lambda, pct_vector)) %>%
355+
flextable(agg_subtype_with_total %>% select(assigned_type, assigned_subtype, effective_count, pct_wo_lambda, pct_vector)) %>%
360356
set_header_labels(
361357
values = c(
362358
"Assigned Type",
363359
"Assigned Subtype",
364360
"Counts",
365-
"Base Counts",
366361
"Frequency (%, Excluding Lambda)",
367362
"GOI Vector Frequency (%)"
368363
)
@@ -640,11 +635,12 @@ if (exists("df.flipflop") && (nrow(df.flipflop) > 1)) {
640635

641636
```{r fftable, message=FALSE, warning=FALSE, results='asis'}
642637
if (exists("df.flipflop") && (nrow(df.flipflop) > 1)) {
643-
flextable(df.flipflop) %>%
644-
set_header_labels(values = c("type", "subtype", "leftITR", "rightITR", "count", "base counts"))
638+
flextable(df.flipflop %>% select(! c("base"))) %>%
639+
set_header_labels(values = c("type", "subtype", "leftITR", "rightITR", "count"))
645640
}
646641
```
647642

643+
648644
```{r saverdata, message=FALSE, warning=FALSE}
649645
# Enable for troubleshooting -- takes some time to generate
650646
# save.image(file=paste0(params$path_prefix, '.Rdata'))

0 commit comments

Comments
 (0)