Giter VIP home page Giter VIP logo

Comments (6)

mojaveazure avatar mojaveazure commented on June 9, 2024

Try the develop branch. While neither loomR nor the development version are at feature parity with loompy, the development version of loomR should be able to read/manipulate loom v2 objects.

devtools::install_github(repo = 'mojaveazure/loomR', ref = 'develop')

from loomr.

gokceneraslan avatar gokceneraslan commented on June 9, 2024

Here is the error I get when I use the convert function in Seurat and the develop branch of loomR:

Warning message in loomR::create(filename = filename, data = from@raw.data[, cell.order], :NAs introduced by coercionWarning message in dataset_create_pl$set_chunk(chunk_dims):During conversion, the following issues occured: H5T_CONV_EXCEPT_RANGE_LOWError in dataset_create_pl$set_chunk(chunk_dims): HDF5-API Errors:
    error #000: ../../../src/H5Pdcpl.c in H5Pset_chunk(): line 2030: all chunk dimensions must be positive
        class: HDF5
        major: Invalid arguments to routine
        minor: Out of range

Traceback:

1. Convert(from = sobj, to = "loom", filename = paste0("out.loom"))
2. Convert.seurat(from = sobj, to = "loom", filename = paste0("out.loom"))
3. loomR::create(filename = filename, data = from@raw.data[, cell.order], 
 .     cell.attrs = from@meta.data[cell.order, ], layers = list(norm_data = t(x = from@data[, 
 .         cell.order])), chunk.dims = chunk.dims, chunk.size = chunk.size, 
 .     overwrite = overwrite, display.progress = display.progress)
4. new.loom$create_dataset(name = "matrix", dtype = dtype, space = matrix.space, 
 .     chunk_dims = chunk.dims, gzip_level = 4)
5. dataset_create_pl$set_chunk(chunk_dims)

from loomr.

mojaveazure avatar mojaveazure commented on June 9, 2024

Hi Gökçen,

What version of the HDF5 library and the hdf5r R package are you using? Are you able to make a loom object passing your expression matrix to loomR::create?

from loomr.

gokceneraslan avatar gokceneraslan commented on June 9, 2024

apt-cache show libhdf5-dev:

Package: libhdf5-dev
Architecture: amd64
Version: 1.10.0-patch1+docs-4build2
Priority: optional
Section: universe/libdevel
Source: hdf5
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian GIS Project <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 11081
Provides: libhdf5-serial-dev
Depends: libhdf5-100 (= 1.10.0-patch1+docs-4build2), zlib1g-dev, libjpeg-dev, libaec-dev, hdf5-helpers, libhdf5-cpp-100 (= 1.10.0-patch1+docs-4build2)
Suggests: libhdf5-doc
Breaks: libhdf5-serial-dev (<< 1.8.12-9~)
Replaces: libhdf5-serial-dev (<< 1.8.12-9~)

I just install hdf5r from github (devtools::install_github(repo = "hhoeflin/hdf5r") ): hdf5r::h5version():

hdf5r version 1.0.1 with C-library HDF5 Version  1.10.0 

Interestingly, specifying chunk.dims i.e. chunk.dims = 100 fixes the error.

from loomr.

gokceneraslan avatar gokceneraslan commented on June 9, 2024

Are you able to make a loom object passing your expression matrix to loomR::create?

Yes, loomR::create('filename', obj@data) works without any errors.

from loomr.

mojaveazure avatar mojaveazure commented on June 9, 2024

Okay, this seems to be an issue with Seurat::Convert rather than with loomR. At the moment, we are scrapping the current converters in Seurat for a more R-like approach (eg. as.SingleCellExperiment, as.Seurat, and a future as.loom). We don't have an ETA for Seurat ↔ loom converters, so converting between Seurat and loom will need to be done manually for the time being.

from loomr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.