{
"cells": [
{
"cell_type": "markdown",
"id": "942bcec2",
"metadata": {},
"source": [
"# Applying `SPARK` to the ST datasets segmented by different methods"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "833e8ca8-b82a-46ca-9df1-3c7c0723dad8",
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"── \u001b[1mAttaching core tidyverse packages\u001b[22m ──────────────────────── tidyverse 2.0.0 ──\n",
"\u001b[32m✔\u001b[39m \u001b[34mdplyr \u001b[39m 1.1.4 \u001b[32m✔\u001b[39m \u001b[34mreadr \u001b[39m 2.1.5\n",
"\u001b[32m✔\u001b[39m \u001b[34mforcats \u001b[39m 1.0.0 \u001b[32m✔\u001b[39m \u001b[34mstringr \u001b[39m 1.5.1\n",
"\u001b[32m✔\u001b[39m \u001b[34mlubridate\u001b[39m 1.9.4 \u001b[32m✔\u001b[39m \u001b[34mtibble \u001b[39m 3.2.1\n",
"\u001b[32m✔\u001b[39m \u001b[34mpurrr \u001b[39m 1.0.4 \u001b[32m✔\u001b[39m \u001b[34mtidyr \u001b[39m 1.3.1\n",
"── \u001b[1mConflicts\u001b[22m ────────────────────────────────────────── tidyverse_conflicts() ──\n",
"\u001b[31m✖\u001b[39m \u001b[34mdplyr\u001b[39m::\u001b[32mfilter()\u001b[39m masks \u001b[34mstats\u001b[39m::filter()\n",
"\u001b[31m✖\u001b[39m \u001b[34mdplyr\u001b[39m::\u001b[32mlag()\u001b[39m masks \u001b[34mstats\u001b[39m::lag()\n",
"\u001b[36mℹ\u001b[39m Use the conflicted package (\u001b[3m\u001b[34m
| celltype | gene | pvalue_10x | minus_log10_pvalue_10x | pvalue_UCS | minus_log10_pvalue_UCS | |
|---|---|---|---|---|---|---|
| <chr> | <chr> | <dbl> | <dbl> | <dbl> | <dbl> | |
| 1 | B Cells | ACTA2 | 3.488987e-01 | 0.4573006 | 0.005374671 | 2.26964811 |
| 2 | B Cells | ACTG2 | 9.802785e-05 | 4.0086505 | 0.003115137 | 2.50652282 |
| 3 | B Cells | ADAM9 | 1.921063e-01 | 0.7164585 | 0.961432818 | 0.01708106 |
| 4 | B Cells | ADGRE5 | 1.607047e-01 | 0.7939714 | 0.156413878 | 0.80572472 |
| 5 | B Cells | AIF1 | 6.393287e-01 | 0.1942758 | 0.101539719 | 0.99336404 |
| 6 | B Cells | ANKRD28 | 7.604660e-01 | 0.1189202 | 0.087858510 | 1.05621617 |