본문으로 건너뛰기
cccskills
무료GitHub에 공개

bioconductor-simpleseg

Image segmentation is the process of identifying the borders of individual objects (in this case cells) within an image. This allows for the features of cells such as marker expression and morphology to be extracted, stored and analysed. simpleSeg provides functionality for user friendly, watershed based segmentation on multiplexed cellular images in R based on the intensity of user specified protein marker channels. simpleSeg can also be used for the normalization of single cell data obtained f

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

simpleSeg

Workflows

Standard Workflow

Segment multiplexed images to identify cell boundaries, extract single-cell features, and normalize marker intensities.

library(simpleSeg)
library(cytomapper)
library(EBImage)

# Load example data path
pathToImages <- system.file("extdata", package = "simpleSeg")
imageDirs <- dir(pathToImages, "Point", full.names = TRUE)
names(imageDirs) <- dir(pathToImages, "Point", full.names = FALSE)
files <- lapply(imageDirs, list.files, pattern = "tif", full.names = TRUE)
images <- lapply(files, EBImage::readImage, as.is = TRUE)
images <- cytomapper::CytoImageList(images)
mcols(images)$imageID <- names(images)

# Segment images
masks <- simpleSeg::simpleSeg(images, nucleus = "HH3", transform = "sqrt")

# Summarise cell features
cellSCE <- cytomapper::measureObjects(masks, images, img_id = "imageID")

# Normalize cells
cellSCE <- normalizeCells(
  cellSCE,
  assayIn = "counts",
  assayOut = "norm",
  imageID = "imageID",
  transformation = "sqrt",
  method = c("trim99", "minMax")
)

Input: Multiplexed TIFF images (as CytoImageList); Output: Segmented masks (CytoImageList) and normalized single-cell feature matrices (SingleCellExperiment).

When to Use

  • Segmenting multiplexed cellular images (e.g., MIBI-TOF) using a watershed-based approach with simpleSeg::simpleSeg().
  • Extracting single-cell marker intensities and morphological features into a SingleCellExperiment using cytomapper::measureObjects().
  • Normalizing and transforming extracted single-cell marker intensities using normalizeCells().

When NOT to Use

  • For segmenting non-imaging single-cell data (like standard scRNA-seq), use scran or Seurat because simpleSeg is specifically designed for multiplexed imaging data.
  • For highly complex deep-learning-based cell segmentation, use external tools like Cellpose or Mesmer because simpleSeg relies on classical watershed algorithms.

Data Requirements

  • Multiplexed cellular images loaded as an Image, list of Images, or CytoImageList (from cytomapper).
  • Images should contain a nuclear marker channel (e.g., "HH3") for watershed seeding.

Key Parameters

  • nucleus: The name or index of the channel to use as the nuclear marker.
  • transform (NULL): Image transformation to apply before segmentation (e.g., "sqrt").
  • cores (1): Number of cores to use for parallel processing.
  • watershed ("combine"): Method for watershedding ("distance", "intensity", or "combine").
  • cellBody ("dilation"): Method for cell body identification ("dilation", "discModel", "marker", or "None").
  • assayIn ("counts"): Input assay name in normalizeCells().
  • assayOut ("norm"): Output assay name in normalizeCells().

Best Practices

  • Visualise segmentation performance using EBImage::display(colorLabels(masks[[1]])) or cytomapper::plotPixels() to verify cell boundaries.
  • Apply a transformation like "sqrt" to the nuclear channel to improve watershed segmentation on highly skewed intensity distributions.
  • Perform quality control on normalization by plotting marker density distributions (e.g., using ggplot2 and geom_density()) before and after running normalizeCells().

Common Pitfalls

  • Highly skewed marker intensities: Raw intensities can be extremely skewed, making clustering difficult; fix this by applying normalizeCells() with method = c("trim99", "minMax").
  • Incorrect nuclear channel name: Specifying a nuclear marker that does not exist in the image channels will cause simpleSeg to fail; verify channel names in the CytoImageList first.

Alternatives

  • EBImage: For low-level, highly flexible image processing and manual watershedding.
  • cytomapper: For pixel-level visualization and measuring objects.
  • Seurat: For downstream clustering and classification of the extracted single-cell features.

Citations

  • Nicholls et al. (2026), simpleSeg package vignette.
  • Risom et al. (2022), Cell (for the example DCIS MIBI-TOF dataset).

References

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

The package contains functions for exploratory oligonucleotide array analysis. The dependence on tkWidgets only concerns few convenience functions. 'affy' is fully functional without it.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7932026년 6월 21일 업데이트

This tool uses the label-tree function from HyPhy to annotate a phylogenetic tree. It allows users to select a subset of leaves using either a regular expression or a list of sequence names, and then apply a specified label to these selecte

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7932026년 6월 21일 업데이트

This package provides a client for the Bioconductor AnnotationHub web resource. The AnnotationHub web resource provides a central location where genomic files (e.g., VCF, bed, wig) and other resources from standard locations (e.g., UCSC, En

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7932026년 6월 21일 업데이트

apeglm provides Bayesian shrinkage estimators for effect sizes for a variety of GLM models, using approximation of the posterior for individual coefficients.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7932026년 6월 21일 업데이트

ASURAT is a software for single-cell data analysis. Using ASURAT, one can simultaneously perform unsupervised clustering and biological interpretation in terms of cell type, disease, biological process, and signaling pathway activity. Inputting a single-cell RNA-seq data and knowledge-based databases, such as Cell Ontology, Gene Ontology, KEGG, etc., ASURAT transforms gene expression tables into original multivariate tables, termed sign-by-sample matrices (SSMs).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7932026년 6월 21일 업데이트

AUCell allows to identify cells with active gene sets (e.g. signatures, gene modules...) in single-cell RNA-seq data. AUCell uses the "Area Under the Curve" (AUC) to calculate whether a critical subset of the input gene set is enriched with

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7932026년 6월 21일 업데이트

bioMate-AI의 스킬 모두 보기

이 스킬의 문제 신고