技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
io-metadata【数据与研究】Use scikit-bio IO registry formats and metadata objects for reading, writing, validation, and serialization.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task involves skbio.io.read, skbio.io.write, skbio.io.sniff, object-oriented .read() / .write(), supported file formats, QIIME-style sample metadata, metadata column validation, missing-value schemes, or interval metadata serialization.
skbio.io.read(file, format=..., into=...)) and object-oriented I/O (SomeClass.read(file, format=...), obj.write(file, format=...)).UnrecognizedFormatError, FileFormatError, format-specific parse errors, compression/filehandle caveats, and reader/writer route mismatches.SampleMetadata, MetadataColumn, NumericMetadataColumn, and CategoricalMetadataColumn objects.Interval and IntervalMetadata objects, especially for GFF3, GenBank, and EMBL feature annotations.references/format-reference.md for supported formats, registry patterns, read/write routes, streaming, sniffing, and custom-format extension guidance.references/metadata-reference.md for SampleMetadata, metadata columns, missing schemes, dataframe conversion, filtering, merging, ID-header rules, and interval metadata.references/troubleshooting.md for compact diagnosis and repair patterns covering the common IO and metadata failures.scripts/io_metadata_smoke.py for a deterministic public-API smoke check that reads/writes a Newick tree, streams FASTA records, builds sample metadata, and prints JSON.TabularMSA manipulation, alignment, translation, or per-sequence metadata after records are read, use ../sequences-alignment/SKILL.md.TreeNode editing, rooting, comparison, or phylogenetic algorithms after Newick parsing, use ../trees-phylogeny/SKILL.md.../diversity-tables/SKILL.md and ../statistics-ordination/SKILL.md when present.From any working directory with scikit-bio and its runtime dependencies installed, run:
python /path/to/skills/scikit-bio/sub-skills/io-metadata/scripts/io_metadata_smoke.py
The script also supports --help and --indent. It imports only public scikit-bio APIs, uses StringIO inputs, catches common import/format/metadata exceptions, and prints compact JSON on success.