-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ 0e145e7 🚀
- Loading branch information
Showing
26 changed files
with
5,844 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: c2816a1d94bae1060883498f48c5259b | ||
config: c8acf869f0515f592e67571142b76a30 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
212 changes: 73 additions & 139 deletions
212
_modules/cellarr/skeleton.html → _modules/cellarr/utils_tiledb_frame.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
file_format: mystnb | ||
kernelspec: | ||
name: python | ||
--- | ||
|
||
# Cell Arrays | ||
|
||
Cell Arrays is a Python package that provides a TileDB-backed store for large collections of genomic experimental data, such as millions of cells across multiple single-cell experiment objects. | ||
|
||
## Usage | ||
|
||
### Create the `CellArrDataset` | ||
|
||
Creating a CellArrDataset generates three TileDB files in the specified output directory: | ||
|
||
- `gene_metadata`: Contains feature annotations. | ||
- `cell_metadata`: Contains cell or sample metadata. | ||
- `matrix`: A TileDB-backed sparse array containing expression vectors. | ||
|
||
***Note: Currently only supports either paths to H5AD or `AnnData` objects*** | ||
|
||
To build a `CellArrDataset` from a collection of `H5AD` or `AnnData` objects: | ||
|
||
```python | ||
import anndata | ||
import numpy as np | ||
import tempfile | ||
from cellarr import build_cellarrdataset, CellArrDataset | ||
|
||
# Create a temporary directory | ||
tempdir = tempfile.mkdtemp() | ||
|
||
# Read AnnData objects | ||
adata1 = anndata.read_h5ad("path/to/object1.h5ad") | ||
# or just provide the path | ||
adata2 = "path/to/object2.h5ad" | ||
|
||
# Build CellArrDataset | ||
dataset = build_cellarrdataset( | ||
output_path=tempdir, | ||
h5ad_or_adata=[adata1, adata2], | ||
matrix_dim_dtype=np.float32 | ||
) | ||
``` | ||
---- | ||
|
||
#### TODO: This following section does not work yet. | ||
|
||
Users have the option to reuse the `dataset` object retuned when building the dataset or by creating a `CellArrDataset` object by initializng it to the path where the files were created. | ||
|
||
```python | ||
# Create a CellArrDataset object from the existing dataset | ||
dataset = CellArrDataset(dataset_path=tempdir) | ||
|
||
# Query data from the dataset | ||
expression_data = dataset[10, ["gene1", "gene10", "gene500"]] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.