osakemon commited on
Commit
5c94492
·
verified ·
1 Parent(s): 901e48b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +68 -0
README.md CHANGED
@@ -1,3 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: bsd-3-clause
3
  ---
 
1
+ # Loki
2
+ Building on OmiCLIP, a visual–omics foundation model designed to bridge omics data and hematoxylin and eosin (H&E) images, we developed the **Loki** platform, which has five key functions: tissue alignment using ST or H&E images, cell type decomposition of ST or H&E images using scRNA-seq as a reference, tissue annotation of ST or H&E images based on bulk RNA-seq or marker genes, ST gene expression prediction from H&E images, and histology image–transcriptomics retrieval.
3
+
4
+ This README provides a quick overview of how to set up and use Loki.
5
+
6
+ The pre-train weights, source code, and ST-bank database will be released on GitHub and Hugging Face after the manuscript is accepted.
7
+
8
+
9
+ ## User Manual and Notebooks
10
+ You can view the Loki website and notebooks locally by dobule clicking the `./website/index.html` file. It should show up in your default browser.
11
+
12
+
13
+
14
+ ## Source Code
15
+ All source code for Loki is contained in the `./src/loki` directory.
16
+
17
+ The source code will be released in GitHub and Hugging Face after the manuscript is accepted
18
+
19
+
20
+
21
+ ## Installation (It takes about 5 mins to finish the installation on MacBook Pro)
22
+
23
+ 1. **Create a Conda environment**:
24
+ ```bash
25
+ conda create -n loki_env python=3.9
26
+ conda activate loki_env
27
+ ```
28
+
29
+ 2. **Navigate to the Loki source directory and install Loki**:
30
+ ```bash
31
+ cd ./src
32
+ pip install .
33
+ ```
34
+
35
+
36
+ ## Usage
37
+ Once Loki is installed, you can import it in your Python scripts or notebooks:
38
+ ```python
39
+ import loki.preprocess
40
+ import loki.utils
41
+ import loki.plot
42
+
43
+ import loki.align
44
+ import loki.annotate
45
+ import loki.decompose
46
+ import loki.retrieve
47
+ import loki.predex
48
+ ```
49
+
50
+
51
+
52
+ ## STbank
53
+ The ST-bank database are avaliable from [Google Drive link](https://drive.google.com/drive/folders/1J15cO-pXTwkTjRAR-v-_nQkqXNfcCNn3?usp=sharing).
54
+
55
+ The links_to_raw_data.xlsx file includes the source paper names, doi links, and download links of the raw data.
56
+ The text.csv file includes the gene sentences with paired image patches.
57
+ The image.tar.gz includes the image patches.
58
+
59
+ The ST-bank database will be released in GitHub and Hugging Face after the manuscript is accepted.
60
+
61
+
62
+ ## Pretrained weights
63
+ The pretrained weights are avaliable from [Google Drive link](https://drive.google.com/file/d/1UTJKAqoiUT55h9sA1Ee8iJeOclNLBvWD/view?usp=sharing).
64
+
65
+ The pretrained weights will be released in GitHub and Hugging Face after the manuscript is accepted.
66
+
67
+
68
+
69
  ---
70
  license: bsd-3-clause
71
  ---