Skip to content

Commit

Permalink
set missing rows to ''
Browse files Browse the repository at this point in the history
  • Loading branch information
LiNk-NY committed Aug 22, 2022
1 parent 068d99b commit 6e1cc6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,10 @@
} else {
rownames(df) <- rowData[[names.field]]
}
## Use "" instead of missing due to changes in SummarizedExperiment
## constructor
if (any(is.na(rownames(df))))
rownames(df)[is.na(rownames(df))] <- ""
if (length(rowData))
object <- SummarizedExperiment(assays = SimpleList(df),
rowData = rowData)
Expand Down

0 comments on commit 6e1cc6a

Please sign in to comment.