ArchR_h5ad: Read .arrow files (from ArchR) to anndata.
Project description
ArchR_h5ad
A lightweight python package to parse .arrow
files produced by ArchR - to AnnData.
Installation
Install the last-released distrubution from PYPI:
pip install ArchR_h5ad
Alternatively, clone the repo to install the development version, locally:
git clone https://github.com/mvinyard/ArchR_h5ad.git; cd ArchR_h5ad
pip install -e .
A brief example
As an example, we will use the data from the ArchR hematopoiesis tutorial.
Option 1. Directly read a .arrow
file to adata
import ArchR_h5ad
arrow_path = "/home/user/data/scATAC_CD34_BMMC_R1.arrow"
adata = ArchR_h5ad.read_arrow(arrow_path, use_matrix="GeneScoreMatrix")
Alternatively, one may use the "TileMatrix"
generated by ArchR.
adata = ArchR_h5ad.read_arrow(arrow_path, use_matrix="TileMatrix")
Option 2. Instantiate the Arrow
class.
arrow = ArchR_h5ad.Arrow(arrow_path)
arrow.to_adata()
import numpy as np
np.array(arrow.__dir__())[
np.array([not i.startswith("__") for i in arrow.__dir__()])
].tolist()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ArchR_h5ad-0.0.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for ArchR_h5ad-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fe15c3ca2ce01a9ce162bf7a1b823986c70b54d75e871d4750bfe31f951c3fc |
|
MD5 | 103cfd2e63bfce028d5c3d1bd677b926 |
|
BLAKE2b-256 | 33ac06f8dd455adeb1cde169101694ad416590a260d7795d507540b9278c670d |