predict_titan: Apply the legacy TITAN model interface

View source: R/predict.R

predict_titanR Documentation

Apply the legacy TITAN model interface

Description

Backward-compatible wrapper for [predict_pathofm()] with 'foundation_model = "TITAN"'.

Usage

predict_titan(
  cancer,
  features,
  patient_id = NULL,
  outcome_type = c("continuous", "binary"),
  family = NULL,
  warn_ood = TRUE,
  include_limited_evidence = FALSE
)

Arguments

cancer

One TCGA cancer code per row, or one code recycled to all rows.

features

A matrix or data frame containing the correctly named features for 'foundation_model'.

patient_id

Optional identifier per row. Repeated identifiers are pooled.

outcome_type

One or more of 'continuous' and 'binary'.

family

Optional endpoint-family filter.

warn_ood

Warn when over 5 percent of dimensions fall outside training ranges.

include_limited_evidence

Explicitly opt in to limited-sample models that still crossed the representation-specific matched effect threshold. Models tested below the threshold never enter prediction or reporting.

Value

A 'pathofm_predictions' data frame with one row for each patient and available TITAN endpoint. Continuous rows contain predictions in the recorded outcome scale. Binary rows contain an uncalibrated discriminant score and a class call; the score is not a probability.


PathoFMPred documentation built on Nov. 12, 2026, 5:10 p.m.