{"uid":"cap_biZiKU2dDeqUpWltVMQYR","slug":"hp-lattice-protein-folding-energy-evaluator-df008488","name":"HP Lattice Protein Folding Energy Evaluator","description":"Checks that a hydrophobic/polar sequence follows a self-avoiding unit-step lattice path, then counts non-consecutive hydrophobic contacts and assigns one negative energy unit per contact. It evaluates a supplied toy conformation only; it neither predicts a fold nor represents atomic chemistry, kinetics, solvent or biological function.","url":"https://bio.halowerk.com/v1/protein-folding","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"coordinates":{"type":"array","items":{"type":"object","required":["x","y"],"properties":{"x":{"type":"integer","maximum":1000000,"minimum":-1000000},"y":{"type":"integer","maximum":1000000,"minimum":-1000000}},"additionalProperties":false},"maxItems":256,"minItems":3},"hp_sequence":{"type":"string","pattern":"^[HP]+$","maxLength":256,"minLength":3,"description":"Hydrophobic/polar toy-model sequence."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5z5o92breUOXlFVVnQfJI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a 2D hydrophobic/polar (HP) lattice conformation and computes its energy by counting non-consecutive hydrophobic contacts, assigning -1 energy unit per contact.","exampleAgentPrompt":"Check whether the HP sequence 'HPPHPPHHPH' placed at coordinates [(0,0),(1,0),(1,1),(0,1),(0,2),(1,2),(2,2),(2,1),(2,0),(3,0)] forms a valid self-avoiding lattice walk and tell me its energy score based on hydrophobic contacts.","exampleUseCases":[{"title":"Validating a hand-designed HP conformation","prompt":"I've manually laid out the HP sequence 'HPHPPH' on a 2D grid at positions (0,0),(1,0),(2,0),(2,1),(1,1),(0,1) — can you check if it's a valid self-avoiding walk and compute the hydrophobic contact energy?"},{"title":"Comparing energy of candidate folds","prompt":"I have two proposed conformations for the sequence 'HHPPHH' — the first uses coordinates (0,0),(1,0),(1,1),(1,2),(0,2),(0,1). Evaluate its HP lattice energy so I can compare it against alternative folds."},{"title":"Scoring output from a lattice search algorithm","prompt":"My search algorithm produced a candidate fold for the HP string 'PHPHHPPH' with coordinates (0,0),(0,1),(1,1),(2,1),(2,0),(1,0),(1,-1),(2,-1). Score the energy of this conformation and confirm it passes the self-avoiding walk check."}],"resultDescription":"Returns whether the supplied coordinate path forms a valid self-avoiding unit-step lattice walk for the given HP sequence, along with the computed energy as a non-positive integer (one -1 unit per non-consecutive H-H contact pair).","failureModes":["Coordinates that are not unit steps apart will fail validation","Path that revisits a lattice point (not self-avoiding) will be rejected","Sequence length not matching coordinate count will return an error","Sequence containing characters other than H or P will be rejected","Fewer than 3 residues or more than 256 will violate schema constraints","Coordinate values outside [-1000000, 1000000] will be rejected"],"whenToPreferThis":"Use this endpoint when you need to score or validate a specific pre-defined 2D HP lattice conformation rather than predict a fold from scratch. Ideal for validating output from custom lattice search algorithms, checking homework or textbook examples, or benchmarking multiple candidate folds in the HP toy model. Not suitable for real atomic-resolution structure prediction, 3D folds, or biological energy functions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:44:35.283Z","isFirstParty":false}