Toucan is an app that allows you visualize your single cell data in a desktop PC.
Download the pre-compiled binaries.
- Visualize single cell data: scRNA-seq, scATAC-seq, 10x Visium, NanoString Cosmx, etc
- Visualize anndata file: hdf5, zarr
- No Python or R runtime is required
- Out-of-core, serverless, and data stays on your device.
- Cross-platform: Windows, macOS, Linux, Android, iOS
- Fast Wilcoxon test (Rust implementation of wilcoxauc )
Please refer to Cirrocumulus
- Install hdf5 C library
- On MacOS, you can install it via:
brew install [email protected]
- On Linux, you can install it via:
sudo apt install libhdf5-dev
- On Windows, no extra installation needed.
# not required
winget install --id HDFGroup.HDF5 --source winget
- Download the precompile binaries and install.
- Run the app
Toucan supports the following on-disk formats:
- anndata-hdf5
- anndata-zarr (recommended, speed++)
For seurat object, you can convert it to anndata-hdf5 with the following commands:
# in R, install
remotes::install_github("zqfang/MuDataSeurat")
# then
MuDataSeurat::WriteH5AD(seurat_obj,
file = "data.h5ad",
assay="RNA",
sparse.type='csc_matrx',
scale.data = FALSE)
# or use
remotes::install_github("scverse/anndataR")
adata = anndataR::from_Seurat(seurat_obj,
assay_name = "SCT",
x_mapping = 'data',
layers_mapping =list(counts = "counts"))
adata$write_h5ad("data.h5ad")
In addition to anndata file, if you want to visualize spatial transcriptomics data, put the following two files in the same directory as the anndata file:
- spatial
coordinates
:- same filename prefix as the anndata file, but with
.image.positions.csv
extension. - the csv file needs 3 columns:
cell_id
,x
,y
.
- same filename prefix as the anndata file, but with
- spatial
images
: same filename prefix as the anndata file, but withimage.png/jpg
extenstion.
--|
|-- data.h5ad
|-- data.image.positions.csv
|-- data.image.png
see an spatial example input in the example
data folder
The frontend UI is taken from from Cirrocumulus with substantial amount of changes to adpt to the needs of Toucan.