Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tumor_Gene_Target_Screener]: Windows Fix #887

Merged
merged 6 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
"outputs": [],
"source": [
"%%appyter code_exec\n",
"import os\n",
"import qnorm\n",
"import numpy as np\n",
"import pandas as pd\n",
Expand All @@ -295,7 +296,7 @@
"import sys\n",
"import contextlib\n",
"@contextlib.contextmanager\n",
"def suppress_output(stdout=True, stderr=True, dest='/dev/null'):\n",
"def suppress_output(stdout=True, stderr=True, dest=os.devnull):\n",
" ''' Usage:\n",
" with suppress_output():\n",
" print('hi')\n",
Expand Down Expand Up @@ -697,6 +698,7 @@
"%%appyter code_eval\n",
"\n",
"with suppress_output():\n",
" df_bg_expr_norm.columns = df_bg_expr_norm.columns.to_flat_index().map(lambda s: ', '.join(s))\n",
" dge = limma_voom_differential_expression(\n",
" df_bg_expr_norm, df_expr_norm,\n",
" voom_design=True,\n",
Expand Down Expand Up @@ -845,7 +847,7 @@
"outputs": [],
"source": [
"%%appyter code_exec\n",
"dge_final = dge[dge.score >= 1].sort_values(['score', 't'], ascending=False).iloc[:16]\n",
"dge_final = dge[dge.score >= 1].sort_values(['score', '-log(adj.P.Val)'], ascending=False).iloc[:16]\n",
"pd.set_option('display.max_colwidth', None)\n",
"dge_final['Link'] = dge_final['gene_symbol'].map(lambda g: f\"<a href=\\\"https://cfde-gene-pages.cloud/gene/{g}\\\">{g}</a>\")\n",
"{% if membrane_screener %}\n",
Expand Down
2 changes: 1 addition & 1 deletion appyters/Tumor_Gene_Target_Screener/appyter.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://raw.githubusercontent.com/MaayanLab/appyter-catalog/main/schema/appyter-validator.json",
"name": "Tumor_Gene_Target_Screener",
"title": "Tumor Gene Target Screener",
"version": "0.3.7",
"version": "0.3.9",
"description": "An appyter for gene target screening of tumors",
"authors": [
{
Expand Down
5 changes: 3 additions & 2 deletions appyters/Tumor_Gene_Target_Screener/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
appyter
maayanlab-bioinformatics @ git+https://github.com/Maayanlab/[email protected].5
maayanlab-bioinformatics @ git+https://github.com/Maayanlab/[email protected].9
matplotlib
matplotlib_venn
numpy
pandas
pandas==2.0
plotly
qnorm
rpy2
s3fs
scikit-learn
Loading