Skip to content

Commit

Permalink
fix: use index if sample name not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiAragaki committed Nov 6, 2023
1 parent 143b155 commit 566ed9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/qp_add_names.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ qp_add_names.data.frame <- function(x, sample_names = NULL, ...) {
.data$sample_type == "unknown",
sample_names[.data$index],
paste("Standard", .data$index)
),
.sample_name = ifelse(
is.na(.data$.sample_name),
.data$index,
.data$.sample_name
)
)
}

0 comments on commit 566ed9c

Please sign in to comment.