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

bioconductor-mastr

mastR is an R package designed for automated screening of signatures of interest for specific research questions. The package is developed for generating refined lists of signature genes from multiple group comparisons based on the results from edgeR and limma differential expression (DE) analysis workflow. It also takes into account the background noise of tissue-specificity, which is often ignored by other marker generation tools. This package is particularly useful for the identification of g

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

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.1 KB

SKILL.md(원문)

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

mastR

Workflows

Standard Workflow

Generate and refine a group-specific gene signature from a single transcriptomics dataset, including background tissue expression removal and visualization.

library(mastR)
library(limma)

# 1. Build markers pool
data("lm7", "lm22")
LM <- get_lm_sig(lm7.pattern = "^NK", lm22.pattern = "NK cells")

# 2. Process data with customized contrast matrix
data("im_data_6")
con_mat <- makeContrasts(
  'NK-CD4' = 'NK - CD4',
  'NK-T' = 'NK - (CD4 + CD8)/2',
  levels = levels(factor(make.names(im_data_6$`celltype:ch1`)))
)

proc_data <- process_data(
  im_data_6,
  group_col = 'celltype:ch1',
  target_group = 'NK',
  contrast_mat = con_mat,
  summary = TRUE,
  gene_id = "ENSEMBL"
)

# 3. Visualize mean-variance relationship
plot_mean_var(proc_data)

Input: ExpressionSet object (e.g., im_data_6) and cell type metadata. Output: Processed list containing DGEList, design, and contrast-specific differential expression results.

Multi Dataset Signature Aggregation

Identify and aggregate robust gene signatures across multiple independent transcriptomics datasets using union, intersection, or Robust Rank Aggregation (RRA).

library(mastR)
library(limma)
data("im_data_6")

con_mat <- makeContrasts(
  'NK-CD4' = 'NK - CD4',
  levels = levels(factor(make.names(im_data_6$`celltype:ch1`)))
)

# Retrieve DE tables for downstream aggregation
DE_table <- get_de_table(
  im_data_6,
  group_col = 'celltype:ch1',
  target_group = 'NK',
  contrast_mat = con_mat,
  summary = TRUE,
  gene_id = "ENSEMBL"
)

Input: ExpressionSet data and contrast matrix. Output: List of differential expression tables for each contrast.

Single Cell Pseudo Bulk Signature

Convert single-cell RNA-sequencing data into pseudo-bulk samples and identify group-specific marker signatures.

library(mastR)
# Assuming pseudo-bulk ExpressionSet 'pb_eset' is prepared
# process_data internally handles DGEList conversion and limma/edgeR fitting
proc_data <- process_data(
  im_data_6, 
  group_col = 'celltype:ch1',
  target_group = 'NK',
  summary = TRUE,
  gene_id = "ENSEMBL"
)

Input: Pseudo-bulk ExpressionSet. Output: Processed differential expression results for identifying cell-type signatures.

When to Use

  • To perform simplified customized contrast design for differential expression analysis using process_data().
  • To build a markers pool from public databases like CIBERSORT (using get_lm_sig()) or MSigDB (using get_gsc_sig()), and merge them using merge_markers().
  • To visualize gene-set overlaps using UpSet plots with gsc_plot().
  • To extract all differential expression tables across multiple contrasts in a single call using get_de_table().

When NOT to Use

  • For performing single-cell differential expression directly on individual cells without pseudo-bulking; use Seurat::FindMarkers() instead because mastR relies on robust pseudo-bulk statistical methods like limma and edgeR.
  • For non-linear or complex random effects modeling; use lme4 or variancePartition because mastR is built on standard linear modeling via limma.

Data Requirements

  • Expression data as an ExpressionSet object (e.g., im_data_6) containing normalized counts (e.g., TMM normalized counts) or raw counts.
  • Phenotypic metadata with a grouping column (e.g., celltype:ch1) containing group/cell-type labels.
  • Gene identifiers matching the expression matrix row names (e.g., "ENSEMBL" or "SYMBOL").

Key Parameters

  • group_col (required): Column name in metadata containing group labels.
  • target_group (required): The specific group of interest (e.g., 'NK') for signature identification.
  • contrast_mat (NULL): A customized contrast matrix created using limma::makeContrasts().
  • summary (FALSE): Logical indicating whether to print a summary of up/down-regulated genes.
  • gene_id ("ENSEMBL"): Type of gene identifier used in the expression matrix.
  • lm7.pattern (required in get_lm_sig): Regular expression to filter LM7 leukocyte signatures.
  • lm22.pattern (required in get_lm_sig): Regular expression to filter LM22 leukocyte signatures.

Best Practices

  • Create the customized contrast matrix using levels derived from the design matrix of a dummy process_data() run to avoid level mismatch errors.
  • Merge multiple retrieved marker sets into a single GeneSet using merge_markers() to simplify downstream intersection.
  • Visualize the mean-variance relationship of the processed data using plot_mean_var() to check data quality.

Common Pitfalls

  • Contrast matrix level mismatch: If the levels in the contrast matrix do not match the expression matrix group levels, the analysis will fail. Fix by generating the contrast matrix using levels from proc_data$vfit$design.
  • Missing packages for visualization: Interactive Glimma plots require Glimma to be installed. Fix by installing Glimma and calling Glimma::glimmaMDS(proc_data).

Alternatives

  • limma for direct, low-level differential expression and contrast design.
  • edgeR for differential expression of RNA-seq counts using negative binomial models.
  • singscore for single-sample gene signature scoring.

Citations

  • Cursons et al. 2019 (for the Huntington gene list / NK markers)
  • Tosolini et al. (for LM7 leukocyte signature)

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

이 스킬의 문제 신고