Spaces:
Sleeping
Sleeping
use a merge with estimated_expression_meta
Browse files
app.py
CHANGED
@@ -70,12 +70,10 @@ except:
|
|
70 |
chart_data = pd.DataFrame({
|
71 |
"expression_1": np.log10(estimated_expression.loc[h99_transcript_annotations["gene_id"] == gene_id_1].to_numpy()[0] + 1),
|
72 |
"expression_2": np.log10(estimated_expression.loc[h99_transcript_annotations["gene_id"] == gene_id_2].to_numpy()[0] + 1),
|
73 |
-
"run_accession": estimated_expression.columns
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
# DEBUG
|
78 |
-
print(f"run_ids are equal: {sum(chart_data['run_accession'] == chart_data['run_accession_meta'])}")
|
79 |
|
80 |
chart = (
|
81 |
alt.Chart(chart_data)
|
|
|
70 |
chart_data = pd.DataFrame({
|
71 |
"expression_1": np.log10(estimated_expression.loc[h99_transcript_annotations["gene_id"] == gene_id_1].to_numpy()[0] + 1),
|
72 |
"expression_2": np.log10(estimated_expression.loc[h99_transcript_annotations["gene_id"] == gene_id_2].to_numpy()[0] + 1),
|
73 |
+
"run_accession": estimated_expression.columns})
|
74 |
+
chart_data.merge(
|
75 |
+
right = estimated_expression_meta,
|
76 |
+
on = "run_accession")
|
|
|
|
|
77 |
|
78 |
chart = (
|
79 |
alt.Chart(chart_data)
|