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

scrna-seq-qc

Build or review quality control workflows for single-cell and single-nucleus RNA sequencing data. Select filters from observed data, detect doublets, assign cell types, and create UMAP plots that summarize cell relationships, while recording analysis decisions and outputs.

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

원문원문 설명 보기

Process, quality-control, annotate, and visualize single-cell or single-nucleus RNA-seq datasets across tissues and species. Use when Codex needs to build, adapt, or review a general scRNA-seq QC pipeline; choose dataset-appropriate cell-level filters from QC distributions; run required scDblFinder-based doublet and ambient-RNA filtering; annotate cells with matched references or marker-based fallbacks; or generate global and per-group UMAP visualizations for large scRNA-seq datasets.

설치 방법 보기

이럴 때 유용합니다

  • Choosing quality filters from dataset distributions
  • Detecting doublets and checking ambient RNA
  • Assigning cell types using references or marker genes
  • Creating global and per-group UMAP plots
  • Recording filter decisions and analysis provenance

포함된 파일(3)

  • SKILL.md8.1 KB
  • agents/openai.yaml267 B
  • references/qc-annotation-umap-heuristics.md8.6 KB

SKILL.md(원문)

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

scRNA-seq QC

Start Here

Read references/qc-annotation-umap-heuristics.md before picking thresholds, annotation backends, or UMAP feature-selection rules.

Confirm what inputs exist before writing code:

  • An AnnData object or equivalent with raw counts preserved.
  • Per-sample, per-batch, or per-channel metadata, because QC and doublet detection should respect technical partitions.
  • Organism, tissue, assay type, chemistry, and whether the data are whole-cell or single-nucleus.
  • Whether a matched cell atlas or label-transfer reference exists for the tissue and species.

Preserve provenance in the output: package versions, thresholds, threshold-justification plots, counts removed or flagged at each filter, annotation backend and reference, marker-gene selection heuristic, and any manual cluster exclusions.

Workflow

  1. Choose QC thresholds from the data, not from a fixed template.

    • Plot detected genes, total UMIs, mitochondrial fraction, and any tissue-specific nuisance signals overall and by batch.
    • Inspect all available QC metrics, but default filtering should use only the standard metrics: detected genes, total counts, and percent.mt.
    • Pick thresholds from the observed distributions and expected biology.
    • Save a plot with threshold lines and record why each threshold is appropriate for this dataset.
    • If another metric looks important enough to filter on, flag it as a dataset-specific issue, explain why, and consult the user before adding that extra filter.
    • Keep QC plots legible: do not overload a single panel with too many batches or categories when faceting, splitting, or summary views would communicate the result more clearly.
  2. Run cell-level QC.

    • Remove or flag obvious low-quality barcodes using the chosen thresholds on detected genes, total counts, and percent.mt.
    • Use scDblFinder for doublet detection. Run it per batch or capture channel, and split very large batches before doublet calling.
    • Do not skip doublet calling or silently substitute another method. If scDblFinder cannot run in the environment, surface the blocker explicitly or get user approval before using a different caller.
    • Compute ambient-RNA style metrics and use them for filtering when the dataset and workflow support it.
    • Compute any other informative QC metrics when feasible, but do not turn those additional nonstandard metrics into hard filters without explicit user approval unless the user already asked for a stricter policy.
    • Prefer adding a passes_QC column instead of physically dropping cells when downstream provenance matters.
  3. Build a latent space and inspect residual artifacts.

    • Decide whether scVI is warranted for this dataset and use case before training it.
    • Prefer a standard PCA/Scanpy workflow for smaller, simpler datasets with limited batch structure or when a conventional embedding answers the question cleanly.
    • Prefer scVI when integration across batches, donors, chemistries, or related datasets is important, or when the dataset is large and noisy enough that a learned latent space is likely to help.
    • Record why scVI or a conventional PCA workflow was chosen for this dataset.
    • Cluster and inspect low-quality, mixed-marker, or ambiguous clusters before downstream visualization.
    • Remove or flag artifact clusters only with explicit evidence, and record the rationale.
  4. Annotate cells.

    • If a suitable Allen Brain Cell Atlas reference exists and the dataset is a compatible brain tissue and species, use MapMyCells or cell_type_mapper.
    • If no suitable Allen reference exists, use the closest matched reference for tissue, species, assay, and chemistry with an appropriate mapping tool.
    • If no reliable reference exists, annotate conservatively from canonical markers and cluster-level markers. Assign coarse labels first and leave uncertain clusters as unknown or ambiguous rather than overlabeling them.
    • Persist annotation confidence or probability fields when available, together with at least one coarse and one fine label.
  5. Choose a general marker panel for global UMAP.

    • Do not rely on a perturbation-specific or brain-only marker panel.
    • Start from HVGs selected in a batch-aware way.
    • Add genes that distinguish major coarse compartments or high-confidence labels, for example top markers per coarse cluster or class.
    • Exclude nuisance-dominated genes if they swamp the embedding unless the biology requires them.
    • Document how the panel was chosen.
  6. Generate UMAP visualizations.

    • For a global UMAP, use the learned latent space or the chosen informative marker panel, depending on which better matches the analytical goal and runtime constraints.
    • For per-group UMAPs, subset by a stable coarse label and use the latent representation unless there is a strong reason to rebuild on expression features.
    • Keep plotting separate from filtering so visualization choices do not mutate the core analysis object.
    • Make every plot legible. Use a reasonable number of categories per panel, prefer coarse labels on overview plots, and split or facet figures when fine labels, batches, or neighborhoods would otherwise make the figure unreadable.
  7. Scale to large datasets without copying.

    • Keep matrices sparse whenever possible.
    • Avoid densifying whole matrices.
    • Avoid whole-object copies of AnnData or Seurat objects; use views, backed mode, chunked operations, and per-batch or per-group manifests instead.
    • When crossing Python and R boundaries, pass only the subset and metadata required for the step.
    • Write checkpoints after major stages so failures do not require restarting from raw ingest.

