Skip to content

Commit

Permalink
Merge pull request #30 from FredHutch/kweav-patch-1
Browse files Browse the repository at this point in the history
Update 00-setup_data.R to switch `length` for `nrow`
  • Loading branch information
kweav authored May 20, 2024
2 parents 2f5e574 + 9a4e59d commit 330999f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/00-setup_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ setup_data <- function(counts = NULL,
if (nrow(pg_ids) != nrow(counts)) stop("the number of rows in the pg_info is not equal to the number of rows in the counts")

# we need the first column to be a unique id
if (!(nrow(unique(pg_ids[, 1])) == nrow(pg_ids[, 1]))) stop("The paired guide IDs must be a unique ID")
if (!(length(unique(pg_ids[, 1])) == length(pg_ids[, 1]))) stop("The paired guide IDs must be a unique ID")
new_data$metadata$pg_ids <- pg_ids

# Store the raw counts
Expand Down

0 comments on commit 330999f

Please sign in to comment.