技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-io-validation【数据与研究】Prepare, load, orient, and validate PyDESeq2 count and metadata inputs before differential expression modeling.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task is about getting data into PyDESeq2 safely: reading count and metadata CSVs, fixing sample/gene orientation, checking design prerequisites, constructing a DeseqDataSet, or exporting fitted data as picklable AnnData.
references/data-formats.md: expected schemas, loading patterns, validation checklist, filtering, AnnData, and script recipes.references/troubleshooting.md: symptoms and recoveries for count, metadata, design, orientation, and local CSV problems.scripts/validate_pydeseq2_inputs.py: network-free validator for local CSVs and optional design matrices.scripts/run_local_csv_dea.py: local CSV adaptation of the pandas I/O example with optional synthetic data and optional tiny fit smoke.DeseqDataSet.--orientation genes-by-samples to the bundled scripts.~condition or ~group + condition reference metadata columns; direct design matrices must have one row per sample and an index identical to metadata/counts.pandas.read_csv(..., index_col=0) or use load_example_data(modality="raw_counts"|"metadata", dataset="synthetic") for the built-in synthetic example.metadata = metadata.loc[counts.index] only after confirming both sets of sample ids match.python scripts/validate_pydeseq2_inputs.py --counts-csv counts.csv --metadata-csv metadata.csv --design '~condition' --orientation auto.DeseqDataSet(counts=counts_df, metadata=metadata, design="~condition") only after validation passes.dds.deseq2() to ../dea-workflows/SKILL.md; route result interpretation to ../statistics-and-results/SKILL.md; route VST/normalization internals to ../model-fitting-internals/SKILL.md.When a fitted DeseqDataSet must be pickled, export dds.to_picklable_anndata() instead of pickling the raw DeseqDataSet; this converts the formulaic design matrix metadata into a picklable AnnData representation.