Skip to content

Commit

Permalink
Update gssnng_quick_start.ipynb
Browse files Browse the repository at this point in the history
removed drop statements
  • Loading branch information
Gibbsdavidl authored Aug 8, 2023
1 parent 7fedd85 commit bca4c17
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions notebooks/gssnng_quick_start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@
"### RANK BIASED OVERLAP ###\n",
"### https://dl.acm.org/doi/10.1145/1852102.1852106\n",
"\n",
"# del the previous scores\n",
"q.obs.drop(gene_set_names, axis=1, inplace=True)\n",
"q.obs.drop('gssnng_groupby', axis=1, inplace=True)\n",
"\n",
"# rescore\n",
"score_cells.with_gene_sets(\n",
" adata=q,\n",
Expand Down Expand Up @@ -188,10 +184,6 @@
"### MEAN Z SCORES COUNTS ###\n",
"### average of gene-wise Z scores\n",
"\n",
"# del the previous scores\n",
"q.obs.drop(gene_set_names, axis=1, inplace=True)\n",
"q.obs.drop('gssnng_groupby', axis=1, inplace=True)\n",
"\n",
"# rescore\n",
"score_cells.with_gene_sets(\n",
" adata=q,\n",
Expand Down Expand Up @@ -229,10 +221,6 @@
"source": [
"### MEDIAN RANKS ###\n",
"\n",
"# del the previous scores\n",
"q.obs.drop(gene_set_names, axis=1, inplace=True)\n",
"q.obs.drop('gssnng_groupby', axis=1, inplace=True)\n",
"\n",
"# rescore\n",
"score_cells.with_gene_sets(\n",
" adata=q,\n",
Expand Down Expand Up @@ -270,10 +258,6 @@
"source": [
"# ROBUST STANDARDIZED COUNTS\n",
"\n",
"# del the previous scores\n",
"q.obs.drop(gene_set_names, axis=1, inplace=True)\n",
"q.obs.drop('gssnng_groupby', axis=1, inplace=True)\n",
"\n",
"# rescore\n",
"score_cells.with_gene_sets(\n",
" adata=q,\n",
Expand Down Expand Up @@ -311,10 +295,6 @@
"source": [
"### AVERAGE COUNTS ###\n",
"\n",
"# del the previous scores\n",
"q.obs.drop(gene_set_names, axis=1, inplace=True)\n",
"q.obs.drop('gssnng_groupby', axis=1, inplace=True)\n",
"\n",
"score_cells.with_gene_sets(\n",
" adata=q,\n",
" gene_set_file=gene_set_file,\n",
Expand Down Expand Up @@ -351,10 +331,6 @@
"source": [
"### SUMMED UP ###\n",
"\n",
"# del the previous scores\n",
"q.obs.drop(gene_set_names, axis=1, inplace=True)\n",
"q.obs.drop('gssnng_groupby', axis=1, inplace=True)\n",
"\n",
"# rescore\n",
"score_cells.with_gene_sets(\n",
" adata=q,\n",
Expand Down Expand Up @@ -390,10 +366,7 @@
},
"outputs": [],
"source": [
"### experimental!! ###\n",
"\n",
"q.obs.drop(gene_set_names, axis=1, inplace=True)\n",
"q.obs.drop('gssnng_groupby', axis=1, inplace=True)\n",
"Scoring with ssGSEA\n",
"\n",
"# rescore\n",
"score_cells.with_gene_sets(\n",
Expand Down

0 comments on commit bca4c17

Please sign in to comment.