Skip to main content

No project description provided

Project description

napari-cell-gater

License BSD-3 PyPI Python Version tests codecov napari hub

A plugin to perform cell marker gating for multiplexed immunofluorescent imaging

Screenshot 2024-06-17 at 19 34 17


Installation

Step 1. Install napari (see https://napari.org/stable/tutorials/fundamentals/installation)

Step 2. Install napari-cell-gater via pip:

pip install git+https://github.com/melonora/napari-cell-gater.git

How to use

  1. Users will select the necesary directories: images, masks, and quantification directories.

    Assumptions for inputs:
    1.1 Files inside these directories are named according to the samples names.
    1.2 The image for sample 1, should be "1.ome.tif" or "1.tif"; the mask file "1.tif"; and the quantification file "1.csv".
    1.3 Each set of files should all be inside each of the three folders.
    1.4 Any extra files in those folders can make code fail.

  2. Select the lowerbound and upperbound channels to gate. These are all the columns from the quantification csv file that you want to threshold. You must pick the same channels if you plan to save and reload the gates.

  3. Select a sample, and a marker from dropdown menus. 3 layers will load:
    (a.) the reference channel (default: first channel, changeable by dropdown menu)
    (b.) the segmentation mask (for large images this might be a problem)
    (c.) the channel_to_be_gated
    A scatter plot (default: x-axis=channel_to_be_gated intensity, y-axis=Area) (y-axis can be changed by dropdown)
    Underneath the scatterplot a slider will appear, the position of the slider will show up as a vertical line in the scatter plot. The scatter plot can also be changed to a hexbin plot, which really helps with dense clusters of cells. Plotting the data in log10 space is also possible by dropdown. Most of the times it helps. Gates would still be saved in linear space.

  4. Adjust the contrast with the Napari layer menu (top left)

  5. Drag the slider to what they think is correct

  6. Click "Plot Points" to plot points on top of positive cells.

  7. Repeat steps 5 and 6 until satisfied.

  8. Click "Save Gate" to save the gate for the current marker and sample. Go to step 4 and repeat.

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "napari-cell-gater" is free and open source software

Issues

If you encounter any problems, please [file an issue] along with a detailed description.

Assumptions of usage

(1) Images should have the same number of channels as columns in the

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari_cell_gater-0.5.1.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_cell_gater-0.5.1-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file napari_cell_gater-0.5.1.tar.gz.

File metadata

  • Download URL: napari_cell_gater-0.5.1.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for napari_cell_gater-0.5.1.tar.gz
Algorithm Hash digest
SHA256 4ef243cff0f026214eab58e04d4da8e1fd5606b4e13db096fd2063f6d3d719e2
MD5 5e28f10707a75abc900334a6c07ef580
BLAKE2b-256 1b6aca57ee187d6ebb27b65fc533320815e1fd387aaa0d506d4f00f1f796c1b7

See more details on using hashes here.

File details

Details for the file napari_cell_gater-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_cell_gater-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd6f7e6a8b7f4304b216cbf4843ab67458d0a63d11ade95945e325c6e94e9405
MD5 3c4d66ec052c2db79b354e3785c5d531
BLAKE2b-256 2814853cb25a6aca95ed9636564296d2015fc82b774ae3a4dd9be0417bea0c29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page