Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

TCGADataTool

Guides

  • TCGA Data Tool

Tech Notes

  • Custom Entities
  • Data Exploration
  • Data Modeling
  • Data Visualization
  • Genomic Data
  • Images Download
  • Property Standard Name
  • User Interface

Symbols

  • buildDesignMatrix
  • buildModel
  • cleanRawData
  • columnHeaderRiskClassSummary
  • downloadGenomicData
  • dynamicallyExploreThreshold
  • exampleDataTCGA
  • getHistologicalImages
  • getPotentialPredictors
  • importGenomicDataFile
  • inspectPotentialPredictors
  • modelMeasurementsAtThreshold
  • overallSurvivalPlot
  • progressionFreeSurvivalPlot
  • pullDataSlice
  • radiologicalImagesBatchProcessing
  • swimmerPlot
  • TCGADataToolUserInterface
JaneShenGunther`TCGADataTool`
swimmerPlot
​
swimmerPlot
[data]
takes as input a list of Associations and returns a swimmer plot. Each input association corresponds to a patient and must contains a key for each relevant column needed for swimmer plot computation.
​
Details and Options

Examples  
(10)
Basic Examples  
(1)
Get the example data structure for project TCGA-CESC and select a valid patient UUID from that data structure:
In[1]:=
dataStructure=
exampleDataTCGA
[{"TCGAProjectData","TCGACESCExceptGenomicDataAllPatients"},"Data"];
Set the drug name for which we will display the swimmer plot and the properties needed to create the plot:
In[2]:=
drugName="cisplatin";​​propertiesToReturn="bcr_patient_uuid","Clinical::Patient::clinical_stage", "Clinical::Drug::drug_name","Clinical::Drug::days_to_drug_therapy_start","Clinical::Drug::days_to_drug_therapy_end","Clinical::Drug::measure_of_response"

;
Extract the data from the data structure about patients being treated with "Cisplatin":
In[3]:=
patients=
pullDataSlice
[dataStructure,propertiesToReturn,"FilterProperty""Clinical::Drug::drug_name","FilterFunction"(MemberQ[ToLowerCase[#],drugName]&)];
Restrict to the lines relative only to the drug of interest:
In[4]:=
patients=Map[With[{patientData=#,pos=Position[#["Clinical::Drug::drug_name"],s_String/;StringMatchQ[s,drugName,IgnoreCaseTrue]]},Join[patientData,"Clinical::Drug::drug_name"Extract[patientData["Clinical::Drug::drug_name"],pos],"Clinical::Drug::days_to_drug_therapy_start"Extract[patientData["Clinical::Drug::days_to_drug_therapy_start"],pos],"Clinical::Drug::days_to_drug_therapy_end"Extract[patientData["Clinical::Drug::days_to_drug_therapy_end"],pos],"Clinical::Drug::measure_of_response"Extract[patientData["Clinical::Drug::measure_of_response"],pos]]]&,patients];
Show result for a random sample of 10 patients:
In[5]:=
SeedRandom[1234];​​sample=RandomSample[patients,10];​​
swimmerPlot
[sample]
Out[5]=
Disease Stage at Baseline
Stage 1
Stage 2
Stage 3
Stage 4
Missing
Best Treatment Response
Complete Response
Partial Response
Stable Disease
Clinical Progressive Disease
Missing
Scope  
(2)

Options  
(7)

SeeAlso
pullDataSlice
TechNotes
▪
Property Standard Name
▪
Data Visualization
RelatedGuides
▪
TCGA Data Tool
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com