This project refers to Cirrocumulus and was developed to be used under serverless.
This project was bootstrapped with Next.js.
This project can represent spatial trancriptome dataset under serverless, so prepare the dataset(s) in jsonl format using h5ad format data and run this project.
git clone https://github.com/Chunfu-Shawn/Spatial-Trans-Visual-Tool.git
cd Spatial-Trans-Visual-Tool
yarn install
you can use Cirrocumulus to process .h5ad data to .jsonl data.\
pip install cirrocumulus
cirro prepare_data pbmc3k.h5ad --format jsonl
[
{
"id": "pbmc3k",
"name": "pbmc3k",
"url": "pbmc3k/pbmc3k.jsonl"
}
]
mv pbmc3k public
Runs the app in the development mode.
yarn run dev
Open http://localhost:3000 to view it in your browser. The page will reload when you make changes.
You may also see any lint errors in the console.
Attributions | Type | Default | Description |
---|---|---|---|
dataset | JSON | null | dataset users want to view |
Example:
dataset = {
"id": "adata_a2p2",
"name": "adata_a2p2",
"url": "/datasets/GSM5833739_10x_Visium_deal/GSM5833739_10x_Visium_deal.jsonl"
} // the url means loads dataset from localhost:3000
<VisualTool dataset={dataset}/>
Attributions | Type | Default | Description |
---|---|---|---|
setCustom | true/false | false | custom size or adaptive size |
drawerOpen | true/false | true | whether to open SideBar in default |
width | "number" | 1100 | the width of this module |
height | "number" | 800 | the max height of this module |
chartSize | "number" | 300 | the height and width of this gallary images |
Example:
<VisualTool setCustom={true} drawerOpen={false}
width={1200} height={1000}
chartSize={220} dataset={dataset}/>