Repository navigation
Update HDF5 writing functions and implement data frame writing - #85
Merged
Merged
Conversation
This should always be used instead of one of the specific writing functions
Member
|
Thanks for your hard work! Would you like us to review the pr? |
* origin/main: (23 commits) initial implementation of from_Seurat (#64) only check size when the names are already defined todo: add back obs_names and var_names length check update roxygen move required args to the front Update R/HDF5-read.R fix lint issues update tests refactor code to assume obs_names and var_names are defined Style and lint Add rhdf5 package skipe to HDF5 tests Add 1D sparse array to example.h5ad Remove requireNamespace("rhdf5") Fix bug in read_h5ad_string_array() Add support for reading H5AD rec arrays Covert 1D string arrays to vectors in read_h5ad_string_array() Update tests to use example.h5ad wip changes for #76 Remove Krumsiek augemented dataset Reduce example H5AD to 50 cells x 100 genes ...
Need to write attributes as scalars for Python to read them
Was resulting in 1D matrices that Python couldn't read
obs_names/var_names check fails until #87 is fixed
* origin/main: remove shape trackstatus for now
Add ... to read_h5ad_element
lazappi
marked this pull request as ready for review
June 7, 2023 11:49
rcannood
approved these changes
Jun 7, 2023
rcannood
left a comment
Member
There was a problem hiding this comment.
LGTM, though the proof of the pudding will be in the eating :)
lazappi
added a commit
that referenced
this pull request
Jul 5, 2023
* main: (26 commits) add gthb pat Update HDF5 writing functions and implement data frame writing (#85) remove shape trackstatus for now initial implementation of from_Seurat (#64) only check size when the names are already defined todo: add back obs_names and var_names length check update roxygen move required args to the front Update R/HDF5-read.R fix lint issues update tests refactor code to assume obs_names and var_names are defined Style and lint Add rhdf5 package skipe to HDF5 tests Add 1D sparse array to example.h5ad Remove requireNamespace("rhdf5") Fix bug in read_h5ad_string_array() Add support for reading H5AD rec arrays Covert 1D string arrays to vectors in read_h5ad_string_array() Update tests to use example.h5ad ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This implements writing of data frames to HDF5 files and generally updates the HDF5 writing functions
write_h5ad_encoding()to work more reliablypath_exists()tohdf5_path_exists()write_h5ad_element()now deletes any existing elements before writing the new one. This should always be used instead of the specific writing functions.write_h5ad_element()now also passes arguments to writing functions using..., needed for data frames and has other potential uses.write_h5ad_data_frame()Still to do:
HDF5AnnDatasetter tests (needs Update example dataset #74 to be merged)obs_names/var_namesinstead ofobs/varwhich felt like a big enough change for a separate PR.