{"uid":"cap_b1z3XOvFDfw_Iki32lhZ-","slug":"pairwise-dna-sequence-alignment-needleman-wunsch-1fe3e883","name":"Pairwise DNA Sequence Alignment (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.","url":"https://www.mahastrategies.com/api/v1/micro/biology-pairwise-sequence-comparison?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["dataClass","left","right"],"properties":{"left":{"type":"string","maxLength":400},"right":{"type":"string","maxLength":400},"dataClass":{"enum":["public","synthetic"],"type":"string"}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["version","offerId","amountBaseUnits","inputDigest","result","boundaries","receiptDigest"],"properties":{"result":{"type":"object"},"offerId":{"enum":["biology-pairwise-sequence-comparison"],"type":"string"},"version":{"enum":["maha-microproducts/0.1"],"type":"string"},"boundaries":{"type":"array","maxItems":128,"minItems":0},"inputDigest":{"type":"string","maxLength":71},"receiptDigest":{"type":"string","maxLength":71},"amountBaseUnits":{"enum":["18001"],"type":"string"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.018001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.018001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HTQu_QQEf3GEIhW5394KQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.018001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Globally aligns two DNA sequences of up to 400 bases using Needleman-Wunsch scoring, returning aligned strings, percent identity, and gap statistics.","exampleAgentPrompt":"Align these two DNA sequences for me using global Needleman-Wunsch alignment and tell me the percent identity and gap counts — left sequence: ATGCGTACGTTAG, right sequence: ATGCGAACGTTAG — treat this as public data.","exampleUseCases":[{"title":"Primer similarity check before PCR","prompt":"Compare these two primer sequences to see how similar they are — left: ATGCGTACGTTAG, right: ATGCGAACGTTAG — run a global alignment and report identity and gaps, public data."},{"title":"Variant detection in cloned insert","prompt":"I have an expected insert sequence and a sequenced result from my cloning experiment. Can you globally align them and tell me the identity percentage and any gaps? Left: CGATTAGCGCAAGTTAGC, Right: CGATTAGCGCAAGTTGGC, treating them as public data."},{"title":"Evolutionary sequence divergence study","prompt":"Align these two homologous gene fragments from different species so I can quantify their divergence — left: ATCGGCTAGCTAGCTA, right: ATCGGCAAGCTAGCTT — public data, give me the full alignment and identity score."}],"resultDescription":"Returns aligned versions of both input sequences showing inserted gaps, the percent sequence identity between them, and total gap statistics — all computed via fixed Needleman-Wunsch scoring. No pathogenicity or clinical inference is included.","failureModes":["Sequence longer than 400 bases returns a validation error","Non-nucleotide characters in sequences cause rejection","Missing required fields (left, right, dataClass) return schema validation error","Invalid dataClass value (not 'public' or 'synthetic') causes error","Payment failure via x402 protocol results in no response"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, reproducible global pairwise alignment of two short-to-medium DNA sequences (up to 400 bases) with standard Needleman-Wunsch scoring and explicit identity/gap output. Prefer it over local alignment tools (like BLAST-style endpoints) when you need end-to-end global alignment rather than best local match, and when sequences are short enough to fit the 400-base limit.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:48:14.330Z","isFirstParty":false,"canonicalSlug":"pairwise-dna-sequence-alignment-needleman-wunsch-1fe3e883"}