Documentation

Virtual screening guide

Screen candidate molecules against one target with Melo-1, including input requirements, per-candidate quotes, submission, and result interpretation.

Documentation contents

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

  1. Prepare input: Specify the shared target, and give each candidate a unique id and molecular information.
  2. Get a quote: Call POST /v1/tasks/quote to check each pair's token count and the total batch cost.
  3. Submit: Call POST /v1/tasks/create with the same model, task type, and input; save task_id.
  4. Query and download: Poll GET /v1/tasks/status. Once finished, download the result ZIP from output_url.
  5. 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

FieldTypeRequiredDescription
modelstringNoDefaults to Melo-1; screening supports only this model
task_typeintYesMust be 2; omitting it selects structure prediction
task_namestringNoUsed only at task creation; see task submission for naming rules
input.targetobjectYesTarget shared by all candidates
input.target.sequencesarrayYesTarget molecular entities; at least one entry
input.candidatesarrayYesAt least one candidate
input.candidates[].idstringYesUnique candidate ID linking quotes, summaries, and result files
input.candidates[].sequencesarrayYesMolecular 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.

FieldTypeRequiredDescription
typestringYesprotein, dna, rna, ligand, or ion
idarray[string]YesChain IDs; see format and uniqueness rules below
sequencestringConditionalRequired for protein, dna, and rna; minimum length 4; whitespace is ignored
smilesstringConditionalFor ligand or ion, provide at least one of smiles or ccd; smiles takes precedence
ccdstringConditionalPDB CCD code, preferably uppercase, such as ATP, HEM, or MG
modificationsarrayNoCCD modifications for target or candidate protein, dna, and rna, using [{"position": 2, "ccd": "SEP"}]
template_seqstringNoAvailable only for target protein entities; see below
Sequence typeAllowed characters
proteinStandard 20-amino-acid alphabet: ACDEFGHIKLMNPQRSTVWY
dnaATCG
rnaAUCGN

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; peptide1 and Peptide1 cannot 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's A.
  • 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 }
    ]
  }
}
FieldDescription
token_numSum of tokens across all target–candidate pairs; target tokens are counted in every pair
base_costBatch base cost in credits, summing the tier-based base cost of each pair
quantityBilling quantity; always 1 for screening, not the candidate count
estimated_costEstimated batch credits, summed across pairs
candidate_costsPer-candidate quotes in input order
candidate_costs[].candidate_idCandidate ID from the input
candidate_costs[].token_numTokens for the target paired with this candidate
candidate_costs[].estimated_costTier-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 outcomeTask stateCredit settlement
All candidates succeed4 (COMPLETED)Charge all pairs
Some candidates succeed4 (COMPLETED)Charge successful pairs and release reservations for failed pairs
All candidates fail5 (FAILED)Release all reservations; results remain downloadable if a summary was generated
Cancelled while cancellation is allowed6 (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

ColumnMeaning
idCandidate ID from the input
statusCandidate outcome: success or failed
rankSuccessful candidates ranked by descending ranking_score; blank for failures
ranking_scoreRanking score of this candidate's representative structure
has_clashWhether atomic clashes were detected in the representative structure
iptm / ptmInterface and overall structure confidence of the representative structure
plddtMean atomic pLDDT of the representative structure, from 0–100
sample_countNumber of structure samples used for this candidate's statistics
ranking_score_mean / ranking_score_std / ranking_score_minMean, standard deviation, and minimum sample ranking score for this candidate
clash_sample_countNumber 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.