Repository navigation
switch from rhdf5 to hdf5r - #169
Conversation
…o into write-h5ad-categoricals * 'write-h5ad-categoricals' of github.com:scverse/scverseio: fix styling Update write_h5ad_categorical
Replace repeated code in individual writers
|
Since more tests are succeeding, I'm merging this branch :) |
|
Does this mean we are officially moving from {rhdf5} to {hdf5r} (and from Bioconductor to CRAN)? I thought that wasn't necessary any more after I got everything working with {rhdf5}? Or is there something else I'm missing? |
|
I did merge the PR because the hdf5r implementation is working better atm, though I don't know which of the two will work best in the long run. I'd been considering simply creating two backends (an HDF5RAnnData and an RHDF5AnnData, if you will) to see with which framework achieving full anndata compatibility is the easiest. Without a direct comparison, deciding between rhdf5 and hdf5r seems like a judgement call. hdf5r:
rhdf5:
both:
wdyt? |
|
I guess if they are both implemented already I wouldn't be entirely opposed to that in a testing phase but I definitely wouldn't release both of them. It does seem like it might be a lot of work though, depending on where things are at. Unless there is a significant issue with one implementation then I think CRAN vs Bioconductor is probably a bigger question than which HDF5 implementation to use. This probably has more to do with the community we want to interact with/reach than anything technical. We did discuss this when we started the project at the hackathon but maybe we need to do it again. |
* Update write_h5ad_categorical * fix styling * Update write_h5ad_categorical * Adjust H5AD categorical write test * Add write_h5ad_attributes function Replace repeated code in individual writers * ignore cyclomatic complexity warning for `write_h5ad_element` warning * formatting changes * in write_h5ad_attributes, allow file to be an open hdf5 file * wip * wip * substitute mentions of rhdf5 with hdf5r * strip obs_names and var_names from framework * update * fix tests and finalize * remove mentions of obs_names and var_names in the constructor * make sure filenames are always unique * add mode to various functions * manually close anndatas in tests (where needed) * only close when pointer is valid * move match * use $close() instead of $close_all() * switch to different branch * simplify test * gc afterclosing the adata in write_h5ad * guess the dtype and the space * update docs * use hhoeflin's remote * bugfix in hdf5r has been released * update: nevermind, the fix wasn't included in the release yet * minor fixes * bump version number * remove remotes * remove references to rhdf5 * fix attributes * style * fix write h5ad helpers * fix unit tests * fix linting issues * move hdf5 helpers * reuse existing functionality * add test (this seems to have been fixed at some point) * improve guessing of dtype when storing a logical vector * fix styling * reenable more tests --------- Co-authored-by: Luke Zappia <[email protected]>
Continuation of #166 but from an internal branch.
After some minor improvements, this implementation seems to be passing a few more tests in comparison to the rhdf5 implementation in main.