Predict: Alignment
curl --request POST \
--url https://win.oneshotagent.com/v1/tools/predictimport requests
url = "https://win.oneshotagent.com/v1/tools/predict"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://win.oneshotagent.com/v1/tools/predict', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://win.oneshotagent.com/v1/tools/predict",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://win.oneshotagent.com/v1/tools/predict"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://win.oneshotagent.com/v1/tools/predict")
.asString();require 'uri'
require 'net/http'
url = URI("https://win.oneshotagent.com/v1/tools/predict")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyTools
Predict: Alignment
Compare biological sequences against each other or a fixed public reference, with per-hit identity, coverage and aligned regions.
POST
/
v1
/
tools
/
predict
Predict: Alignment
curl --request POST \
--url https://win.oneshotagent.com/v1/tools/predictimport requests
url = "https://win.oneshotagent.com/v1/tools/predict"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://win.oneshotagent.com/v1/tools/predict', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://win.oneshotagent.com/v1/tools/predict",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://win.oneshotagent.com/v1/tools/predict"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://win.oneshotagent.com/v1/tools/predict")
.asString();require 'uri'
require 'net/http'
url = URI("https://win.oneshotagent.com/v1/tools/predict")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyRuns local sequence comparison, as the
alignment model of Predict. It shares the Predict request path, quote and result delivery; this page covers the alignment input and result only.
{
"model": "alignment",
"time_limit_s": 30,
"alignment": {
"mode": "pairwise",
"sequence_type": "protein",
"sequences": [
{ "id": "query", "sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ" },
{ "id": "target", "sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGAIEVA" }
]
}
}
mode:pairwise(compare every unordered pair of 2 to 50 sequences; the earlier entry is the query, the later the target) orsearch(run 1 to 10 queries against a fixed public reference).sequence_type:auto(default),proteinornucleotidefor the whole list. Underautothe type is detected and an alphabet-ambiguous protein must be stated asprotein.sequences[]:{ id, sequence }, with ids 1 to 128 characters and unique.time_limit_s: 1 to 120 seconds, default 20.
- Protein: the 20 canonical letters, 20 to 10,000 residues.
- Nucleotide: A, C, G, T, U, 66 to 10,000 bases, with U read as T and a T/U mix refused.
- Combined length: at most 100,000.
- Refused: gaps, whitespace, ambiguity letters, headers, reads, quality scores and file formats.
invalid_input and a code: sequence_count, sequence_length, sequence_alphabet, total_residues or mixed_sequence_types.
prediction.queries holds one { id, hits } entry per sequence in input order. In pairwise only later entries are targets; no match is an empty list. Each hit carries:
target_id,identity,coverage,e_value,bit_scorealigned_region: 1-based and inclusive, on the original sequencesreference_release:2025_01forsearch,nullforpairwise
meta reports the resolved type and the comparison counts; checks reports the input and consistency checks. On a timeout only completed comparisons are returned.
search runs against UniProtKB reviewed (Swiss-Prot) release 2025_01, and the result’s reference_attribution field carries the attribution its licence requires:
UniProtKB reviewed (Swiss-Prot) release 2025_01, distributed under CC BY 4.0. Source: https://www.uniprot.org/.Some requests are declined: HTTP 422
{ "error": "request_refused", "message": "This request cannot be processed." }, or HTTP 503 with code service_unavailable and the same message when the service is temporarily unavailable. A refused request is not charged.