Skip to main content

cBioPortal to BFF

This table summarizes the built-in clinical study mapping. Project-specific patient and sample columns can be added with an optional Mapping V2 file.

cBioPortal sourceBFF destinationBehavior
Study identifierDataset identifierPreserved as the stable dataset identity
Study name and descriptionDataset name and descriptionCopied from study metadata
Patient identifierIndividual identifierRequired and not rewritable by the optional mapping
Patient sex or genderIndividual sexCommon male, female, other, and unknown values are normalized
Patient survival statusPhenopackets vital-status provenanceLiving/alive and deceased values are recognized when present
OncoTree code and cancer labelsIndividual diseaseOne distinct disease term is emitted per patient
Sample identifierBiosample identifierRequired and not rewritable by the optional mapping
Sample patient identifierBiosample individual linkMust resolve to a known patient
OncoTree code and detailed cancer labelBiosample histological diagnosisEmitted as an OncoTree: term
Sample typeSource provenancePreserved exactly; not assumed to be an ontology concept
Case-list stable identifier and nameCohort identifier and namePreserved from each case-list descriptor
Case-list sample membersCohort membership and sizeSamples are resolved to distinct patient identifiers

Required Defaultsโ€‹

BFF requires ontology terms for biosampleStatus and sampleOriginType. cBioPortal clinical tables do not guarantee ontology identifiers for either field, so the built-in mapping uses NCIT:C126101 (Not Available). An optional mapping may replace these defaults with curated terms.

The source value SAMPLE_TYPE=Primary is not mapped to the generic NCIT term whose label is also โ€œPrimary.โ€ Label equality alone does not establish that a source category represents specimen origin.

Source Provenanceโ€‹

With the default --source-info, generated records retain:

  • patient attributes under info.cbioportal.patient
  • sample attributes under info.cbioportal.sample
  • study and attribute-definition metadata under dataset info.cbioportal
  • case-list descriptors and resolved membership under cohort info.cbioportal

--no-source-info removes copied source payloads. Resolved cohort membership is retained because it is part of the converted relationship graph.

Optional Mappingโ€‹

Use source.profile: cbioportal. Individual rules read patient columns and biosample rules read sample columns. Dataset and cohort defaults can augment the source-derived collection metadata. The package identifiers remain authoritative so references cannot be broken by configuration.

See the cBioPortal format guide for commands and input scope.