Deliverables

When implementing a pipeline, produce an auditable output set:

  • Filtered .h5ad or equivalent object with raw counts preserved and QC or annotation fields in metadata.
  • QC summary table with input cells, cells removed or flagged by each filter, final cells, and per-batch summaries.
  • Threshold-justification plots for detected genes, UMIs, mitochondrial fraction, plus any additional QC metric that was inspected; clearly separate metrics that informed review from metrics that actually drove filtering.
  • Parameter manifest with thresholds, package versions, annotation backend and reference, marker-panel heuristic, and any manual exclusions.
  • UMAP coordinates and plots for global and per-group views when requested, with category counts and panel layouts chosen so the figures remain legible.

Embedded Runner

For 10x-style matrix bundles, a local runner is available:

python plugins/ngs-analysis/scripts/run_scrnaseq_post_count_qc.py --input-dir path/to/scrna_bundle

The input directory should contain matrix/, manifest.tsv, and dataset_metadata.json, unless explicit paths are supplied. Treat the runner as an auditable analysis surface: its marker-based fallback is PBMC-oriented when no matched reference is provided, so tissue-specific annotation and integration choices still require review.

The runner writes visualizations/index.html for portable artifact review, summary.md plus provenance/analysis_status.json for explicit completeness/blocker reporting, and auto-launches a localhost Marimo review app recorded in notebooks/marimo_server.json. It also writes notebooks/scrna_qc_review.marimo.py as a notebook backup over the generated PNG/CSV/H5AD outputs. Treat the notebook and review app as review layers, not as the source of truth; the run envelope and generated artifacts remain canonical.

Resources

  • references/qc-annotation-umap-heuristics.md: Threshold-selection heuristics, annotation fallback strategy, general marker-panel selection rules, and large-dataset memory practices.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Review charts, diagrams, and dashboards for accessibility, including color contrast, keyboard access, and text alternatives. Get specific guidance for preserving key findings in screen readers, static exports, and reduced-motion views.

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

  • Reviewing dashboard colors and keyboard access
  • Writing chart alt text and long descriptions
  • Preparing accessible figures for PDF reports
openai/plugins7.5천2026년 10월 8일 업데이트

Give a photo collection a consistent look using Adobe tools to adjust color, tone, presets, and optional crops. Review a before-and-after sample before processing the full set, then receive links to the edited images.

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

  • Giving travel photos a consistent look
  • Unifying photos taken in mixed lighting
  • Applying a warm or cinematic style across a photo set
openai/plugins7.5천2026년 10월 8일 업데이트

Visualize a logo, sketch, or design on products such as mugs, shirts, and business cards. Review a pilot image, generate a visually consistent set, and collect the results on a shareable Firefly Board.

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

  • Preview a logo on mugs and shirts
  • Turn a hand-drawn sketch into product mockups
  • Create consistent brand presentation images
openai/plugins7.5천2026년 10월 8일 업데이트

Prepare images and videos for social platforms using Adobe tools. Create image crops that keep the subject in view, expand backgrounds when available, preview a full-set sample, and resize videos while preserving their aspect ratio.

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

  • Creating image variants for multiple social platforms
  • Cropping photos for Instagram Stories
  • Preparing LinkedIn images and YouTube thumbnails
openai/plugins7.5천2026년 10월 8일 업데이트

Create flyers, social posts, business cards, and other visuals from Adobe Express templates. Choose a template, customize its text and background color, and receive a design link, with additional editing and export options depending on the available tools.

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

  • Creating an event flyer
  • Designing an Instagram post
  • Customizing business card text and colors
openai/plugins7.5천2026년 10월 8일 업데이트

Turn an uploaded video into three highlight edits with Adobe Quick Cut. Choose a target length and style, then compare versions that feature different moments and download the ones you prefer.

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

  • Creating a short highlight video for social media
  • Condensing interview footage into a highlight reel
  • Comparing three edits with different moment selections
openai/plugins7.5천2026년 10월 8일 업데이트

openai의 스킬 모두 보기

이 스킬의 문제 신고