Skip to content

Commit

Permalink
Merge pull request #189 from bigomics/fix-1276-opg
Browse files Browse the repository at this point in the history
Fix #1276: Sample information multiple errors
  • Loading branch information
ivokwee authored Nov 25, 2024
2 parents 13c06e8 + 48c5483 commit c85269d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/pgx-pheno.R
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ expandPhenoMatrix <- function(M, drop.ref = TRUE, keep.numeric = FALSE, check =
## select allowed columns: numeric or with "sensible" levels
y.isnum <- (y.class %in% c("numeric", "integer"))
kk <- which(y.isnum | (!y.isnum & nlevel > 1 & nratio < 0.66))
if (length(kk) == 0) {
kk <- which(y.isnum | (!y.isnum & nlevel > 1 ))
}
if (length(kk) == 0) {
return(NULL)
}
Expand Down

0 comments on commit c85269d

Please sign in to comment.