Dna rna sequence analysis

From InternScience/scp · View interactive version

Dna rna sequence analysis is an AI agent skill from the GitHub repository InternScience/scp. Analyze DNA and RNA sequences including molecular weight calculation, reverse complement generation, and oligonucleotide properties.

How to use this skill

Skill file

DNA/RNA Sequence Analysis

Usage

1. MCP Server Definition

Use the same BiologyToolsClient class as defined in the protein-properties-calculation skill.

2. DNA/RNA Sequence Analysis Workflow

This workflow analyzes DNA and RNA sequences, calculating molecular weight, GC content, melting temperature, and generating reverse complements.

Workflow Steps:

  1. Calculate DNA Molecular Weight - Compute molecular weight for DNA sequences
  2. Calculate Oligonucleotide Properties - Compute GC content, Tm, extinction coefficient for RNA
  3. Generate Reverse Complement - Create reverse complement sequence

Implementation:

## Initialize client
HEADERS = {"SCP-HUB-API-KEY": "<your-api-key>"}

client = BiologyToolsClient(
    "https://scp.intern-ai.org.cn/api/v1/mcp/29/SciToolAgent-Bio",
    HEADERS
)

if not await client.connect():
    print("connection failed")
    exit()

print("=== DNA/RNA Sequence Analysis ===\n")

## Step 1: Calculate DNA molecular weight
print("Step 1: DNA Molecular Weight")
dna_sequence = "ATGATGTAACGTAGCTAG"
sequence_para = f"seq1:{dna_sequence}.strand=single,topology=linear"

result = await client.client.call_tool(
    "DNAMolecularWeightCalculator",
    arguments={"sequence_para": sequence_para}
)
result_data = client.parse_result(result)
print(f"DNA Sequence: {dna_sequence}")
print(f"Result:\n{result_data}\n")

## Step 2: Calculate oligonucleotide (RNA) properties
print("Step 2: Oligonucleotide (RNA) Properties")
rna_sequence = "AUGAUGUAACGUAGCUAG"

result = await client.client.call_tool(
    "CalculatorOligonucleotide",
    arguments={"sq": rna_sequence}
)
result_data = client.parse_result(result)
print(f"RNA Sequence: {rna_sequence}")
print(f"Result:\n{result_data}\n")

## Step 3: Generate reverse complement
print("Step 3: Reverse Complement")
test_sequence = "ATCGATCG"

result = await client.client.call_tool(
    "GetReverseComplement",
    arguments={"sequence": test_sequence}
)
result_data = client.parse_result(result)
print(f"Original Sequence: {test_sequence}")
print(f"Reverse Complement:\n{result_data}\n")

## Step 4: Calculate annealing temperature for primers
print("Step 4: PCR Primer Annealing Temperature")
primer_sequence = "GCTAGCTAGCTA"

result = await client.client.call_tool(
    "ComputeAnnealingTemperature",
    arguments={"sequence": primer_sequence}
)
result_data = client.parse_result(result)
print(f"Primer Sequence: {primer_sequence}")
print(f"Result:\n{result_data}\n")

await client.disconnect()

Tool Descriptions

SciToolAgent-Bio Server:

Input/Output

Input:

Output:

Use Cases

Sequence Format for DNA Molecular Weight

Format: "seqName:SEQUENCE.strand=X,topology=Y"

Parameters:

Example: "plasmid1:ATGCATGC.strand=double,topology=circular"

GC Content and Tm

Additional DNA/RNA Tools Available

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.