Spaces:
Build error
Build error
update chart
Browse files
app.py
CHANGED
|
@@ -17,9 +17,8 @@ novel proteins involved in DNA damage repair
|
|
| 17 |
* Code available at https://github.com/maomlab/CalCEN/tree/master/vignettes/CryptoCEN
|
| 18 |
* Full network and dataset: https://huggingface.co/datasets/maomlab/CryptoCEN
|
| 19 |
|
| 20 |
-
##
|
| 21 |
-
Put in the ``CNAG_#####`` gene_id for
|
| 22 |
-
``coexp_score`` ranges between ``[0-1]``, where ``1`` is the best and greater than ``0.85`` can be considered significant.
|
| 23 |
""")
|
| 24 |
|
| 25 |
estimated_expression = datasets.load_dataset(
|
|
@@ -48,11 +47,11 @@ with col2:
|
|
| 48 |
help = "CNAG Gene ID e.g. CNAG_04222")
|
| 49 |
|
| 50 |
chart_data = pd.DataFrame({
|
| 51 |
-
"expression_1": estimated_expression[estimated_expression.index == gene_id_1,],
|
| 52 |
-
"expression_2": estimated_expression[estimated_expression.index == gene_id_2,],
|
| 53 |
"run_accession": estimated_expression.columns,
|
| 54 |
"run_accession_meta": estimated_expression_meta["run_accession"],
|
| 55 |
-
"study_accession": estimated_expression_meta["study_accession"])
|
| 56 |
|
| 57 |
print(f"run_ids are equal: {sum(chart_data["run_accession"] == chart_data["run_accession_meta"])}")
|
| 58 |
|
|
|
|
| 17 |
* Code available at https://github.com/maomlab/CalCEN/tree/master/vignettes/CryptoCEN
|
| 18 |
* Full network and dataset: https://huggingface.co/datasets/maomlab/CryptoCEN
|
| 19 |
|
| 20 |
+
## Plot scatter plot expression for a pair of genes across studies.
|
| 21 |
+
Put in the ``CNAG_#####`` gene_id for two genes.
|
|
|
|
| 22 |
""")
|
| 23 |
|
| 24 |
estimated_expression = datasets.load_dataset(
|
|
|
|
| 47 |
help = "CNAG Gene ID e.g. CNAG_04222")
|
| 48 |
|
| 49 |
chart_data = pd.DataFrame({
|
| 50 |
+
"expression_1": np.log10(estimated_expression[estimated_expression.index == gene_id_1,] + 1),
|
| 51 |
+
"expression_2": np.log10(estimated_expression[estimated_expression.index == gene_id_2,] + 1),
|
| 52 |
"run_accession": estimated_expression.columns,
|
| 53 |
"run_accession_meta": estimated_expression_meta["run_accession"],
|
| 54 |
+
"study_accession": estimated_expression_meta["study_accession"]})
|
| 55 |
|
| 56 |
print(f"run_ids are equal: {sum(chart_data["run_accession"] == chart_data["run_accession_meta"])}")
|
| 57 |
|