Skip to content

Commit 49a5bdf

Browse files
committed
update scsv_worm_DE with change mode
1 parent 7b272a2 commit 49a5bdf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scrna/scVI_DE_worm.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@
14381438
}
14391439
],
14401440
"source": [
1441-
"de_change = model.differential_expression(idx1=cell_idx1, idx2=cell_idx2)\n",
1441+
"de_change = model.differential_expression(idx1=cell_idx1, idx2=cell_idx2, mode=\"change\")\n",
14421442
"de_change"
14431443
]
14441444
},
@@ -1785,6 +1785,7 @@
17851785
" idx2=cell_idx2,\n",
17861786
" weights=\"uniform\",\n",
17871787
" batch_correction=True,\n",
1788+
" mode=\"change\",\n",
17881789
")\n",
17891790
"\n",
17901791
"# manipulate the DE results for plotting\n",
@@ -1840,6 +1841,7 @@
18401841
" weights=\"importance\",\n",
18411842
" filter_outlier_cells=True,\n",
18421843
" batch_correction=True,\n",
1844+
" mode=\"change\",\n",
18431845
")\n",
18441846
"\n",
18451847
"# manipulate the DE results for plotting\n",
@@ -1951,7 +1953,7 @@
19511953
"source": [
19521954
"# here we do a 1-vs-all DE test, which compares each cell type with all others\n",
19531955
"# this returns the concatenation of all 1vsall results, contained in a DataFrame\n",
1954-
"change_per_cluster_de = model.differential_expression(groupby=\"cell_type\")"
1956+
"change_per_cluster_de = model.differential_expression(groupby=\"cell_type\", mode=\"change\")"
19551957
]
19561958
},
19571959
{

0 commit comments

Comments
 (0)