Skip to content

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:

ValueMeaning
targetedA treatment directed at a specific molecular target.
multi-targetedA treatment directed at multiple molecular targets.
non-targetedA treatment classified as acting without a specific molecular target.
cytotoxicA treatment classified as acting primarily by killing cells.
unknownThe 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.

FieldTypeMeaning and accepted values
nct_idstrRegistered trial to score; combine with parameters to override its design
start_datestrTrial start date
completion_datestrTrial completion date, no earlier than start_date
metricstrTrial progression; endpoint-specific predictions are unavailable Values: progressed.
model_cutoff_yearintOptional model training cutoff for comparison
highest_phaseintClinical trial phase Values: 1, 2, 3.
avg_arm_sizenumberAverage enrollment per arm; fractional averages are valid. V3 accepts zero for compatibility; use null when enrollment is unknown.
total_primary_endpointsintNumber of primary endpoints defined in the protocol
has_comparatorboolTrial includes a comparator arm (e.g. placebo or active control) Values: True, False.
multi_armboolTrial has more than two arms Values: True, False.
combination_therapyboolInvestigational treatment is a combination of multiple agents Values: True, False.
industry_collaboratorsboolTrial has industry sponsorship or collaboration Values: True, False.
has_designationsboolDrug has received FDA designations such as orphan drug, breakthrough therapy, fast track, or priority review Values: True, False.
masking_typestr or list[str]Level of blinding in the trial design Values: Double blind, Single blind, Open label, Triple blind, Quadruple blind, Unknown.
allocationstr or list[str]Method used to assign patients to treatment arms Values: Randomized, Non randomized, Single group, Unknown.
therapy_typestrTherapeutic approach, separate from modality and combination therapy Values: targeted, multi-targeted, non-targeted, cytotoxic, unknown.
line_of_treatmentstr or list[str]Treatment setting description, typically first-line, adjuvant, neoadjuvant, maintenance or subsequent.
drug_nameslist[str]Names of investigational drugs
targetslist[str]Molecular targets of the drugs
sponsorslist[str]Organizations sponsoring the trial
moalist[str]How the drug acts on its target
biomarkerslist[str]Biomarkers used for patient selection or stratification
inclusion_mutationslist[str]Genetic mutations required for trial eligibility
exclusion_mutationslist[str]Genetic mutations that exclude patients from the trial
stageslist[str]Disease stages of enrolled patients
diseaseslist[str]Disease indication names (requires disease_class_ids). Returned by /trials/params/ and reusable in predictions.
disease_class_idslist[str]Gosset disease IDs in the declared ontology. Use identifiers returned by the V3 disease classifier or get_trial_params().
disease_class_ids_v2list[str]V3 disease classifications. Keep this field when reusing get_trial_params() output.
disease_ontology_versionstrClassification 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_idslist[str]Gosset drug modality classification IDs
num_countriesintNumber of countries with trial sites
num_sitesintTotal number of trial sites
us_trialboolTrial has sites in the United States Values: True, False.
eu_trialboolTrial 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.

