minwoosun commited on
Commit
eeaad1a
1 Parent(s): d020207

test markdown

Browse files
Files changed (1) hide show
  1. app.py +36 -9
app.py CHANGED
@@ -128,6 +128,7 @@ def main(input_file_path, species):
128
 
129
  if __name__ == "__main__":
130
 
 
131
  css = """
132
  body {background-color: black; color: white;}
133
  .gradio-container {background-color: black; color: white;}
@@ -136,14 +137,40 @@ if __name__ == "__main__":
136
 
137
  with gr.Blocks(css=css) as demo:
138
  gr.Markdown(
139
- """
140
- ### UCE 100M Demo
141
-
142
- **Instructions:**
143
- 1. Upload a `.h5ad` single cell gene expression file.
144
- 2. Select the species (Human/Mouse).
145
- 3. View the UMAP scatter plot and download the UMAP embeddings.
146
- """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  )
148
 
149
  # Define Gradio inputs and outputs
@@ -159,4 +186,4 @@ if __name__ == "__main__":
159
  outputs=[image_output, file_output]
160
  )
161
 
162
- demo.launch()
 
128
 
129
  if __name__ == "__main__":
130
 
131
+
132
  css = """
133
  body {background-color: black; color: white;}
134
  .gradio-container {background-color: black; color: white;}
 
137
 
138
  with gr.Blocks(css=css) as demo:
139
  gr.Markdown(
140
+ '''
141
+ <div style="text-align:center; margin-bottom:20px; color: white;">
142
+ <span style="font-size:3em; font-weight:bold;">UCE 100M Demo</span>
143
+ </div>
144
+ <div style="text-align:center; margin-bottom:10px; color: white;">
145
+ <span style="font-size:1.5em; font-weight:bold;">Universal Cell Embeddings: Explore Single Cell Data</span>
146
+ </div>
147
+ <div style="text-align:center; margin-bottom:20px;">
148
+ <a href="https://github.com/minwoosun/UCE">
149
+ <img src="https://badges.aleen42.com/src/github.svg" alt="GitHub" style="display:inline-block; margin-right:10px;">
150
+ </a>
151
+ <a href="https://arxiv.org/abs/2408.03322">
152
+ <img src="https://img.shields.io/badge/arXiv-2408.03322-green?style=plastic" alt="Paper" style="display:inline-block; margin-right:10px;">
153
+ </a>
154
+ </div>
155
+ <div style="text-align:left; margin-bottom:20px; color: white;">
156
+ Upload a `.h5ad` single cell gene expression file and select the species (Human/Mouse).
157
+ The demo will generate UMAP projections of the embeddings and allow you to download the embeddings for further analysis.
158
+ </div>
159
+ <div style="margin-bottom:20px; color: white;">
160
+ <ol style="list-style:none; padding-left:0;">
161
+ <li>1. Upload your `.h5ad` file</li>
162
+ <li>2. Select the species</li>
163
+ <li>3. View the UMAP scatter plot</li>
164
+ <li>4. Download the UMAP coordinates</li>
165
+ </ol>
166
+ </div>
167
+ <div style="text-align:left; line-height:1.8; color: white;">
168
+ Please consider citing the following paper if you use this tool in your research:
169
+ </div>
170
+ <div style="text-align:left; line-height:1.8; color: white;">
171
+ Sun, M., et al. Universal Cell Embeddings: A tool for single-cell analysis. arXiv:2408.03322 (2024)
172
+ </div>
173
+ '''
174
  )
175
 
176
  # Define Gradio inputs and outputs
 
186
  outputs=[image_output, file_output]
187
  )
188
 
189
+ demo.launch()