Virtual screening pairs one target separately with multiple candidate molecules, predicts the complex structures in a batch, and summarizes candidate rankings and confidence. One task can compare peptides or small-molecule ligands, and each candidate may contain multiple molecular entities.
Use model Melo-1 and task type 2, with the shared quote, create, query, list, and cancel endpoints in the task management API. See the API integration guide for authentication and response conventions.
Workflow
- Prepare input: Specify the shared
target, and give each candidate a uniqueidand molecular information. - Get a quote: Call
POST /v1/tasks/quoteto check each pair's token count and the total batch cost. - Submit: Call
POST /v1/tasks/createwith the same model, task type, and input; savetask_id. - Query and download: Poll
GET /v1/tasks/status. Once finished, download the result ZIP fromoutput_url. - Review candidates: Read
summary.csv, then locate each candidate's structures by its ID.
Input format
This example pairs one protein target with two peptide candidates. Peptides use protein; small-molecule candidates use ligand with smiles or ccd.
Save this request as screening.json for the quote and submission examples:
{
"model": "Melo-1",
"task_type": 2,
"input": {
"target": {
"sequences": [
{
"type": "protein",
"id": ["A"],
"sequence": "MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGG"
}
]
},
"candidates": [
{
"id": "peptide1",
"sequences": [
{ "type": "protein", "id": ["B"], "sequence": "ACDEFGHIKLMNPQRSTVWY" }
]
},
{
"id": "peptide2",
"sequences": [
{ "type": "protein", "id": ["B"], "sequence": "ACDEFGHIKL" }
]
}
]
}
}
This example illustrates the request format; it is not a validated binding molecule.
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
model | string | No | Defaults to Melo-1; screening supports only this model |
task_type | int | Yes | Must be 2; omitting it selects structure prediction |
task_name | string | No | Used only at task creation; see task submission for naming rules |
input.target | object | Yes | Target shared by all candidates |
input.target.sequences | array | Yes | Target molecular entities; at least one entry |
input.candidates | array | Yes | At least one candidate |
input.candidates[].id | string | Yes | Unique candidate ID linking quotes, summaries, and result files |
input.candidates[].sequences | array | Yes | Molecular entities for this candidate; at least one entry |
Molecular entity parameters
target.sequences and each candidate's sequences use the following fields. Model names and molecule types are case-sensitive.
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | protein, dna, rna, ligand, or ion |
id | array[string] | Yes | Chain IDs; see format and uniqueness rules below |
sequence | string | Conditional | Required for protein, dna, and rna; minimum length 4; whitespace is ignored |
smiles | string | Conditional | For ligand or ion, provide at least one of smiles or ccd; smiles takes precedence |
ccd | string | Conditional | PDB CCD code, preferably uppercase, such as ATP, HEM, or MG |
modifications | array | No | CCD modifications for target or candidate protein, dna, and rna, using [{"position": 2, "ccd": "SEP"}] |
template_seq | string | No | Available only for target protein entities; see below |
| Sequence type | Allowed characters |
|---|---|
protein | Standard 20-amino-acid alphabet: ACDEFGHIKLMNPQRSTVWY |
dna | ATCG |
rna | AUCGN |
Use uppercase sequences where possible. SMILES and CCD codes are also validated. Send only the input parameters described in this guide.
Modification positions are 1-based, and the CCD category must match the molecule type. See CCD modifications for rules and protein, DNA, and RNA examples. Target modifications count in every target–candidate pair; candidate modifications count only in their own pair. Each modification replaces 1 token with the CCD heavy-atom count, multiplied by the entity's chain copies.
Candidate and chain IDs
- Candidate ID: 1–100 characters using only English letters, digits, underscores, and hyphens, starting with a letter or digit. IDs must be unique ignoring case within a task;
peptide1andPeptide1cannot coexist. - Chain IDs (
sequences[].id): Each entry contains 1–50 IDs of 1–50 characters each. Screening chain IDs may contain only English letters and digits. - Unique within each complex: Chain IDs must be distinct across the target and any one candidate. Different candidates may reuse IDs: both candidates above use
B, but neither may reuse the target'sA. - Sequence format: Prefer uppercase sequences without whitespace. Protein, DNA, and RNA sequences require at least 4 residues or bases each.
To specify a sequence for template searching, use optional template_seq on a target protein entity. It accepts standard one-letter amino acids up to length 2,000. Omitted, null, or empty values use the default template search. The target actually predicted is still specified by sequence.
Quote and submit
Get batch and per-candidate quotes
Replace the placeholder with your API key:
curl --request POST 'https://api.atomelody.com/v1/tasks/quote' \
--header 'Authorization: Bearer ak_your_api_key_here' \
--header 'Content-Type: application/json' \
--data-binary @screening.json
The input above contains a 76-residue target and peptide candidates of 20 and 10 residues. Example response:
{
"code": "OK",
"message": "OK",
"data": {
"token_num": 182,
"base_cost": 20,
"quantity": 1,
"estimated_cost": 20,
"candidate_costs": [
{ "candidate_id": "peptide1", "token_num": 96, "estimated_cost": 10 },
{ "candidate_id": "peptide2", "token_num": 86, "estimated_cost": 10 }
]
}
}
| Field | Description |
|---|---|
token_num | Sum of tokens across all target–candidate pairs; target tokens are counted in every pair |
base_cost | Batch base cost in credits, summing the tier-based base cost of each pair |
quantity | Billing quantity; always 1 for screening, not the candidate count |
estimated_cost | Estimated batch credits, summed across pairs |
candidate_costs | Per-candidate quotes in input order |
candidate_costs[].candidate_id | Candidate ID from the input |
candidate_costs[].token_num | Tokens for the target paired with this candidate |
candidate_costs[].estimated_cost | Tier-based estimated credits for this pair |
The 2,000-token limit applies to each pair, not the summed token_num. Price each pair using its own tier, then add the costs; do not apply a single tier to all batch tokens. See screening billing.
Quoting does not create tasks, reserve credits, or lock prices. Both quoting and creation enforce the 1,000-credit task limit, returning INVALID_ARGUMENT when exceeded. Invalid molecular input or pair token counts return INVALID_SEQUENCE.
Submit a screening task
After confirming the quote, submit the same input:
To cap your task cost, add top-level max_cost to screening.json, using quoted data.estimated_cost (20 above). If the batch cost at creation exceeds it, the API returns MAX_COST_EXCEEDED without creating a task or reserving credits. Omitted or 0 means no user-specified cap. The platform's 1,000-credit task limit still applies.
curl --request POST 'https://api.atomelody.com/v1/tasks/create' \
--header 'Authorization: Bearer ak_your_api_key_here' \
--header 'Content-Type: application/json' \
--data-binary @screening.json
See the task creation response for returned fields. Save data.task_id and check the actual reservation in data.billing_order.frozen.
Query status and download results
For longer waits, use the task waiting script. It polls automatically and prints only status changes and the final result.
curl --get 'https://api.atomelody.com/v1/tasks/status' \
--header 'Authorization: Bearer ak_your_api_key_here' \
--data-urlencode 'task_id=<TASK_ID>'
The status endpoint returns the task ID, status, and result URL or error when applicable. Use /v1/tasks/query for task_type, target, and candidate inputs. Status codes follow the task state table; candidate outcomes are in the downloaded summary.csv.
| Screening outcome | Task state | Credit settlement |
|---|---|---|
| All candidates succeed | 4 (COMPLETED) | Charge all pairs |
| Some candidates succeed | 4 (COMPLETED) | Charge successful pairs and release reservations for failed pairs |
| All candidates fail | 5 (FAILED) | Release all reservations; results remain downloadable if a summary was generated |
| Cancelled while cancellation is allowed | 6 (CANCELLED) | Release all reservations |
output_url is valid for 10 minutes; query again after expiry. Download using the complete returned URL. See the task management API for errors and cancellation rules.
Result files and interpretation
The ZIP root contains a summary table and result ZIPs for successful candidates. For example, when both candidates succeed:
output.zip
├── summary.csv
├── peptide1.zip
└── peptide2.zip
summary.csv retains all candidates. Failed candidates have no corresponding structure ZIP. If all fail but a summary is generated, the download contains only summary.csv.
Common summary fields
| Column | Meaning |
|---|---|
id | Candidate ID from the input |
status | Candidate outcome: success or failed |
rank | Successful candidates ranked by descending ranking_score; blank for failures |
ranking_score | Ranking score of this candidate's representative structure |
has_clash | Whether atomic clashes were detected in the representative structure |
iptm / ptm | Interface and overall structure confidence of the representative structure |
plddt | Mean atomic pLDDT of the representative structure, from 0–100 |
sample_count | Number of structure samples used for this candidate's statistics |
ranking_score_mean / ranking_score_std / ranking_score_min | Mean, standard deviation, and minimum sample ranking score for this candidate |
clash_sample_count | Number of this candidate's samples with detected atomic clashes |
Successful candidates precede failed ones in the summary. Read CSV fields by column name and associate input and result files through id, not input order or fixed column positions. Additional unlisted fields may be ignored. Failed candidates have blank scores; do not treat blanks as zero in comparisons.
Evaluate candidates using ranking scores, interface confidence, clashes, and their actual structures together. Differences between sample scores describe score variability, not necessarily structural convergence. These metrics are not experimental binding affinity or activity measurements.
Use the virtual screening report template to create an offline interactive report from the complete batch ZIP. Locate candidates in the ranking table, then inspect each one's 3D structure, PAE, and pLDDT.