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
14 changes: 12 additions & 2 deletions docs/tutorials/preprocessing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@
"In the next step, we normalize the data. By default, normalization is an inplace operation, i.e. we only create a new anndata object, if we set the argument `inplace=False`. We demonstrate three different normalization methods that are build in `pytometry`:\n",
"* arcsinh \n",
"* logicle \n",
"* bi-exponential"
"* bi-exponential\n",
"* auto-logicle"
]
},
{
Expand Down Expand Up @@ -216,6 +217,15 @@
"source": [
"adata_biex = pm.tl.normalize_biExp(adata, inplace=False)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"adata_autologicle = pm.tl.normalize_autologicle(adata, inplace=False)"
]
}
],
"metadata": {
Expand All @@ -234,7 +244,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.9.19"
},
"vscode": {
"interpreter": {
Expand Down
22 changes: 20 additions & 2 deletions docs/tutorials/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"source": [
"import pytometry as pm\n",
"import readfcs\n",
"import anndata"
"import anndata\n",
"from matplotlib import rcParams"
]
},
{
Expand Down Expand Up @@ -114,7 +115,16 @@
"metadata": {},
"outputs": [],
"source": [
"pm.pl.scatter_density(adata, x_lim=[-1, 2.7e5])"
"rcParams[\"figure.figsize\"] = (6, 5)\n",
"pm.pl.scatter_density(adata, x_lim=[-5e3, 2e5], y_lim=[-5e3, 2e5])"
]
},
{
"cell_type": "markdown",
"id": "29e11870",
"metadata": {},
"source": [
"Compensate with the compensation matrix that is deposited in the FCS file. The `compensate` function also accepts a custom compensation matrix. "
]
},
{
Expand All @@ -127,6 +137,14 @@
"pm.pp.compensate(adata)"
]
},
{
"cell_type": "markdown",
"id": "2200fd8d",
"metadata": {},
"source": [
"For normalization, `pytometry` provides several different approaches:"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ requires-python = '>= 3.9'
dependencies = [
"numpy>=1.20.0",
"numba>=0.57",
"pandas<2.0.0,>=1.5.3",
"pandas",
"anndata",
"scanpy",
"scipy",
Expand All @@ -25,6 +25,7 @@ dependencies = [
"flowutils",
"consensusclustering",
"minisom"

]

[project.urls]
Expand Down