Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download data from study view treatment tables #4595

Merged
merged 9 commits into from
Apr 29, 2023

Conversation

Player256
Copy link
Contributor

@Player256 Player256 commented Apr 24, 2023

Fixes cBioPortal/cbioportal #10122

Describe changes proposed in this pull request:

  • added download feature in treatment per patient table
    image

Link: https://genie.cbioportal.org/study/summary?id=nsclc_public_genie_bpc

@inodb inodb added the gsoc label Apr 24, 2023
@inodb inodb requested review from haynescd and dippindots April 24, 2023 14:06
@inodb
Copy link
Member

inodb commented Apr 24, 2023

Thanks @Player256!

The downloaded data seems similar for Full and Summary Data. For e.g. this study: https://deploy-preview-4595--cbioportalfrontend.netlify.app/study/summary?id=lgg_ucsf_2014

Treatment	#
TMZ
10
CCNU + thalidomide
1
TMZ + accutane
1
TMZ + thalidomide
1

It also has new lines instead of being tab separated, could you help fix that? Thanks so much!

Copy link
Member

@dippindots dippindots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Player256 Thank you so much for trying to fix this issue, I put some comments here, please feel free to ask me any questions regarding them.

src/pages/studyView/StudyViewPageStore.ts Outdated Show resolved Hide resolved
src/pages/studyView/StudyViewPageStore.ts Outdated Show resolved Hide resolved
@@ -649,6 +649,9 @@ export class StudySummaryTab extends React.Component<
props.filters = this.store.patientTreatmentFiltersAsStrings;
props.promise = this.store.patientTreatments;
props.onValueSelection = this.store.onTreatmentSelection;
props.getData = () =>
this.store.getPatientTreatmentDownloadData();
props.downloadTypes = ['Full Data', 'Summary Data'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the difference between these two? Maybe we can just offer one available download type Data?

Copy link
Contributor Author

@Player256 Player256 Apr 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh you are right @dippindots. I looked through the pie chart data

@Player256 Player256 requested a review from dippindots April 25, 2023 11:12
Copy link
Member

@dippindots dippindots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Player256 Thanks for addressing all my comments, this looks good to me now!

@Player256
Copy link
Contributor Author

Thank you @dippindots.

@dippindots
Copy link
Member

dippindots commented Apr 29, 2023

@inodb This pull request looks good to me, I will merge this one. If there is anything you want to add as an follow-up task, please feel free to create another ticket! Thanks.

@dippindots dippindots merged commit 1cbf8a6 into cBioPortal:master Apr 29, 2023
@inodb inodb changed the title fixes #10122 Download data from study view treatment tables Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants