Skip to content

Commit

Permalink
fix for rhdf5 cset arg removal
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangriffiths committed Mar 12, 2024
1 parent 5c19167 commit 5f2581b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/write10xCounts.R
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ write10xCounts <- function(path, x, barcodes=colnames(x), gene.id=rownames(x), g
# Writing attributes.
h5f <- H5Fopen(path)
h5g <- H5Gopen(h5f, "/")
h5writeAttribute(chemistry, h5obj=h5g, name="chemistry_description", variableLengthString=TRUE, asScalar=TRUE, cset="UTF8")
h5writeAttribute("matrix", h5obj=h5g, name="filetype", variableLengthString=TRUE, asScalar=TRUE, cset="UTF8")
h5writeAttribute(library.ids, h5obj=h5g, name="library_ids", variableLengthString=TRUE, asScalar=TRUE, cset="UTF8")
h5writeAttribute(chemistry, h5obj=h5g, name="chemistry_description", variableLengthString=TRUE, asScalar=TRUE, encoding="UTF-8")
h5writeAttribute("matrix", h5obj=h5g, name="filetype", variableLengthString=TRUE, asScalar=TRUE, encoding="UTF-8")
h5writeAttribute(library.ids, h5obj=h5g, name="library_ids", variableLengthString=TRUE, asScalar=TRUE, encoding="UTF-8")
h5writeAttribute(original.gem.groups, h5obj=h5g, name="original_gem_groups")
h5writeAttribute(as.integer(version) - 1L, h5obj=h5g, name="version") # this is probably correct.
H5Gclose(h5g)
Expand Down

0 comments on commit 5f2581b

Please sign in to comment.