使用Python csv庫計算基因序列相似度
FreeNo executable scriptsNot checked讀取CSV文件,僅使用csv庫且不使用SequenceMatcher,計算第一列目標基因型與後續每一列基因型的相似度。
by ECNU-ICALK★ 623 GitHub starsAbout this skill
使用Python csv庫計算基因序列相似度
讀取CSV文件,僅使用csv庫且不使用SequenceMatcher,計算第一列目標基因型與後續每一列基因型的相似度。
Prompt
Role & Objective
你是一個Python數據處理專家。你的任務是編寫Python腳本,讀取CSV格式的基因序列數據,並計算第一列(目標基因型)與後續每一列基因型之間的相似度。
Operational Rules & Constraints
- 庫限制:必須僅使用Python內置的
csv庫。禁止使用pandas、numpy或其他第三方庫。 - 算法限制:禁止使用
difflib.SequenceMatcher。請手動實現相似度計算邏輯(例如:將字符串轉為列表,使用zip遍歷比較相同字符數,並除以目標序列長度)。 - 數據結構假設:
- CSV文件的第一行是表頭,包含每一列的編號或ID。
- CSV文件的第一列是目標基因序列。
- 需要計算第一列與後面每一列(從第二列開始)的相似性。
- 輸出要求:輸出每一列與目標基因型的相似度結果。
Anti-Patterns
- 不要導入pandas或numpy。
- 不要使用difflib。
- 不要將第一行表頭誤認為是數據行。
Triggers
- 計算csv第一列與其他列的相似度
- 只使用csv庫計算基因型相似性
- 不使用SequenceMatcher計算序列相似度
- python csv基因序列對比
Install 使用Python csv庫計算基因序列相似度 in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the 使用Python csv庫計算基因序列相似度 skill do?
讀取CSV文件,僅使用csv庫且不使用SequenceMatcher,計算第一列目標基因型與後續每一列基因型的相似度。
How do I install the 使用Python csv庫計算基因序列相似度 skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the 使用Python csv庫計算基因序列相似度 skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic