{"uid":"cap_Qjt3H46bR5dxBqs4t3Afh","slug":"dna-rna-base-composition-gc-fraction-calculator-d3a4972e","name":"DNA/RNA Base Composition & GC Fraction Calculator","description":"Count DNA/RNA bases and ambiguities and calculate GC fraction on called bases only. Refuses mixed DNA/RNA alphabets; no sequence design or clinical inference.","url":"https://www.mahastrategies.com/api/v1/micro/biology-dna-rna-composition?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","sequence","alphabet"],"properties":{"alphabet":{"enum":["DNA","RNA"],"type":"string"},"sequence":{"type":"string","maxLength":4000},"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-dna-rna-composition"],"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":["6001"],"type":"string"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006001","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.006001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TvNQcDXedD_XuXVYzCP_L","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts nucleotide bases and ambiguity characters in a DNA or RNA sequence and calculates the GC fraction on called (non-ambiguous) bases only.","exampleAgentPrompt":"Can you count the bases and calculate the GC fraction for this DNA sequence: ATGCATGCNNNATGC? Mark it as synthetic data and use the DNA alphabet.","exampleUseCases":[{"title":"Quality-check a synthetic gene sequence","prompt":"I have a synthetic DNA sequence I want to analyze — ATGCGGTATCNNAATGCCGT — can you count all the bases, flag any ambiguous characters, and give me the GC fraction on the called bases only?"},{"title":"Verify GC content of an RNA transcript","prompt":"Take this RNA sequence AUGCCCUUUAGGNAUCG and compute the base composition and GC fraction for me — treat it as public data and make sure you use the RNA alphabet."},{"title":"Automated primer GC content check","prompt":"Before I submit this primer for synthesis, can you run the base composition check on GCATCGGCTATGCAATGC as DNA synthetic data and confirm the GC percentage across called bases?"}],"resultDescription":"Returns a structured result containing per-base counts (e.g. A, T/U, G, C), counts of ambiguous/unrecognized characters, total sequence length, and the GC fraction computed only over unambiguous called bases. Also includes offer ID, version, input digest, receipt digest, and the amount charged in base units.","failureModes":["Mixed DNA and RNA alphabet — endpoint refuses sequences containing both DNA-only (T) and RNA-only (U) characters","Sequence exceeds 4000 character limit — returns a validation error","Invalid alphabet enum value — must be exactly 'DNA' or 'RNA'","Invalid dataClass — must be 'public' or 'synthetic'","Empty or missing sequence — required field validation failure","Non-nucleotide characters that fall outside allowed alphabets may be counted as ambiguities or trigger rejection"],"whenToPreferThis":"Use this endpoint when you need a fast, auditable, paid-per-call nucleotide base count and GC fraction for a single DNA or RNA sequence up to 4000 characters. It is strict about alphabet purity (no mixed DNA/RNA), making it reliable for validation pipelines. Prefer it over general-purpose LLM computation when you need a verifiable receipt digest and deterministic count rather than an approximation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:48:36.797Z","isFirstParty":false,"canonicalSlug":"dna-rna-base-composition-gc-fraction-calculator-d3a4972e"}