Appearance
PTRS field reference
Use this reference with the PTRS guide. Select the model explicitly when comparing predictions. Supply a trial identity or a phase to score a request. Phase and indication are enough for a minimal V4 estimate; additional inputs may be left unknown. Omitting an optional trial-information value or setting it to None represents unknown information. Prediction options use their documented values. An empty array means no entries are supplied.
Therapeutic approach
therapy_type accepts a single string:
| Value | Meaning |
|---|---|
targeted | A treatment directed at a specific molecular target. |
multi-targeted | A treatment directed at multiple molecular targets. |
non-targeted | A treatment classified as acting without a specific molecular target. |
cytotoxic | A treatment classified as acting primarily by killing cells. |
unknown | The therapeutic approach is unclassified. |
Use combination_therapy for combinations of agents. Drug modality, such as an antibody or small molecule, is a separate classification. These categories describe the treatment; they do not establish its clinical efficacy.
V3 inputs
Supply nct_id or highest_phase. Only phases 1, 2 and 3 can receive progression predictions. Preserve the classification and timing fields returned by get_trial_params() when reproducing a trial. metric="progressed" is the available prediction metric; endpoint-specific predictions are unavailable. V3 accepts a fractional average arm size. A zero arm size is accepted for compatibility; use None for unknown enrollment in new requests.
| Field | Type | Meaning and accepted values |
|---|---|---|
nct_id | str | Registered trial to score; combine with parameters to override its design |
start_date | str | Trial start date |
completion_date | str | Trial completion date, no earlier than start_date |
metric | str | Trial progression; endpoint-specific predictions are unavailable Values: progressed. |
model_cutoff_year | int | Optional model training cutoff for comparison |
highest_phase | int | Clinical trial phase Values: 1, 2, 3. |
avg_arm_size | number | Average enrollment per arm; fractional averages are valid. V3 accepts zero for compatibility; use null when enrollment is unknown. |
total_primary_endpoints | int | Number of primary endpoints defined in the protocol |
has_comparator | bool | Trial includes a comparator arm (e.g. placebo or active control) Values: True, False. |
multi_arm | bool | Trial has more than two arms Values: True, False. |
combination_therapy | bool | Investigational treatment is a combination of multiple agents Values: True, False. |
industry_collaborators | bool | Trial has industry sponsorship or collaboration Values: True, False. |
has_designations | bool | Drug has received FDA designations such as orphan drug, breakthrough therapy, fast track, or priority review Values: True, False. |
masking_type | str or list[str] | Level of blinding in the trial design Values: Double blind, Single blind, Open label, Triple blind, Quadruple blind, Unknown. |
allocation | str or list[str] | Method used to assign patients to treatment arms Values: Randomized, Non randomized, Single group, Unknown. |
therapy_type | str | Therapeutic approach, separate from modality and combination therapy Values: targeted, multi-targeted, non-targeted, cytotoxic, unknown. |
line_of_treatment | str or list[str] | Treatment setting description, typically first-line, adjuvant, neoadjuvant, maintenance or subsequent. |
drug_names | list[str] | Names of investigational drugs |
targets | list[str] | Molecular targets of the drugs |
sponsors | list[str] | Organizations sponsoring the trial |
moa | list[str] | How the drug acts on its target |
biomarkers | list[str] | Biomarkers used for patient selection or stratification |
inclusion_mutations | list[str] | Genetic mutations required for trial eligibility |
exclusion_mutations | list[str] | Genetic mutations that exclude patients from the trial |
stages | list[str] | Disease stages of enrolled patients |
diseases | list[str] | Disease indication names (requires disease_class_ids). Returned by /trials/params/ and reusable in predictions. |
disease_class_ids | list[str] | Gosset disease IDs in the declared ontology. Use identifiers returned by the V3 disease classifier or get_trial_params(). |
disease_class_ids_v2 | list[str] | V3 disease classifications. Keep this field when reusing get_trial_params() output. |
disease_ontology_version | str | Classification version of disease_class_ids. Use the version returned by the classifier; retain all classification fields when reusing trial parameters. Values: v1, v2. |
modality_class_ids | list[str] | Gosset drug modality classification IDs |
num_countries | int | Number of countries with trial sites |
num_sites | int | Total number of trial sites |
us_trial | bool | Trial has sites in the United States Values: True, False. |
eu_trial | bool | Trial has sites in Europe, including the EU, EEA, UK and Switzerland Values: True, False. |
V4 inputs
In the SDK, pass these fields in the dictionary supplied to estimate_ptrs(..., model_version="v4-rc"). For HTTP requests, place them inside trial_params; put nct_id, model_version and optional variant="design" alongside that object.
Direct predictions require phase or highest_phase. Phase and indication are enough for a minimal estimate; other inputs may be omitted when unknown. An NCT request derives industry involvement from its sponsor and collaborators. V4 returns no score for confirmed non-industry involvement. Unknown involvement is accepted with a notice describing the model's development population. For phase="1b/2a", the highest phase is 2 and both subphases are retained. Phase 4 can be described but receives no progression score. Phase 0 receives no progression score. A supplied phase or highest_phase cannot be null. Supply one value for allocation and masking, either as a string or a one-element array. Known category labels accept case, whitespace, hyphen and underscore variants.
Native record IDs, such as main_drug_id, and classification IDs, such as disease_class_ids_v4, serve different purposes. Keep IDs returned by Gosset. Recognized, unambiguous drug and sponsor names can resolve to IDs; ambiguous names need explicit IDs. Select V4 indications and molecular targets using ontology IDs. To resolve names automatically, omit the corresponding ID fields instead of supplying null or empty ID arrays. Retain all returned ID fields, including empty arrays, when reproducing an NCT. An explicit new ID does not acquire the history of a similarly named existing record. Information absent for that ID remains unavailable.
| Field | Type | Meaning and accepted values |
|---|---|---|
phase | str or number or list | Clinical phase, including 1a, 1b, 2a, 2b or a combination such as 1b/2a. |
highest_phase | int | Highest whole clinical phase; must agree with phase when both are supplied. Values: 0, 1, 2, 3, 4. |
avg_arm_size | number | Average enrollment per arm, including comparator arms; greater than zero. |
total_primary_endpoints | int | Number of primary outcomes; a nonnegative whole number. |
drug_names | list[str] | Investigational drug names. Recognized, unambiguous names resolve to drug IDs. |
main_drug_id | list[str] | Native Gosset drug IDs. Explicit IDs take precedence over display names. |
target_class_ids | list[str] | Gosset target ontology selections. Supply these to select targets without names; conflicting native target IDs are rejected. |
target_ids | list[str] | Native Gosset target IDs. Explicit IDs take precedence over display names. |
targets | list[str] | Target annotations returned with copied trial parameters. Preserve them when present; use target_class_ids to choose different targets. |
sponsors | list[str] | Sponsor names. Recognized, unambiguous names resolve to sponsor IDs. |
sponsor_ids | list[str] | Native Gosset sponsor IDs. Explicit IDs take precedence over display names. |
disease_class_ids_v4 | list[str] | Current Gosset disease classification IDs. Preserve the classifications returned for the trial. |
modality_override_ids | list[str] | Gosset modality ontology selections that override the linked drug modality for this prediction. |
biomarkers | list[str] | Patient-selection or stratification biomarker annotations. |
stages | list[str] | Disease stage or severity annotations. |
moa | list[str] | Mechanism descriptions such as inhibitor, antagonist or agonist. |
inclusion_mutations | list[str] | Genetic alterations required for enrollment. |
exclusion_mutations | list[str] | Genetic alterations that exclude patients from enrollment. |
has_comparator | bool | Whether a comparator arm is present, including placebo or active control. |
multi_arm | bool | Whether the study design contains more than one arm. |
combination_therapy | bool | Whether the investigational treatment combines multiple agents. |
industry_collaborators | bool | May be omitted when unknown. None uses registered information for an NCT. The model was developed on industry-involved trials; confirmed non-industry involvement is unsupported. This is not a predictor. |
masking_type | str or list[str] | Blinding level; supply one value, or an empty array when unknown. Values: Open label, Single blind, Double blind, Triple blind, Quadruple blind, Unknown. |
allocation | str or list[str] | Allocation method; supply one value, or an empty array when unknown. Values: Randomized, Non randomized, Single group, Unknown. |
therapy_type | str | Therapeutic approach, separate from drug modality and combination therapy. Values: targeted, multi-targeted, non-targeted, cytotoxic, unknown. |
line_of_treatment | str or list[str] | Treatment setting, such as first-line, adjuvant, neoadjuvant, maintenance or subsequent. |
recruitment | object | Recruitment geography: countries is an array of country names; sites is an array of site names or objects. |
start_date | str | Trial start date and cutoff for historical and regulatory evidence. Changing or clearing it can substantially change the prediction. Accepts YYYY, YYYY-MM, YYYY-MM-DD or an ISO timestamp. |
primary_endpoints | list[str or object] | Primary outcome descriptions; endpoint objects may use measure, name, description and timeFrame. |
endpoints | list[object] | Structured outcomes. Use type="primary" for primary endpoints; clinical is an optional boolean. Use primary_endpoints for primary outcome text. |
official_title | str | Official trial title supplying protocol context. Supply phase explicitly to change phase detail. |
brief_study_name | str | Short trial title supplying protocol context. Supply phase explicitly to change phase detail. |
brief_summary | str | Protocol summary describing the planned trial. |
detailed_description | str | Detailed protocol description. |
eligibility | object | Structured eligibility description. healthy_volunteers, when present, is a boolean. |
design_diagram | str or object or list | Structured or textual description of the trial design. |
main_drug_modalities | list[str] | Drug modality descriptions used as protocol context. |
modalities | list[str] | Treatment modality descriptions used as protocol context. |
disease_vaccine_status | str or object or list | Vaccine-related indication context. |
For structured primary endpoints, use {"type":"primary","measure":"Overall survival","clinical":true}. total_primary_endpoints is a separately supplied count; providing outcome descriptions does not automatically replace that count.
Use country names such as "United States" in recruitment.countries. Supply arrays for countries and sites when included. Omit the whole recruitment object, or set it to None, when recruitment geography is unknown.
Changing the drug in an NCT scenario clears the previous drug's approach, mechanism and modality descriptions unless you supply replacements. The new drug's available classifications are used. A changed disease, sponsor or target may require new associated IDs; retain the complete parameters for an exact comparison. Model estimates for a changed design describe a scenario and do not establish a causal effect.
V4 accepts indication ontology IDs through disease_class_ids_v4, target ontology IDs through target_class_ids, and modality overrides through modality_override_ids. Legacy aliases, separate indication names and completion-date inputs are rejected. Keep the returned parameters together to reproduce a trial.
Prediction options
| Option | V3 | V4 |
|---|---|---|
model_version | Omit or use v3. | Use v4-rc or the currently available explicit release, v4-rc.6. |
model_cutoff_year | Optional integer year; retain the returned cutoff for comparisons. | Unsupported. |
metric | progressed. | Unsupported as an option; V4 returns trial progression. |
next_phase | Optional phase transition chain. | Unsupported. |
forecast_at | Unsupported. | Returned timestamp only; historical requests are unsupported. |
variant | Unsupported. | Omit or use design. |
V4 prediction response
| Field | Meaning |
|---|---|
status | ready, pending, unsupported or unavailable. |
progression_score | A probability between 0 and 1 when ready; otherwise null. |
reason | Explains a pending or unsupported response, when supplied. |
nct_id | The requested NCT, or null for direct parameters. |
model_version | The model release that produced the response. |
requested_model_version | The selector supplied in the request. |
model_channel | The selected V4 release channel. |
variant | design. |
phase | Highest whole phase used for scoring. |
highest_phase | Same whole phase as phase. |
phase_details | Explicit phase members, such as ["1b", "2a"]. |
phase_candidates | Conflicting whole phases when trial information disagrees. |
input_kind | nct (including NCT overrides) or trial_params. |
forecast_at | Timestamp of input capture; this is not a historical forecast selector. |
prediction_generated_at | Timestamp when the prediction was generated. |
source_last_update_post_date | Registry update date information, when available; null for direct inputs. |
target | progression; it is not approval or primary endpoint success. |
prediction_horizon | When supplied, identifies eventual progression or a defined progression window and its date anchor. |
limitations | Interpretation limits, including whether prospective performance has been validated. |
notice | Guidance on interpreting the result. |
error | An error message for an unsuccessful request. The SDK may raise an exception. |
A failed HTTP request may return only status and error; successful prediction fields are not guaranteed on errors. Never interpret a missing score as zero. See the API reference for error handling.
V3 prediction response
| Field | Meaning |
|---|---|
probability | Probability of the requested transition or transition chain. |
target_phase | Final phase or stage requested in the chain. |
transitions | Individual steps, each containing from_phase, to_phase, probability and hardcoded. |
param_influence | Input-level contribution summaries, when supplied. They are not causal effects. |
feature_influence | Additional contribution information, when supplied. |
base_value | Baseline value for the reported contribution calculation, when supplied. |
raw_probability | Probability before the model's probability adjustment, when supplied. |
influence_remainder | Contribution information omitted from the displayed summaries, when supplied. |
influence_space | The numerical scale used for contribution information, when supplied. |
versions | Available model and data version information. |
Contribution fields may be absent or null. Each transition may also contain its own contribution fields. Chained estimates multiply transition probabilities. The registration-to-approval step uses a fixed 0.95 assumption and is identified by hardcoded=true.
Trial parameter response
get_trial_params() returns a wrapper; pass its trial_params dictionary to the matching model. V3 responses include nct_id, trial_params, model_cutoff_year and available versions. The V4 parameter endpoint additionally reports status, reason, model identifiers and phase details. Only a ready V4 response contains a complete reusable trial_params object.
Use get_schema(model_version="v4-rc") for V4 field discovery. The default get_schema() remains the V3 schema.