Skip to content
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

read_feats error #183

Open
cms72 opened this issue May 7, 2024 · 4 comments
Open

read_feats error #183

cms72 opened this issue May 7, 2024 · 4 comments
Labels
improvement Improve API/behavior/implementation of an existing feature

Comments

@cms72
Copy link

cms72 commented May 7, 2024

Hi,

gggenomes used to work for me, but now I get the following error. I've tried to re-install this using this dev package, but to no avail:
devtools::install_github("thackl/gggenomes@fix-156",force =TRUE)

g0 <- gggenomes::read_feats(list.files(path = "~/Documents/gggenomes/",pattern="*.gbk",full.names = TRUE))
Reading 'gbk' with read_gbk():

  • file_id: 1_gggenomes_region [/Users/cmsia/Documents/gggenomes/gggenomes_region.gbk]
    writing directives
    writing features
    Harmonizing attribute names
    • ID -> feat_id
    • Parent -> parent_ids
    • Name -> name
    Error in map2():
    ℹ In index: 1.
    ℹ With name: 1_gggenomes_region.
    Caused by error in loadNamespace():
    ! there is no package called ‘IRanges’
    Run rlang::last_trace() to see where the error occurred.

I hope you can help! Thanks!

@thackl
Copy link
Owner

thackl commented May 7, 2024

Hi,

somehow one of the dependencies (IRanges) was not installed. I will look into why not. Easiest fix for you is to try and install it manually. That should fix it. You can find instructions here:

https://www.bioconductor.org/packages/release/bioc/html/IRanges.html

@thackl
Copy link
Owner

thackl commented May 7, 2024

Note to self, IRanges is currently in "Suggests". Need to check where it's needed and whether to move it to "Depends"

@cms72
Copy link
Author

cms72 commented May 7, 2024

@thackl - manually installing IRanges fixed it. Many thanks!

@iimog
Copy link
Collaborator

iimog commented May 7, 2024

As IRanges is a bioconductor package, it might be problematic to have in "Depends" for our planned cran submission.

@thackl thackl added the improvement Improve API/behavior/implementation of an existing feature label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improve API/behavior/implementation of an existing feature
Projects
None yet
Development

No branches or pull requests

3 participants