Skip to content

Commit

Permalink
write TAT table
Browse files Browse the repository at this point in the history
  • Loading branch information
pdiakumis committed Oct 28, 2024
1 parent bf2861d commit 78a81c4
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions inst/reports/mega_seqrunsum/report.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,8 @@ um_rep <- bind_rows(
AnalysisEnd = as.character(glue::glue("{end_year}-{end_month}-{end_day}")),
AnalysisEnd = lubridate::ymd(AnalysisEnd),
TotalDays = as.integer(DateReported - AnalysisEnd)
)
) |>
select(-c(end_year, end_month, end_day))
p <- um_rep |>
ggplot(aes(x = DateReported, y = TotalDays)) +
geom_jitter(width = 0.8, alpha = 0.5) +
Expand Down Expand Up @@ -534,7 +535,8 @@ tso_rep <- tso |>
AnalysisEnd = as.character(glue::glue("{end_year}-{end_month}-{end_day}")),
AnalysisEnd = lubridate::ymd(AnalysisEnd),
TotalDays = as.integer(DateReported - AnalysisEnd)
)
) |>
select(-c(end_year, end_month, end_day))
p <- tso_rep |>
ggplot(aes(x = DateReported, y = TotalDays)) +
geom_jitter(width = 0.8, alpha = 0.5) +
Expand All @@ -544,3 +546,15 @@ p
summary(tso_rep$TotalDays)
```

```{r}
rep_clean <- bind_rows(um_rep, tso_rep) |>
rename(
BioinfoEndDate = "AnalysisEnd",
PortalRunId = "portal_run_id",
Year = "year",
CurationEndDate = "DateReported",
) |>
select(PortalRunId, Assay, SubjectID, LibraryID, Year, BioinfoEndDate, CurationEndDate, TotalDays)
readr::write_csv(rep_clean, here("inst/reports/mega_seqrunsum", "nogit/report_return_dates_2023-2024_clean.csv"))
```

0 comments on commit 78a81c4

Please sign in to comment.