Skip to content

Commit

Permalink
The TSAI tiler, unfortunately, does not support .tiff files
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-l-kong committed Nov 28, 2023
1 parent 55ee0af commit 765fd30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/maldi_tools/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def generate_glycan_mask(
Args:
---
imz_data (ImzMLParser): The imzML object, needed for coordinate identification.
glycan_img_path (Path): Location of the .tiff file containing the glycan scan
glycan_img_path (Path): Location of the .png file containing the glycan scan
glycan_mask_path (Path): Location where the mask will be saved
"""
validate_paths([glycan_img_path])
Expand Down
4 changes: 2 additions & 2 deletions templates/maldi-pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@
"glycan_img_path = \"path/to/glycan_img.tiff\"\n",
"\n",
"# define a save path for your mask\n",
"glycan_mask_path = \"path/to/glycan_mask.tiff\"\n",
"glycan_mask_path = \"path/to/glycan_mask.png\"\n",
"\n",
"# generate and save the glycan mask\n",
"extraction.generate_glycan_mask(\n",
Expand All @@ -597,7 +597,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Each core on the TMA should be appropriately named by the <a href=https://tsai.stanford.edu/research/maldi_tma/>TSAI MALDI tiler</a>. You will need to provide the TIFF saved at `glycan_mask_path` as input. **Ensure that this step is completed before running the following sections.**"
"Each core on the TMA should be appropriately named by the <a href=https://tsai.stanford.edu/research/maldi_tma/>TSAI MALDI tiler</a>. You will need to provide the PNG saved at `glycan_mask_path` as input. **Ensure that this step is completed before running the following sections.**"
]
},
{
Expand Down

0 comments on commit 765fd30

Please sign in to comment.