Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
439f6f8
Create preprocessing notebook and add code from totalVI tutorial
lordy5 Feb 7, 2025
6a23681
add new cellranger preprocessing tutorial notebook
lordy5 Feb 11, 2025
2157844
update totalVI tutorial
lordy5 Feb 11, 2025
e911df4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 11, 2025
f5dffaa
Merge branch 'main' into preprocess-tutorial
ori-kron-wis Feb 25, 2025
5bbbe36
Merge branch 'main' into preprocess-tutorial
ori-kron-wis Feb 25, 2025
4732a15
Merge branch 'main' into preprocess-tutorial
lordy5 Feb 25, 2025
2c81988
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 25, 2025
789d9f2
add draft of preprocessing tutorial
lordy5 Feb 25, 2025
8083d55
Merge branch 'preprocess-tutorial' of github.com:scverse/scvi-tutoria…
lordy5 Feb 25, 2025
a6aa37c
Merge branch 'main' into preprocess-tutorial
lordy5 Feb 28, 2025
9ffd8b7
Merge branch 'main' into preprocess-tutorial
lordy5 Mar 4, 2025
bb8a4d8
Merge branch 'main' into preprocess-tutorial
lordy5 Mar 5, 2025
e77ce2d
revise CITE-seq section to combine mudatas
lordy5 Mar 5, 2025
ff1f788
add better text descriptions
lordy5 Mar 6, 2025
ab911a2
Merge branch 'main' into preprocess-tutorial
lordy5 Mar 12, 2025
9e3f091
fix formatting
lordy5 Mar 13, 2025
49bb1bb
Merge branch 'main' into preprocess-tutorial
lordy5 Apr 25, 2025
6dc3a8a
add links to relevant tutorials
lordy5 May 11, 2025
fc50bfa
Merge branch 'main' into preprocess-tutorial
lordy5 May 11, 2025
e7b9666
add links to preprocessing tutorial
lordy5 May 15, 2025
ce8dec4
Merge branch 'main' into preprocess-tutorial
lordy5 May 15, 2025
3dfa96a
Merge branch 'main' into preprocess-tutorial
lordy5 May 24, 2025
fee87b5
Merge branch 'main' into preprocess-tutorial
lordy5 May 26, 2025
b3361f2
fix multivi preprocessing and dataset
lordy5 May 26, 2025
5f265d7
Merge branch 'main' into preprocess-tutorial
ori-kron-wis May 27, 2025
9446bec
Merge branch 'main' into preprocess-tutorial
lordy5 May 27, 2025
210135a
Merge branch 'preprocess-tutorial' of github.com:scverse/scvi-tutoria…
lordy5 May 27, 2025
d977758
fix totalVI notebook
lordy5 May 27, 2025
82e2e1f
updated tutos
ori-kron-wis May 28, 2025
4e573c4
updated tutos
ori-kron-wis May 28, 2025
0010950
updated tutos
ori-kron-wis May 28, 2025
3cc2511
updated tutos
ori-kron-wis May 28, 2025
02882a8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 28, 2025
779df8a
run atac/PeakVI.ipynb
ori-kron-wis May 28, 2025
b9dcd60
Merge branch 'preprocess-tutorial' of github.com:scverse/scvi-tutoria…
lordy5 May 29, 2025
e86e08b
move preprocessing tutorial to use_cases directory
lordy5 May 29, 2025
788dd06
update links to preprocessing tutorial in other tutorials
lordy5 May 29, 2025
52544ab
add references to relevant tutorials within the preprocessing tutorial
lordy5 May 29, 2025
ce809fc
Fix references to preprocessing tutorial
lordy5 May 29, 2025
1d7b1ec
comment out erroring code related to destvi-utils in destvi tutorial
lordy5 May 29, 2025
aed2561
remove comments in preprocessing tutorial
lordy5 May 29, 2025
b65492b
update totalvi, preprocessing tutorials
lordy5 Jun 2, 2025
860a807
run multimodal/totalVI.ipynb
lordy5 Jun 2, 2025
3000381
Merge pull request #447 from scverse/update-atac/PeakVI.ipynb
canergen Jun 18, 2025
681c9a8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 18, 2025
9585203
Merge pull request #448 from scverse/update-multimodal/totalVI.ipynb
canergen Jun 18, 2025
4151b49
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 18, 2025
ff5356e
Merge branch 'main' into preprocess-tutorial
lordy5 Jun 21, 2025
988202f
add destvi utils note and put dependent code in markdown blocks
lordy5 Jun 21, 2025
0ed12bf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 21, 2025
ecd5429
run spatial/DestVI_tutorial.ipynb
lordy5 Jun 21, 2025
3f64638
Merge branch 'main' into preprocess-tutorial
ori-kron-wis Jun 22, 2025
901a82d
modify multiome section of preprocessing tutorial
lordy5 Jun 26, 2025
c8e3ca9
run multimodal/MultiVI_tutorial.ipynb
lordy5 Jun 26, 2025
aed530f
run scrna/harmonization.ipynb
lordy5 Jun 26, 2025
290a81f
Merge branch 'preprocess-tutorial' into update-spatial/DestVI_tutoria…
ori-kron-wis Jun 26, 2025
e30becb
Merge branch 'main' into preprocess-tutorial
ori-kron-wis Jun 26, 2025
18d1829
Merge branch 'preprocess-tutorial' into update-spatial/DestVI_tutoria…
ori-kron-wis Jun 26, 2025
2a99f7b
Merge branch 'preprocess-tutorial' into update-multimodal/MultiVI_tut…
ori-kron-wis Jun 26, 2025
8e810f2
Merge branch 'preprocess-tutorial' into update-scrna/harmonization.ipynb
ori-kron-wis Jun 26, 2025
d7c15c9
Merge pull request #449 from scverse/update-scrna/harmonization.ipynb
ori-kron-wis Jun 26, 2025
a4ecc85
Merge branch 'preprocess-tutorial' into update-spatial/DestVI_tutoria…
ori-kron-wis Jun 26, 2025
41437f1
Merge pull request #451 from scverse/update-spatial/DestVI_tutorial.i…
ori-kron-wis Jun 26, 2025
faae8d4
Merge branch 'preprocess-tutorial' into update-multimodal/MultiVI_tut…
ori-kron-wis Jun 26, 2025
bd2c2b9
Merge pull request #441 from scverse/update-multimodal/MultiVI_tutori…
ori-kron-wis Jun 26, 2025
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
2,694 changes: 1,407 additions & 1,287 deletions atac/PeakVI.ipynb

Large diffs are not rendered by default.

123 changes: 66 additions & 57 deletions atac/PoissonVI.ipynb

Large diffs are not rendered by default.

2,232 changes: 734 additions & 1,498 deletions multimodal/MultiVI_tutorial.ipynb

Large diffs are not rendered by default.

2,996 changes: 1,228 additions & 1,768 deletions multimodal/totalVI.ipynb

Large diffs are not rendered by default.

185 changes: 155 additions & 30 deletions r/DestVI_in_R.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,23 @@
"## Loading and processing data with Seurat"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"```{note}\n",
"For general pre-processing for various datatypes used by scvi-tools models, see the [preprocessing tutorial](https://docs.scvi-tools.org/en/stable/tutorials/notebooks/use_cases/preprocessing.html#spatial-transcriptomics).\n",
"```"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [],
"source": [
"# install.packages(\"Seurat\")\n",
Expand All @@ -41,7 +54,11 @@
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -109,7 +126,11 @@
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [],
"source": [
"cortex_sc_data <- readRDS(url(\"https://www.dropbox.com/s/cuowvm4vrf65pvq/allen_cortex.rds?dl=1\"))"
Expand All @@ -119,7 +140,10 @@
"cell_type": "code",
"execution_count": 4,
"metadata": {
"tags": []
"tags": [],
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
Expand Down Expand Up @@ -235,7 +259,10 @@
"cell_type": "code",
"execution_count": 5,
"metadata": {
"tags": []
"tags": [],
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
Expand Down Expand Up @@ -332,7 +359,10 @@
"cell_type": "code",
"execution_count": 6,
"metadata": {
"tags": []
"tags": [],
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
Expand Down Expand Up @@ -3840,7 +3870,11 @@
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"data": {
Expand All @@ -3862,7 +3896,10 @@
"cell_type": "code",
"execution_count": 8,
"metadata": {
"tags": []
"tags": [],
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
Expand All @@ -3886,7 +3923,11 @@
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [],
"source": [
"cortex_sc_data <- NormalizeData(cortex_sc_data, normalization.method = \"LogNormalize\", scale.factor = 10000)\n",
Expand All @@ -3898,7 +3939,11 @@
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -3929,7 +3974,11 @@
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -3973,7 +4022,11 @@
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [],
"source": [
"library(reticulate)\n",
Expand All @@ -3994,7 +4047,11 @@
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [],
"source": [
"cortex_sc_adata <- convertFormat(cortex_sc_data, from=\"seurat\", to=\"anndata\", main_layer=\"counts\", drop_single_values=FALSE)\n",
Expand All @@ -4011,7 +4068,11 @@
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"data": {
Expand All @@ -4037,7 +4098,11 @@
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"data": {
Expand All @@ -4057,7 +4122,11 @@
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -4104,7 +4173,11 @@
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"data": {
Expand All @@ -4123,7 +4196,11 @@
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"data": {
Expand All @@ -4143,7 +4220,11 @@
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -4190,7 +4271,11 @@
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [],
"source": [
"cortex_st_adata$obsm[\"proportions\"] <- stlvm$get_proportions()"
Expand All @@ -4199,7 +4284,11 @@
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -4297,7 +4386,11 @@
{
"cell_type": "code",
"execution_count": 22,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [],
"source": [
"cortex_st_data[[\"predictions\"]] <- CreateAssayObject(data = t(py_to_r(cortex_st_adata$obsm$get(\"proportions\"))))"
Expand All @@ -4306,7 +4399,11 @@
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -4360,7 +4457,11 @@
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -4400,7 +4501,11 @@
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -4510,7 +4615,11 @@
{
"cell_type": "code",
"execution_count": 43,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [],
"source": [
"ct_name <- \"L6 IT\"\n",
Expand All @@ -4527,7 +4636,11 @@
{
"cell_type": "code",
"execution_count": 44,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [],
"source": [
"filtered_st_data <- cortex_st_data[, indices]\n",
Expand All @@ -4537,7 +4650,11 @@
{
"cell_type": "code",
"execution_count": 45,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -4578,7 +4695,11 @@
{
"cell_type": "code",
"execution_count": 46,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -4612,7 +4733,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"vscode": {
"languageId": "r"
}
},
"outputs": [],
"source": []
}
Expand Down
Loading