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

bioconductor-standr

standR is an user-friendly R package providing functions to assist conducting good-practice analysis of Nanostring's GeoMX DSP data. All functions in the package are built based on the SpatialExperiment object, allowing integration into various spatial transcriptomics-related packages from Bioconductor. standR allows data inspection, quality control, normalization, batch correction and evaluation with informative visualizations.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.2 KB

SKILL.md(원문)

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

standR

Workflows

Standard Workflow

Perform quality control, TMM normalization, and RUV4 batch correction on NanoString GeoMx DSP data.

library(standR)
library(SpatialExperiment)
library(limma)
library(ExperimentHub)

# Load data
eh <- ExperimentHub()
countFile <- eh[["EH7364"]]
sampleAnnoFile <- eh[["EH7365"]]
featureAnnoFile <- eh[["EH7366"]]

spe <- readGeoMx(countFile, sampleAnnoFile, featureAnnoFile = featureAnnoFile, rmNegProbe = TRUE)

# Preprocess and QC
colData(spe)$regions <- paste0(colData(spe)$region,"_",colData(spe)$SegmentLabel) |> 
  (\(.) gsub("_Geometric Segment","",.))() |>
  paste0("_",colData(spe)$pathology) |>
  (\(.) gsub("_NA","_ns",.))()

spe <- addPerROIQC(spe, rm_genes = TRUE)
spe <- spe[,rownames(colData(spe))[colData(spe)$lib_size > 50000]]

# Normalization
colData(spe)$biology <- paste0(colData(spe)$disease_status, "_", colData(spe)$regions)
spe_tmm <- geomxNorm(spe, method = "TMM")

# Batch correction
spe <- findNCGs(spe, batch_name = "SlideName", top_n = 500)
spe_ruv <- geomxBatchCorrection(spe, factors = "biology", NCGs = metadata(spe)$NCGs, k = 5)

Input: Raw NanoString GeoMx DSP count and annotation files from ExperimentHub; Output: A normalized, batch-corrected SpatialExperiment object.

When to Use

  • Analyzing NanoString GeoMx DSP data using SpatialExperiment structures.
  • Performing gene-level and ROI-level quality control using addPerROIQC and filtering based on library size (lib_size).
  • Normalizing spatial transcriptomics data with TMM or other methods via geomxNorm.
  • Removing slide-associated batch effects using findNCGs and geomxBatchCorrection.

When NOT to Use

  • For single-cell RNA-seq data without spatial coordinates, use standard packages like scran or Seurat because standR is tailored for GeoMx DSP spatial data.
  • For spatial datasets requiring continuous cell state modeling across microenvironments, use Statial because standR focuses on ROI-level profiling and batch correction.

Data Requirements

  • Input counts, sample annotations, and feature annotations loaded into a SpatialExperiment object using readGeoMx.
  • Requires metadata columns such as lib_size for ROI filtering, and slide/batch information (e.g., SlideName) for batch correction.

Key Parameters

  • rmNegProbe (TRUE): Parameter in readGeoMx to remove negative probes.
  • rm_genes (TRUE): Parameter in addPerROIQC to remove non-expressed genes.
  • y_threshold (50000): Library size threshold used in plotROIQC to identify low-quality ROIs.
  • method ("TMM"): Normalization method in geomxNorm.
  • batch_name ("SlideName"): Column name in colData representing the batch variable in findNCGs.
  • top_n (500): Number of top least variable genes to select as negative control genes in findNCGs.
  • factors ("biology"): Biological factors to preserve during batch correction in geomxBatchCorrection.
  • k (5): Number of factors of unwanted variation to remove in geomxBatchCorrection.

Best Practices

  • Merge region-related annotations (e.g., region, SegmentLabel, pathology) to avoid collinearity before batch correction.
  • Run gene-level QC using addPerROIQC and visualize removed genes with plotGeneQC.
  • Perform ROI-level QC using plotROIQC to identify low library size or low cell count regions.
  • Inspect technical variations using Relative Log Expression (plotRLExpr) and Principal Component Analysis (drawPCA) before and after normalization.

Common Pitfalls

  • Collinearity in batch correction: Avoid by merging overlapping annotations in colData before running geomxBatchCorrection.
  • Incorrect normalization method: Using "RPKM" or "TPM" in geomxNorm without adding a genelength column to rowData will fail.
  • Low library size ROIs confounding downstream analysis: Filter out low-quality ROIs (e.g., lib_size > 50000) before normalization.

Alternatives

  • edgeR: For general differential expression and TMM normalization without spatial-specific workflows.
  • limma: For linear modeling of expression data without built-in GeoMx-specific QC and batch correction.
  • DESeq2: For alternative normalization and differential testing on count data.

Citations

  • Ning Liu, Dharmesh Bhuva, Ahmed Mohamed, Chin Wee Tan, Melissa Davis (2026). standR: An R package for NanoString GeoMx DSP data analysis.

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의 스킬 모두 보기

이 스킬의 문제 신고