Skip to content

grumpy. Read NumPy .npy and .npz files in R. #775

Description

@Bisaloo

Submitting Author Name: Hugo Gruson
Submitting Author Github Handle: @Bisaloo
Repository: https://github.com/Bisaloo/grumpy
Version submitted: 0.1.1.9000
Submission type: Standard
Editor: @njtierney
Reviewers: TBD

Archive: TBD
Version accepted: TBD
Language: en


  • Paste the full DESCRIPTION file inside a code block below:
Package: grumpy
Title: Read 'NumPy' '.npy' and '.npz' Files
Version: 0.1.1.9000
Authors@R: c(
    person("Hugo", "Gruson", , "hugo.gruson+R@normalesup.org", role = c("aut", "cre", "cph"),
           comment = c(ORCID = "0000-0002-4094-1476")),
    person("Mike", "Smith", role = c("aut", "cph"),
           comment = c("Original author of portions of the C code migrated from the Rarr package")),
        person("German Network for Bioinformatics Infrastructure - de.NBI", role = "fnd")
    )
Description: Lightweight way to read 'NumPy' '.npy' and '.npz' files in R. All data types supported
    by 'NumPy', with all sizes (converted internally to R native size), both C and 'Fortran' order,
    and any shape, up to an arbitrary number of dimensions, are supported.
License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
Suggests: 
    quarto,
    testthat (>= 3.0.0)
VignetteBuilder: quarto
Config/testthat/edition: 3
URL: https://hugogruson.fr/grumpy/, https://github.com/Bisaloo/grumpy
BugReports: https://github.com/Bisaloo/grumpy/issues
Imports: 
    jsonlite
Config/roxygen2/version: 8.0.0
Depends: 
    R (>= 4.2.0)

Scope

  • Please indicate which category or categories from our package fit policies this package falls under: (Please check an appropriate box below. If you are unsure, we suggest you make a pre-submission inquiry.):

    • data retrieval
    • data extraction
    • data munging
    • data deposition
    • data validation and testing
    • workflow automation
    • version control
    • citation management and bibliometrics
    • scientific software wrappers
    • field and lab reproducibility tools
    • database software bindings
    • geospatial data
    • translation
    • rOpenSci internal tools
  • Explain how and why the package falls under these categories (briefly, 1-2 sentences):

This package allows reading data produced by numpy, or the numerous python libraries depending on numpy, in R. This is critical to ensure interoperability of R and python, and to allow retrieval of data already saved into npy format.

  • Who is the target audience and what are scientific applications of this package?

Anyone who has hybrid R/python pipelines, or who has collaborators using python. This allows to seamlessly exchange data between both languages (although higher-performance fully interoperable formats should be preferred where available). This is for example very common in molecular biology.

This is also a precious tool to open previously saved and published / archived datasets. See for example zenodo.org/search?q=&f=file_type%3Anpy&l=list&p=1&s=10&sort=newest.

NA

  • If you made a pre-submission inquiry, please paste the link to the corresponding issue, forum post, or other discussion, or @tag the editor you contacted.

#772

  • Explain reasons for any pkgcheck items which your package is unable to pass.

Technical checks

Confirm each of the following by checking the box.

This package:

Use of Generative AI

  • Generative AI tools were used to produce some of the material in this submission.

The package was originally manually written in R. Some C code was then manually migrated from the Rarr package. After this, some minimal conversion of specific steps from R to C was done (e.g., Bisaloo/grumpy@17a80c5) with Posit Assistant in Positron. The agent was guided through it step by step and the entire, small, diff was reviewed before pushing.

Publication options

  • Do you intend for this package to go on CRAN?

This package has already been submitted to CRAN

  • Do you intend for this package to go on Bioconductor?

  • Do you wish to submit an Applications Article about your package to Methods in Ecology and Evolution? If so:

MEE Options
  • The package is novel and will be of interest to the broad readership of the journal.
  • The manuscript describing the package is no longer than 3000 words.
  • You intend to archive the code for the package in a long-term repository which meets the requirements of the journal (see MEE's Policy on Publishing Code)
  • (Scope: Do consider MEE's Aims and Scope for your manuscript. We make no guarantee that your manuscript will be within MEE scope.)
  • (Although not required, we strongly recommend having a full manuscript prepared when you submit here.)
  • (Please do not submit your package separately to Methods in Ecology and Evolution)

Code of conduct

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions