Skip to content
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
4 changes: 2 additions & 2 deletions augur.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"metadata": {},
"outputs": [],
"source": [
"adata = pt.dt.sc_sim_augur()\n",
"adata = pt.ds.sc_sim_augur()\n",
"\n",
"ag_rfc = pt.tl.Augur(\"random_forest_classifier\")\n",
"loaded_data = ag_rfc.load(adata)"
Expand Down Expand Up @@ -388,7 +388,7 @@
},
"outputs": [],
"source": [
"bhattacherjee_adata = pt.dt.bhattacherjee()\n",
"bhattacherjee_adata = pt.ds.bhattacherjee()\n",
"ag_rfc = pt.tl.Augur(\"random_forest_classifier\")"
]
},
Expand Down
4 changes: 2 additions & 2 deletions cinemaot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
},
"outputs": [],
"source": [
"adata = pt.dt.cinemaot_example()"
"adata = pt.ds.cinemaot_example()"
]
},
{
Expand Down Expand Up @@ -536,7 +536,7 @@
}
],
"source": [
"adata_extended = pt.dt.dong_2023()"
"adata_extended = pt.ds.dong_2023()"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion dialogue.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
}
],
"source": [
"adata = pt.dt.dialogue_example()\n",
"adata = pt.ds.dialogue_example()\n",
"adata"
]
},
Expand Down
2 changes: 1 addition & 1 deletion differential_gene_expression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
},
"outputs": [],
"source": [
"adata = pt.dt.zhang_2021()"
"adata = pt.ds.zhang_2021()"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions distance_tests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"source": [
"Here we use an example dataset, which is a subsetted and already preprocessed\n",
"version of data from the original Perturb-seq paper (Dixit et al., 2016). The full dataset can be accessed using \n",
"`pt.dt.dixit_2016()`.\n",
"`pt.ds.dixit_2016()`.\n",
"\n",
"__Note__ that most distances are computed in PCA space to avoid the curse of dimensionality or to speed up computation.\n",
"When using your own dataset __run__ `scanpy.pp.pca` __first__, prior to using the distance methods. \n",
Expand All @@ -60,7 +60,7 @@
"metadata": {},
"outputs": [],
"source": [
"adata = pt.dt.distance_example()\n",
"adata = pt.ds.distance_example()\n",
"obs_key = \"perturbation\" # defines groups to test\n",
"contrast = \"control\""
]
Expand Down
4 changes: 2 additions & 2 deletions distances.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"metadata": {},
"source": [
"Here, we use an example dataset, which is a subset and already preprocessed version of data from the original Perturb-seq paper ([Dixit et al., 2016](https://www.sciencedirect.com/science/article/pii/S0092867416316105?via%3Dihub)).\n",
"The full dataset can be accessed using `pt.dt.dixit_2016()`.\n",
"The full dataset can be accessed using `pt.ds.dixit_2016()`.\n",
"\n",
"__Note__ that most distances are computed in PCA space to avoid the curse of dimensionality or to speed up computation.\n",
"When using your own dataset __run__ `scanpy.pp.pca` __first__, prior to using the distance methods. \n",
Expand All @@ -78,7 +78,7 @@
},
"outputs": [],
"source": [
"adata = pt.dt.distance_example()\n",
"adata = pt.ds.distance_example()\n",
"obs_key = \"perturbation\" # defines groups to test"
]
},
Expand Down
2 changes: 1 addition & 1 deletion guide_rna_assignment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@
}
],
"source": [
"mdata = pt.dt.papalexi_2021()\n",
"mdata = pt.ds.papalexi_2021()\n",
"# seems like an error in the original data\n",
"mdata.mod[\"gdo\"].X = scipy.sparse.csr_matrix(mdata.mod[\"gdo\"].X.toarray() - 1)\n",
"mdata.push_obs(columns=[\"gdo:guide_ID\"], mods=\"gdo\")\n",
Expand Down
2 changes: 1 addition & 1 deletion mcfarland_use_case.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
}
],
"source": [
"adata = pt.dt.mcfarland_2020()\n",
"adata = pt.ds.mcfarland_2020()\n",
"adata"
]
},
Expand Down
2 changes: 1 addition & 1 deletion metadata_annotation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"metadata": {},
"outputs": [],
"source": [
"adata = pt.dt.mcfarland_2020()"
"adata = pt.ds.mcfarland_2020()"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions milo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
},
"outputs": [],
"source": [
"adata = pt.dt.stephenson_2021_subsampled()"
"adata = pt.ds.stephenson_2021_subsampled()"
]
},
{
Expand Down Expand Up @@ -2284,7 +2284,7 @@
"outputs": [],
"source": [
"# Load a dataset with raw counts and prepare the Milo object\n",
"adata_de = pt.dt.kang_2018()\n",
"adata_de = pt.ds.kang_2018()\n",
"sc.pp.subsample(adata_de, n_obs=10000, random_state=0) # subsample for a fast demo\n",
"adata_de.layers[\"counts\"] = adata_de.X.copy()\n",
"adata_de.obs[\"sample\"] = adata_de.obs[\"replicate\"].astype(str) + \"_\" + adata_de.obs[\"label\"].astype(str)\n",
Expand Down
2 changes: 1 addition & 1 deletion norman_use_case.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
}
],
"source": [
"adata = pt.dt.norman_2019()\n",
"adata = pt.ds.norman_2019()\n",
"adata"
]
},
Expand Down
2 changes: 1 addition & 1 deletion perturbation_efficacy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
}
],
"source": [
"mdata = pt.dt.papalexi_2021()\n",
"mdata = pt.ds.papalexi_2021()\n",
"gene_target_data = mdata.obs[\"gene_target\"].copy()\n",
"mdata.push_obs(columns=[\"replicate\", \"phase\", \"perturbation\", \"NT\"], mods=[\"rna\"])\n",
"mdata[\"rna\"].obs[\"gene_target\"] = gene_target_data\n",
Expand Down
4 changes: 2 additions & 2 deletions perturbation_space.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
}
],
"source": [
"adata = pt.dt.norman_2019()\n",
"adata = pt.ds.norman_2019()\n",
"adata"
]
},
Expand Down Expand Up @@ -2688,7 +2688,7 @@
}
],
"source": [
"sciplex = pt.dt.srivatsan_2020_sciplex2()\n",
"sciplex = pt.ds.srivatsan_2020_sciplex2()\n",
"sc.pp.normalize_total(sciplex, target_sum=1e4)\n",
"sc.pp.log1p(sciplex)\n",
"sc.pp.pca(sciplex)\n",
Expand Down
2 changes: 1 addition & 1 deletion sccoda.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
}
],
"source": [
"haber_cells = pt.dt.haber_2017_regions()\n",
"haber_cells = pt.ds.haber_2017_regions()\n",
"haber_cells.obs"
]
},
Expand Down
2 changes: 1 addition & 1 deletion sccoda_extended.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
}
],
"source": [
"haber_cells = pt.dt.haber_2017_regions()\n",
"haber_cells = pt.ds.haber_2017_regions()\n",
"\n",
"# Convert data to mudata object\n",
"sccoda_model = pt.tl.Sccoda()\n",
Expand Down
2 changes: 1 addition & 1 deletion sccoda_tasccoda_case_study.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
}
],
"source": [
"haber_cells = pt.dt.haber_2017_regions()\n",
"haber_cells = pt.ds.haber_2017_regions()\n",
"\n",
"sccoda_model = pt.tl.Sccoda()\n",
"sccoda_data = sccoda_model.load(\n",
Expand Down
2 changes: 1 addition & 1 deletion scgen_perturbation_prediction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
},
"outputs": [],
"source": [
"train = pt.dt.kang_2018()"
"train = pt.ds.kang_2018()"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tasccoda.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
}
],
"source": [
"smillie_counts = pt.dt.smillie_2019()\n",
"smillie_counts = pt.ds.smillie_2019()\n",
"smillie_counts.obs"
]
},
Expand Down
2 changes: 1 addition & 1 deletion zhang_use_case.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}
],
"source": [
"adata = pt.dt.zhang_2021()\n",
"adata = pt.ds.zhang_2021()\n",
"adata"
]
},
Expand Down