Skip to content
Written for v1.1.2· Last updated: Apr 6, 2026

Layer Settings

Core Feature

This feature is available in all Portrai Explorer deployments.

Layer Settings control the appearance of data points and background images in the map viewer. Access these settings through the Layers button (layer icon) in the map viewer toolbar.

Accessing Layer Settings

  1. Click the Layers button (layer icon) in the map viewer toolbar
  2. A popover panel opens with all layer controls
  3. Changes apply immediately to the view

Layer settings panel

Projection Mode

At the top of the toolbar, select the coordinate system for displaying your data:

  • For 2 or fewer projection modes: Segmented control buttons
  • For 3 or more projection modes: Dropdown selector

Available projections depend on your project data (e.g., Spatial, UMAP, t-SNE, PCA).

Points

Controls for data point appearance, combining opacity and size settings.

Opacity

ControlDescription
Opacity slider0 (transparent) to 1 (opaque)
Eye toggleQuick show/hide toggle

Default: 0.8

Point Size

ControlDescription
Auto toggleEnable automatic point sizing
Size sliderManual size from 1px to 15px

Defaults:

  • Auto: Enabled (points scale with zoom level)
  • Size: 3px (when Auto is disabled)

When Auto is enabled, points automatically scale based on zoom level. Manually adjusting the size slider will automatically disable Auto mode.

Image

Multi-Image Mode

TIP

Multi-image mode activates automatically when the project contains multiple raster images (e.g., DAPI + Cell Boundary, or H&E + fluorescence channels).

When multiple images are detected, each image channel is listed with independent controls:

ControlDescription
Toggle all (header)Show/hide all image layers at once (eye icon in section header)
Channel ColorPseudocolor selection (Blue, Green, Red, Cyan, Magenta, etc.)
Contrast LimitsMin/Max range slider for contrast stretch
OpacityPer-channel opacity (0 to 1)
Eye togglePer-channel show/hide
Reset buttonRestore channel to default settings

Each channel is automatically assigned a distinct default color (Blue, Green, Red, etc.) for easy visual differentiation.

How Fluorescence Channels are Composited

Fluorescence channels use additive blending, the industry standard for microscopy:

  • Each channel's pseudocolored values are summed together
  • Where channels overlap, colors combine naturally (e.g., Blue + Green = Cyan)
  • Pixels with zero signal are transparent, allowing layers below to show through
  • This is scientifically accurate — fluorescence signals represent emitted photons that physically add together

H&E + Fluorescence Overlay

When both H&E (brightfield) and fluorescence images are present:

  • H&E renders as the base layer with standard RGB
  • Fluorescence channels overlay on top with additive blending
  • Areas with no fluorescence signal are transparent, revealing the H&E tissue image underneath
  • H&E and fluorescence channels have independent controls

Contrast Limits (Min/Max)

The contrast limits slider uses two handles to set the display range:

  • Min (left handle): Pixel values at or below this become black/transparent. Raise this to remove background noise.
  • Max (right handle): Pixel values at or above this become full brightness. Lower this to brighten dim signals.

Formula: display = clamp((pixel - min) / (max - min), 0, 1)

Default: Auto-detected from image data. Portrai Explorer reads the lowest-resolution overview and computes the 0.05th/99.95th percentile of non-zero pixel values to determine optimal initial contrast limits.

Single-Image Mode

When only one image is available, the standard image layer controls are shown:

ControlRangeDefaultDescription
Opacity0 to 11Image transparency
Brightness-1 to 10Lighten or darken the image
Contrast-1 to 10Adjust light/dark differences
Saturation-1 to 10Adjust color intensity

Additional controls for single-band (grayscale) images:

ControlRangeDefaultDescription
Contrast Limits0 to 65535Auto-detectedMin/Max range for contrast stretch
Channel ColorSelectGrayscalePseudocolor for visualization

Automatic Detection

Portrai Explorer automatically detects single-band (grayscale) vs multi-band images from the GeoTIFF file, and computes optimal contrast limits from the actual pixel data for fluorescence channels.

Background Color

  • Fluorescence-only mode (no H&E image): The background is black, matching the standard fluorescence microscopy convention.
  • H&E present or single-image mode: The background is white. When exporting as PNG, the background is always white for non-fluorescence modes.

Tips for Effective Settings

Dense Data

For datasets with many overlapping points:

  1. Lower point opacity - See through overlapping points
  2. Disable Auto, use smaller point size - Reduce overlap
  3. Lower image opacity - Reduce visual noise

Fluorescence Imaging

For multi-channel fluorescence data:

  1. Adjust contrast limits per channel - Raise min to remove background noise
  2. Choose distinct colors - Avoid overlapping color channels
  3. Toggle channels - Hide channels to isolate specific signals, or use the header eye icon to toggle all at once

Presentation

For figures and screenshots:

  1. Full opacity on points - Clear, distinct colors
  2. Appropriate point size - Visible but not overwhelming
  3. Tune contrast limits - Professional appearance

Troubleshooting

Points Not Visible

  • Check point opacity is not 0
  • Increase point size or disable Auto
  • Verify data is loaded (check point count in toolbar)

Background Image Not Showing

  • Check image opacity is not 0
  • Verify projection mode has a raster layer (e.g., Spatial view)
  • Click the eye toggle to show the layer

Fluorescence Image Too Dark

  • Contrast limits are auto-detected, but may need fine-tuning for specific datasets
  • Lower the Max value in the contrast limits slider
  • Raise the Min value to remove background noise and increase contrast
  • Use the Reset button to restore auto-detected defaults

Channel Colors Look Wrong

  • Each channel is assigned a default color automatically
  • Change colors via the Channel Color selector in each channel's controls
  • Reset button restores the default color assignment

Portrai Explorer Documentation