Comments (6)
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.
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 coercion”Warning message in dataset_create_pl$set_chunk(chunk_dims):
“During conversion, the following issues occured: H5T_CONV_EXCEPT_RANGE_LOW”
Error 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.
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.
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.
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.
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)
- Loom file outdated version for loompy HOT 2
- Raw Data not Present in Loom File
- Combine two loom files
- Package ‘R6’ version 2.4.0 cannot be unloaded:
- Cannot convert Seurat object to loom HOT 2
- Error in (function () : id is invalid
- get.attribute.df() - how to handle duplicate CellIDs? HOT 1
- Cannot open loom file HOT 3
- saving a loomR file
- LoomR doesn't seem to work HOT 3
- How to save/export loom file HOT 1
- Does package support storing info in global attributes?
- Compatibility with R version 4.0.3
- how to merge 6 loom file? HOT 2
- Conversion from Seurat to loom
- get.attribute.df(): unused argument (attribute.names = ) HOT 2
- Error in private$reset_batch() : attempt to apply non-function
- create() ignores do.transpose=FALSE
- 'Error in eval(exprs[i], envir) : object 'confint.default' not found' while trying to install the developmental version 1.0.3.9000 HOT 1
- subsetting loom file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loomr.