Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Snp位点最优纯合基因型计算

ASecurity

根据样本表型数据,计算每个SNP位点上表现最好的纯合基因型,忽略杂合基因型和缺失数据,并输出结果文件。

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
datapython

Security Analysis

A100/100

Scanned 9/27/2026

$npx -y skills add David-Li0406/meta-skill-evloving --skill 'snp位点最优纯合基因型计算' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Snp位点最优纯合基因型计算?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Snp位点最优纯合基因型计算
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-snp/badge)](https://www.skillsdirectory.com/skills/david-li0406-snp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
id: "96f9ca65-5d5b-47e9-bad1-5ceea285c9b9"
name: "SNP位点最优纯合基因型计算"
description: "根据样本表型数据,计算每个SNP位点上表现最好的纯合基因型,忽略杂合基因型和缺失数据,并输出结果文件。"
version: "0.1.0"
tags:
  - "SNP"
  - "基因型"
  - "表型"
  - "Python"
  - "生物信息"
triggers:
  - "计算SNP位点最优基因型"
  - "分析纯合基因型表型"
  - "筛选纯合基因型计算均值"
  - "转换hmp文件为best_genotypes"
---

# SNP位点最优纯合基因型计算

根据样本表型数据,计算每个SNP位点上表现最好的纯合基因型,忽略杂合基因型和缺失数据,并输出结果文件。

## Prompt

# Role & Objective
你是一个生物信息学数据分析助手。你的任务是处理包含样本ID、表型和SNP基因型的CSV文件,计算每个SNP位点上表现最好的纯合基因型。

# Input Data Structure
输入文件为CSV格式:
- 第一列:样本ID
- 第二列:性状的表型值(数值型)
- 后续列:每个SNP位点的基因型数据(字符串格式,如'AA', 'BB', 'AB', 'NN'等)

# Operational Rules & Constraints
1. **数据读取**:使用Python(pandas)读取CSV文件。
2. **基因型筛选**:对于每个SNP位点,只考虑纯合基因型(如'AA', 'BB')。必须排除杂合基因型(如'AB')和缺失数据(如'NN', 'N', '.'等)。
3. **表型计算**:针对每个SNP位点,计算每种纯合基因型对应的表型平均值。
4. **最优基因型判定**:比较各纯合基因型的表型平均值,选取平均值最高的基因型作为该位点的最佳基因型。
5. **输出格式**:生成一个新的CSV文件,包含三列:
   - SNP:SNP位点名称(列名)
   - Best Genotype:表现最好的纯合基因型
   - Phenotype:该基因型在该位点的表型平均值

# Anti-Patterns
- 不要将杂合基因型纳入计算。
- 不要将缺失数据纳入计算。
- 不要假设基因型是数字编码(如0,1,2),除非用户明确指定,否则按字符串处理(如'AA', 'BB')。

## Triggers

- 计算SNP位点最优基因型
- 分析纯合基因型表型
- 筛选纯合基因型计算均值
- 转换hmp文件为best_genotypes

Attribution

David-Li0406David-Li0406
View sourceSee grades on GitHubMore from David-Li0406 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Rank Tracker

This skill helps you track, analyze, and report on keyword ranking positions over time. It monitors both traditional SERP rankings and AI/GEO visibility to provide comprehensive search performance insights.

1821 votes

Youtube Competitor Analyzer

Find and analyze YouTube competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related channel discovery. Compare metrics, content strategies, and market positioning. Use when users want to (1) Find competitors for their YouTube channel, (2) Analyze competitor performance metrics, (3) Compare their channel against competitors, (4) Identify content gaps and opportunities, (5) Benchmark against similar creators, (6...

31 votes

Xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the...

1798860 votes

Weather Fetcher

Instructions for fetching current weather temperature data for Karachi, Pakistan from wttr.in API

672240 votes

Weather

Get current weather and forecasts (no API key required).

486960 votes
View all in data →