Skip to content

Commit

Permalink
updated viz
Browse files Browse the repository at this point in the history
  • Loading branch information
srivarra committed May 1, 2024
1 parent c9c6047 commit 1974915
Show file tree
Hide file tree
Showing 26 changed files with 109 additions and 57 deletions.
6 changes: 3 additions & 3 deletions data/embedded_data.zarr/X/.zarray
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"chunks": [
4160,
9
8319,
5
],
"compressor": {
"blocksize": 0,
Expand All @@ -16,7 +16,7 @@
"order": "C",
"shape": [
8319,
9
5
],
"zarr_format": 2
}
Binary file modified data/embedded_data.zarr/X/0.0
Binary file not shown.
Binary file removed data/embedded_data.zarr/X/1.0
Binary file not shown.
Binary file modified data/embedded_data.zarr/obs/cell_type_patient/categories/0
Binary file not shown.
4 changes: 2 additions & 2 deletions data/embedded_data.zarr/var/$PnB/.zarray
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chunks": [
9
5
],
"compressor": {
"blocksize": 0,
Expand All @@ -14,7 +14,7 @@
"filters": null,
"order": "C",
"shape": [
9
5
],
"zarr_format": 2
}
Binary file modified data/embedded_data.zarr/var/$PnB/0
Binary file not shown.
4 changes: 2 additions & 2 deletions data/embedded_data.zarr/var/$PnE/codes/.zarray
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chunks": [
9
5
],
"compressor": {
"blocksize": 0,
Expand All @@ -14,7 +14,7 @@
"filters": null,
"order": "C",
"shape": [
9
5
],
"zarr_format": 2
}
Binary file modified data/embedded_data.zarr/var/$PnE/codes/0
Binary file not shown.
4 changes: 2 additions & 2 deletions data/embedded_data.zarr/var/$PnR/codes/.zarray
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chunks": [
9
5
],
"compressor": {
"blocksize": 0,
Expand All @@ -14,7 +14,7 @@
"filters": null,
"order": "C",
"shape": [
9
5
],
"zarr_format": 2
}
Binary file modified data/embedded_data.zarr/var/$PnR/codes/0
Binary file not shown.
4 changes: 2 additions & 2 deletions data/embedded_data.zarr/var/_index/.zarray
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chunks": [
9
5
],
"compressor": {
"blocksize": 0,
Expand All @@ -18,7 +18,7 @@
],
"order": "C",
"shape": [
9
5
],
"zarr_format": 2
}
Binary file modified data/embedded_data.zarr/var/_index/0
Binary file not shown.
4 changes: 2 additions & 2 deletions data/embedded_data.zarr/var/channel/categories/.zarray
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chunks": [
9
5
],
"compressor": {
"blocksize": 0,
Expand All @@ -18,7 +18,7 @@
],
"order": "C",
"shape": [
9
5
],
"zarr_format": 2
}
Binary file modified data/embedded_data.zarr/var/channel/categories/0
Binary file not shown.
4 changes: 2 additions & 2 deletions data/embedded_data.zarr/var/channel/codes/.zarray
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chunks": [
9
5
],
"compressor": {
"blocksize": 0,
Expand All @@ -14,7 +14,7 @@
"filters": null,
"order": "C",
"shape": [
9
5
],
"zarr_format": 2
}
Binary file modified data/embedded_data.zarr/var/channel/codes/0
Binary file not shown.
4 changes: 2 additions & 2 deletions data/embedded_data.zarr/var/marker/categories/.zarray
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chunks": [
9
5
],
"compressor": {
"blocksize": 0,
Expand All @@ -18,7 +18,7 @@
],
"order": "C",
"shape": [
9
5
],
"zarr_format": 2
}
Binary file modified data/embedded_data.zarr/var/marker/categories/0
Binary file not shown.
4 changes: 2 additions & 2 deletions data/embedded_data.zarr/var/marker/codes/.zarray
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chunks": [
9
5
],
"compressor": {
"blocksize": 0,
Expand All @@ -14,7 +14,7 @@
"filters": null,
"order": "C",
"shape": [
9
5
],
"zarr_format": 2
}
Binary file modified data/embedded_data.zarr/var/marker/codes/0
Binary file not shown.
4 changes: 2 additions & 2 deletions data/embedded_data.zarr/var/n/categories/.zarray
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chunks": [
9
5
],
"compressor": {
"blocksize": 0,
Expand All @@ -18,7 +18,7 @@
],
"order": "C",
"shape": [
9
5
],
"zarr_format": 2
}
Binary file modified data/embedded_data.zarr/var/n/categories/0
Binary file not shown.
4 changes: 2 additions & 2 deletions data/embedded_data.zarr/var/n/codes/.zarray
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chunks": [
9
5
],
"compressor": {
"blocksize": 0,
Expand All @@ -14,7 +14,7 @@
"filters": null,
"order": "C",
"shape": [
9
5
],
"zarr_format": 2
}
Binary file modified data/embedded_data.zarr/var/n/codes/0
Binary file not shown.
69 changes: 56 additions & 13 deletions scripts/process_fcs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -64,7 +64,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -73,7 +73,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -82,7 +82,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -96,7 +96,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -107,16 +107,16 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"cell_type_mapping = {0: \"Healthy\", 1: \"Healthy\", 2: \"Cancer\"}\n",
"patient_annotation = {0: \"Healthy\", 1: \"Cancer\", 2: \"Cancer\"}\n",
"cell_type_patient_mapping = {\n",
" 0: \"Healthy_Patient_Healthy_Cells\",\n",
" 1: \"Cancer_Patient_Healthy_Cells\",\n",
" 2: \"Cancer_Patient_Cancer_Cells\",\n",
" 0: \"Healthy Cells\",\n",
" 1: \"Queen Bee Cells\",\n",
" 2: \"Cancer Cells\",\n",
"}\n",
"new_adata.obs[\"cell_type\"] = new_adata.obs[\"OmiqFileIndex\"].map(cell_type_mapping).astype(\"category\")\n",
"new_adata.obs[\"patient\"] = new_adata.obs[\"OmiqFileIndex\"].map(patient_annotation).astype(\"category\")\n",
Expand All @@ -134,7 +134,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -152,7 +152,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -164,12 +164,55 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"new_adata.write_zarr(\"../data/embedded_data.zarr\")"
"markers = [\"141Pr_pPLCg2\", \"150Sm_pSTAT5\", \"159Tb_pAkt\", \"166Er_pSyk\", \"176Yb_pCreb\"]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"new_adata2 = new_adata.copy()[:, markers]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"renamed_markers = [\"Gamma\", \"STAT5\", \"AKT\", \"SYK\", \"CREB\"]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"new_adata2.var_names = renamed_markers"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"new_adata2.write_zarr(\"../data/embedded_data.zarr\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading

0 comments on commit 1974915

Please sign in to comment.