Skip to content
Merged
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
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ importFrom(rlang,is_spliced)
importFrom(rlang,quo_is_missing)
importFrom(rlang,quo_is_null)
importFrom(rlang,quo_is_symbol)
importFrom(rlang,quo_is_symbolic)
importFrom(rlang,quo_name)
importFrom(rlang,quo_squash)
importFrom(scales,extended_breaks)
Expand Down
3 changes: 2 additions & 1 deletion R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ add_class = function(var, name) {
#' @keywords internal
#'
#' @importFrom rlang quo_is_symbol
#' @importFrom rlang quo_is_symbolic
#'
#' @param .data A tibble
#' @param .sample A character name of the sample column
Expand All @@ -451,7 +452,7 @@ get_sample_transcript_counts = function(.data, .sample, .transcript, .abundance)
.transcript = get_tt_columns(.data)$.transcript
else my_stop()

if( .abundance %>% quo_is_symbol() ) .abundance = .abundance
if( .abundance %>% quo_is_symbolic() ) .abundance = .abundance
else if(".abundance" %in% (.data %>% get_tt_columns() %>% names))
.abundance = get_tt_columns(.data)$.abundance
else my_stop()
Expand Down