Spaces:
Sleeping
Sleeping
sachin1801 commited on
Commit ·
48aa332
1
Parent(s): fc0e745
dana's viz changes
Browse files
docs/commands/run.md
CHANGED
|
@@ -3,5 +3,5 @@
|
|
| 3 |
- USE VENV310 TO GET THE RIGHT DEPENDENCIES
|
| 4 |
|
| 5 |
```
|
| 6 |
-
python -m uvicorn webapp.app.main:app --port
|
| 7 |
```
|
|
|
|
| 3 |
- USE VENV310 TO GET THE RIGHT DEPENDENCIES
|
| 4 |
|
| 5 |
```
|
| 6 |
+
python -m uvicorn webapp.app.main:app --port 7860
|
| 7 |
```
|
webapp/app/shiny_apps/heatmap_app.py
CHANGED
|
@@ -424,7 +424,7 @@ def create_app(api_base_url: str = "http://localhost:8000"):
|
|
| 424 |
)
|
| 425 |
|
| 426 |
# Highlight exon region
|
| 427 |
-
fig.add_vrect(x0=start-0.5, x1=end-0.5, fillcolor="#d0d0d0", line_width=0, opacity=0.
|
| 428 |
|
| 429 |
# Add filter icons to the left of y-axis labels
|
| 430 |
fig.update_layout(images=[])
|
|
@@ -448,7 +448,7 @@ def create_app(api_base_url: str = "http://localhost:8000"):
|
|
| 448 |
)
|
| 449 |
|
| 450 |
fig.update_layout(
|
| 451 |
-
height=max(
|
| 452 |
width=1050,
|
| 453 |
margin=dict(l=130, r=20, t=80, b=30),
|
| 454 |
xaxis=dict(
|
|
|
|
| 424 |
)
|
| 425 |
|
| 426 |
# Highlight exon region
|
| 427 |
+
fig.add_vrect(x0=start-0.5, x1=end-0.5, fillcolor="#d0d0d0", line_width=0, opacity=0.1)
|
| 428 |
|
| 429 |
# Add filter icons to the left of y-axis labels
|
| 430 |
fig.update_layout(images=[])
|
|
|
|
| 448 |
)
|
| 449 |
|
| 450 |
fig.update_layout(
|
| 451 |
+
height=max(650, 18 * len(filters_rev) + 180),
|
| 452 |
width=1050,
|
| 453 |
margin=dict(l=130, r=20, t=80, b=30),
|
| 454 |
xaxis=dict(
|
webapp/app/shiny_apps/silhouette_app.py
CHANGED
|
@@ -397,6 +397,8 @@ def create_app(api_base_url: str = "http://localhost:8000"):
|
|
| 397 |
|
| 398 |
ax.set_xticks(x)
|
| 399 |
ax.set_xticklabels(bases, fontsize=7)
|
|
|
|
|
|
|
| 400 |
|
| 401 |
# Add secondary structure on second x-axis
|
| 402 |
ax2 = ax.twiny()
|
|
@@ -420,8 +422,8 @@ def create_app(api_base_url: str = "http://localhost:8000"):
|
|
| 420 |
ax.set_yticklabels([str(abs(t)) for t in ticks])
|
| 421 |
|
| 422 |
ax.set_title("Silhouette View - Position-wise Filter Contributions")
|
| 423 |
-
ax.set_ylabel("Strength")
|
| 424 |
-
ax.legend(loc='upper right')
|
| 425 |
|
| 426 |
plt.tight_layout()
|
| 427 |
|
|
|
|
| 397 |
|
| 398 |
ax.set_xticks(x)
|
| 399 |
ax.set_xticklabels(bases, fontsize=7)
|
| 400 |
+
ax.spines['top'].set_visible(False)
|
| 401 |
+
ax.spines['right'].set_visible(False)
|
| 402 |
|
| 403 |
# Add secondary structure on second x-axis
|
| 404 |
ax2 = ax.twiny()
|
|
|
|
| 422 |
ax.set_yticklabels([str(abs(t)) for t in ticks])
|
| 423 |
|
| 424 |
ax.set_title("Silhouette View - Position-wise Filter Contributions")
|
| 425 |
+
ax.set_ylabel("Strength (a.u.)")
|
| 426 |
+
ax.legend(loc='upper right', frameon=False)
|
| 427 |
|
| 428 |
plt.tight_layout()
|
| 429 |
|