FieldTypeMeaning and accepted values
phasestr or number or listClinical phase, including 1a, 1b, 2a, 2b or a combination such as 1b/2a.
highest_phaseintHighest whole clinical phase; must agree with phase when both are supplied. Values: 0, 1, 2, 3, 4.
avg_arm_sizenumberAverage enrollment per arm, including comparator arms; greater than zero.
total_primary_endpointsintNumber of primary outcomes; a nonnegative whole number.
drug_nameslist[str]Investigational drug names. Recognized, unambiguous names resolve to drug IDs.
main_drug_idlist[str]Native Gosset drug IDs. Explicit IDs take precedence over display names.
target_class_idslist[str]Gosset target ontology selections. Supply these to select targets without names; conflicting native target IDs are rejected.
target_idslist[str]Native Gosset target IDs. Explicit IDs take precedence over display names.
targetslist[str]Target annotations returned with copied trial parameters. Preserve them when present; use target_class_ids to choose different targets.
sponsorslist[str]Sponsor names. Recognized, unambiguous names resolve to sponsor IDs.
sponsor_idslist[str]Native Gosset sponsor IDs. Explicit IDs take precedence over display names.
disease_class_ids_v4list[str]Current Gosset disease classification IDs. Preserve the classifications returned for the trial.
modality_override_idslist[str]Gosset modality ontology selections that override the linked drug modality for this prediction.
biomarkerslist[str]Patient-selection or stratification biomarker annotations.
stageslist[str]Disease stage or severity annotations.
moalist[str]Mechanism descriptions such as inhibitor, antagonist or agonist.
inclusion_mutationslist[str]Genetic alterations required for enrollment.
exclusion_mutationslist[str]Genetic alterations that exclude patients from enrollment.
has_comparatorboolWhether a comparator arm is present, including placebo or active control.
multi_armboolWhether the study design contains more than one arm.
combination_therapyboolWhether the investigational treatment combines multiple agents.
industry_collaboratorsboolMay 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_typestr 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.
allocationstr or list[str]Allocation method; supply one value, or an empty array when unknown. Values: Randomized, Non randomized, Single group, Unknown.
therapy_typestrTherapeutic approach, separate from drug modality and combination therapy. Values: targeted, multi-targeted, non-targeted, cytotoxic, unknown.
line_of_treatmentstr or list[str]Treatment setting, such as first-line, adjuvant, neoadjuvant, maintenance or subsequent.
recruitmentobjectRecruitment geography: countries is an array of country names; sites is an array of site names or objects.
start_datestrTrial 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_endpointslist[str or object]Primary outcome descriptions; endpoint objects may use measure, name, description and timeFrame.
endpointslist[object]Structured outcomes. Use type="primary" for primary endpoints; clinical is an optional boolean. Use primary_endpoints for primary outcome text.
official_titlestrOfficial trial title supplying protocol context. Supply phase explicitly to change phase detail.
brief_study_namestrShort trial title supplying protocol context. Supply phase explicitly to change phase detail.
brief_summarystrProtocol summary describing the planned trial.
detailed_descriptionstrDetailed protocol description.
eligibilityobjectStructured eligibility description. healthy_volunteers, when present, is a boolean.
design_diagramstr or object or listStructured or textual description of the trial design.
main_drug_modalitieslist[str]Drug modality descriptions used as protocol context.
modalitieslist[str]Treatment modality descriptions used as protocol context.
disease_vaccine_statusstr or object or listVaccine-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 ​

OptionV3V4
model_versionOmit or use v3.Use v4-rc or the currently available explicit release, v4-rc.6.
model_cutoff_yearOptional integer year; retain the returned cutoff for comparisons.Unsupported.
metricprogressed.Unsupported as an option; V4 returns trial progression.
next_phaseOptional phase transition chain.Unsupported.
forecast_atUnsupported.Returned timestamp only; historical requests are unsupported.
variantUnsupported.Omit or use design.

V4 prediction response ​

FieldMeaning
statusready, pending, unsupported or unavailable.
progression_scoreA probability between 0 and 1 when ready; otherwise null.
reasonExplains a pending or unsupported response, when supplied.
nct_idThe requested NCT, or null for direct parameters.
model_versionThe model release that produced the response.
requested_model_versionThe selector supplied in the request.
model_channelThe selected V4 release channel.
variantdesign.
phaseHighest whole phase used for scoring.
highest_phaseSame whole phase as phase.
phase_detailsExplicit phase members, such as ["1b", "2a"].
phase_candidatesConflicting whole phases when trial information disagrees.
input_kindnct (including NCT overrides) or trial_params.
forecast_atTimestamp of input capture; this is not a historical forecast selector.
prediction_generated_atTimestamp when the prediction was generated.
source_last_update_post_dateRegistry update date information, when available; null for direct inputs.
targetprogression; it is not approval or primary endpoint success.
prediction_horizonWhen supplied, identifies eventual progression or a defined progression window and its date anchor.
limitationsInterpretation limits, including whether prospective performance has been validated.
noticeGuidance on interpreting the result.
errorAn 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 ​

FieldMeaning
probabilityProbability of the requested transition or transition chain.
target_phaseFinal phase or stage requested in the chain.
transitionsIndividual steps, each containing from_phase, to_phase, probability and hardcoded.
param_influenceInput-level contribution summaries, when supplied. They are not causal effects.
feature_influenceAdditional contribution information, when supplied.
base_valueBaseline value for the reported contribution calculation, when supplied.
raw_probabilityProbability before the model's probability adjustment, when supplied.
influence_remainderContribution information omitted from the displayed summaries, when supplied.
influence_spaceThe numerical scale used for contribution information, when supplied.
versionsAvailable 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.

Gosset developer documentation