Spaces:
Sleeping
Sleeping
fixed JASPAR umaps
Browse files- app.py +1 -1
- plotting.py +2 -0
app.py
CHANGED
|
@@ -738,7 +738,7 @@ with ui.nav_panel("scanpy Results"):
|
|
| 738 |
subset_choices = { "RNA_Hallmark" : ["None", 'PROTEIN_SECRETION', 'MYC_TARGETS_V1', 'ESTROGEN_RESPONSE_EARLY', 'ANDROGEN_RESPONSE', 'E2F_TARGETS', 'ESTROGEN_RESPONSE_LATE', 'REACTIVE_OXYGEN_SPECIES_PATHWAY', 'hallmark_HALLMARK_APICAL_SURFACE'],
|
| 739 |
"ATAC_Hallmark" : ["None", "Estrogen Response Early", "Estrogen Response Late", "Hedgehog Signaling", "Notch Signaling", "Coagulation", "Androgen Response"],
|
| 740 |
"ATAC_Cistrome" : ["None", 'MED12 41516'] if user_choice_dataset == 'MCF7' else ["None", 'NR3C1 68849'],
|
| 741 |
-
"ATAC_JASPAR" : ["None", '
|
| 742 |
|
| 743 |
ui.update_select("group_selection",
|
| 744 |
label = "Group Subset",
|
|
|
|
| 738 |
subset_choices = { "RNA_Hallmark" : ["None", 'PROTEIN_SECRETION', 'MYC_TARGETS_V1', 'ESTROGEN_RESPONSE_EARLY', 'ANDROGEN_RESPONSE', 'E2F_TARGETS', 'ESTROGEN_RESPONSE_LATE', 'REACTIVE_OXYGEN_SPECIES_PATHWAY', 'hallmark_HALLMARK_APICAL_SURFACE'],
|
| 739 |
"ATAC_Hallmark" : ["None", "Estrogen Response Early", "Estrogen Response Late", "Hedgehog Signaling", "Notch Signaling", "Coagulation", "Androgen Response"],
|
| 740 |
"ATAC_Cistrome" : ["None", 'MED12 41516'] if user_choice_dataset == 'MCF7' else ["None", 'NR3C1 68849'],
|
| 741 |
+
"ATAC_JASPAR" : ["None", 'POU2F3 - MA0627.3', 'ESR1 - MA0112.4', 'OTX2 - MA0712.3']}
|
| 742 |
|
| 743 |
ui.update_select("group_selection",
|
| 744 |
label = "Group Subset",
|
plotting.py
CHANGED
|
@@ -199,6 +199,8 @@ def plot_umap(umap_dict, modality, dataset, grouping, label, subset):
|
|
| 199 |
subset_features = "Most Variable Features"
|
| 200 |
elif grouping == 'Hallmark':
|
| 201 |
subset_features = grouping.lower() + '_HALLMARK_' + subset.replace(" ", "_").upper()
|
|
|
|
|
|
|
| 202 |
else:
|
| 203 |
subset_features = grouping.lower() + "_" + subset.replace(" ", "_")
|
| 204 |
|
|
|
|
| 199 |
subset_features = "Most Variable Features"
|
| 200 |
elif grouping == 'Hallmark':
|
| 201 |
subset_features = grouping.lower() + '_HALLMARK_' + subset.replace(" ", "_").upper()
|
| 202 |
+
elif grouping == 'JASPAR':
|
| 203 |
+
subset_features = 'motifs_' + subset
|
| 204 |
else:
|
| 205 |
subset_features = grouping.lower() + "_" + subset.replace(" ", "_")
|
| 206 |
|