New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable velocyto.R support both hdf5r and h5 #43
Conversation
@@ -33,6 +33,6 @@ annotated intronic regions | |||
\examples{ | |||
\dontrun{ | |||
library(BSgenome.Mmusculus.UCSC.mm10) | |||
ip.mm10 <- t.generate.ip.mask('refdata-cellranger-mm10-1.2.0/genes/genes.gtf',Mmusculus,'mm10') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
roxygen2
picks up a deprecated function (i.e., t.generate.ip.mask
) and replace it with the correct one (i.e., find.ip.sites
).
…ions. Revert ":pill: weaken the h5 dependency and document package by roxygen2" This reverts commit 8a05044.
I get this error msg.
|
The error is all about the installation of hdf5r itself. The exact same issue/problem was reported here hhoeflin/hdf5r#106. Once you have hdf5r installed, you are probably ready to install and use velocyto.R. |
Got the following warning messages in the first test:
The result is OK though. |
OK, merged in to dev, tested, and merged all into master. Thank you very much for the fix! |
Motivation
The installation of
velocyto.R
cannot work mainly due to one of the dependencies,h5
; this was also reported in these issues #42, #30, and #13 (#13 (comment)).Here Yun enables the velocyto.R to support both hdf5r and h5, keeps the results consistent and avoids messing up the original code structure. In addition, this PR leaves flexibility for the author to decide if to keep h5 or exclusively to use hdf5r.
What's Changed
read.loom.matrices()
andread.gene.mapping.info()
were fixed so that now they support both the hdf5r and h5. In details, they are both added one parameter, namedengine
, to select either 'hdf5r' or 'h5'. Default value is 'hdf5r'.DESCRIPTION
file, 'h5' was changed to 'Suggests' section and 'hdf5r' was changed to 'Imports' section, because the h5 package is officially deprecated in favor of the hdf5r package. (See notice here).roxygen2
. The contents were consistent except that one error existed in 'man/find.ip.sites.Rd' was fixed.roxygen2
picked up a deprecated function (i.e., t.generate.ip.mask) and replaced it with the correct one (i.e., find.ip.sites).Repeatable Demo
Use the official tutorial data to run the repeatable demo. The results were same and consistent.
read.loom.matrices()
read.gene.mapping.info()
Tested Env
Thanks @alexbarrera for following up my issue.