使用 Scanpy 執行單細胞 RNA-seq 分析
何時使用: 當你有一個 .h5ad 檔案,想要進行品質控制、分群與 UMAP 視覺化,而不必重新翻閱 Scanpy 文件時。
前置條件
- 在環境中安裝 Scanpy — pip install scanpy
- 一份 .h5ad 資料集 — 從公開儲存庫下載或使用自己的資料
步驟
-
告訴 Claude 資料內容與分析目標I have pbmc3k.h5ad. Use the scanpy skill to do QC, normalization, clustering, and a UMAP. Explain each step.✓ 已複製→ Claude 以合理的預設參數,按正確順序呼叫對應的 Scanpy 函式
-
調整參數並迭代Re-do clustering with resolution 0.8 and show how cluster labels changed.✓ 已複製→ 僅調整參數,不重新規劃整個流程
結果: 產出可重現的 Notebook 與圖表,使用符合 Scanpy 慣例的寫法——不出現幻覺函式名稱。
注意事項
- Claude 給出忽略領域慣例的通用機器學習建議 — 明確點名技能:「use the scanpy skill」