![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Parse and construct Python representations for datasets stored in RDS files. rds2py
supports various base classes from R, and Bioconductor's SummarizedExperiment
and SingleCellExperiment
S4 classes. For more details, check out rds2cpp library.
Version 0.5.0 brings major changes to the package,
Please refer to the documentation for the latest usage guidelines. Previous versions may have incompatible APIs.
The package provides:
Package is published to PyPI
pip install rds2py
# or install optional dependencies
pip install rds2py[optional]
If you do not have an RDS object handy, feel free to download one from single-cell-test-files.
from rds2py import read_rds
r_obj = read_rds("path/to/file.rds")
The returned r_obj
either returns an appropriate Python class if a parser is already implemented or returns the dictionary containing the data from the RDS file.
In addition, the package provides the dictionary representation of the RDS file, allowing users to write their own custom readers into appropriate Python representations.
from rds2py import parse_rds
data = parse_rds("path/to/file.rds")
print(data)
if you know this RDS file contains an GenomicRanges
object, you can use the built-in reader or write your own reader to convert this dictionary.
from rds2py.read_granges import read_genomic_ranges
gr = read_genomic_ranges(data)
R Type | Python/NumPy Type |
---|---|
numeric | numpy.ndarray (float64) |
integer | numpy.ndarray (int32) |
character | list of str |
logical | numpy.ndarray (bool) |
factor | list |
data.frame | BiocFrame |
matrix | numpy.ndarray or scipy.sparse matrix |
dgCMatrix | scipy.sparse.csc_matrix |
dgRMatrix | scipy.sparse.csr_matrix |
This project uses pybind11 to provide bindings to the rds2cpp library. Please make sure necessary C++ compiler is installed on your system.
This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.
FAQs
Parse and construct Python representations for datasets stored in RDS files
We found that rds2py demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.