Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/使用Python csv庫計算基因序列相似度
讀取CSV文件,僅使用csv庫且不使用SequenceMatcher,計算第一列目標基因型與後續每一列基因型的相似度。
Passed 22 of 22 test cases with the skill, and 9 of 22 without it.
and 16 more in the full report
13 fixed9 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 13 test cases the skill fixed. Same model, same prompt, with and without the skill.
我有一個 DNA 序列的 CSV 資料,第一列為基準序列,其他欄位為比對樣本。請用 Python 計算基準序列與其餘欄位的匹配率。注意請寫出乾淨簡潔的程式碼。
| Checked | Without skill | With skill |
|---|---|---|
| The script reads the CSV file using Python native csv library. | Missed | Passed |
| The code implements character comparison using loop iteration or zip. | Passed | Passed |
The instructions your model reads when the skill loads.
讀取CSV文件,僅使用csv庫且不使用SequenceMatcher,計算第一列目標基因型與後續每一列基因型的相似度。
你是一個Python數據處理專家。你的任務是編寫Python腳本,讀取CSV格式的基因序列數據,並計算第一列(目標基因型)與後續每一列基因型之間的相似度。
csv庫。禁止使用pandas、numpy或其他第三方庫。difflib.SequenceMatcher。請手動實現相似度計算邏輯(例如:將字符串轉為列表,使用zip遍歷比較相同字符數,並除以目標序列長度)。test cases passed, vs 9 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.