Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/development' into allyhawkins/al…
Browse files Browse the repository at this point in the history
…texp-merged-objects
  • Loading branch information
allyhawkins committed Dec 8, 2023
2 parents 1baaf18 + 504a280 commit 5dc7879
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions templates/qc_report/celltypes_supplemental_report.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -339,18 +339,20 @@ if (has_singler) {
}
if (has_cellassign) {
tissue_type <- stringr::word(
# eg, "blood-compartment"
metadata(processed_sce)$cellassign_reference,
1,
sep = "-"
)
organs <- metadata(processed_sce)$cellassign_reference_organs |>
stringr::str_to_lower()
# split up and add an `and` before the final organ
organs_string <- stringr::str_split_1(organs, pattern = ", ") |>
stringr::str_flatten_comma(last = ", and ")
ref_name <- metadata(processed_sce)$cellassign_reference
methods_text <- glue::glue(
"{methods_text}
* Annotations from [`CellAssign`](https://github.com/Irrationone/cellassign), a marker-gene-based approach ([Zhang _et al._ 2019](https://doi.org/10.1038/s41592-019-0529-1)).
Marker genes associated with `{tissue_type}` tissue were obtained from [PanglaoDB](https://panglaodb.se/).\n
"
Marker genes for cell types were obtained from [PanglaoDB](https://panglaodb.se/) and compiled into a reference named `{ref_name}`.
This reference includes the following organs and tissue compartments: {organs_string}.\n"
)
}
Expand Down

0 comments on commit 5dc7879

Please sign in to comment.