{"uid":"cap_MzpHF9lwDVptuxmFb4Pby","slug":"pairwise-dna-sequence-comparison-needleman-wunsch-d3b59396","name":"Pairwise DNA Sequence Comparison (Needleman-Wunsch)","description":"Globally align two DNA sequences of up to 400 bases using fixed Needleman-Wunsch scores; report aligned strings, identity and gaps. No pathogenicity inference. New modular adapter: retained result recovery for 24 hours, minimal receipt metadata for 90 days. Existing live route unchanged.","url":"https://www.mahastrategies.com/api/v1/compute/biology/pairwise-sequence-comparison?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"left":{"type":"string","maxLength":400},"right":{"type":"string","maxLength":400},"dataClass":{"enum":["public","synthetic"],"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.035013","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.035013/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035013","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035013","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wRVsLKixW9cvjoqG2TwUy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.035013","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Globally aligns two DNA sequences (up to 400 bases each) using Needleman-Wunsch scoring and returns aligned strings, percent identity, and gap counts.","exampleAgentPrompt":"Can you globally align these two DNA sequences and tell me their percent identity and gap count? Left: ATCGATCGATCG... Right: ATCGATCGTTCG... — treat them as synthetic data.","exampleUseCases":[{"title":"Primer similarity check for lab design","prompt":"I have two candidate primer sequences — ATCGATCGATCGTTAA and ATCGATCGATCGTTCC — can you align them globally and tell me how similar they are and where the gaps fall? They're synthetic sequences."},{"title":"Mutation detection between two alleles","prompt":"Here are two 80-base DNA sequences from what might be two alleles of the same gene. Align them using global alignment and report the identity percentage and any gaps — AGCTTAGCTAGCTAGCTAAGCT... vs AGCTTAGCTAGCTTGCTAAGCT... Mark them as public data."},{"title":"Validation of synthetic sequence generation","prompt":"I generated a synthetic DNA sequence to match a target — can you align my generated sequence against the target and show me how well they match, including percent identity and number of gaps? Both are synthetic."}],"resultDescription":"Returns the two aligned sequence strings (with gap characters inserted), percent sequence identity, total gap count, and an alignment score computed via fixed Needleman-Wunsch parameters. Results are retained for retrieval for 24 hours; minimal receipt metadata is kept for 90 days.","failureModes":["Sequence exceeds 400-base limit — request rejected with validation error","Invalid characters in sequence string (non-ACGT) — schema validation failure","Unsupported dataClass value — enum validation error","Network or payment failure — no alignment returned, receipt may still be issued","Empty or missing left/right field — required-field validation error"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, fixed-scoring global Needleman-Wunsch alignment for two short DNA sequences (≤400 bases each) and require aligned strings with identity and gap statistics. Prefer it over local alignment (Smith-Waterman) when you want end-to-end global coverage. It does not infer pathogenicity or functional consequences, so it is appropriate for pure structural sequence comparison tasks on public or synthetic data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T00:38:44.710Z","isFirstParty":false,"canonicalSlug":"pairwise-dna-sequence-comparison-needleman-wunsch-d3b59396"}