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

adding sample interaction from cohort builder #14

Merged
merged 2 commits into from
Jan 24, 2020

Conversation

jaybee84
Copy link
Collaborator

-one caveat: projects a lollipopPlot even if it doesnt represent all the samples selected in the cohort.

For eg. if cohort builder contains samples from 3 different studies, and there is gene var data from only study 1, the lollipopPlot plots data from study1 but does not give explicit indication that samples from study 2 and study 3 were not considered.

We may want to add a disclaimer or restrict the plots so that the plots are representative of all samples (eg use == rather than %in%)

@jaybee84 jaybee84 requested a review from allaway January 24, 2020 21:05
@allaway
Copy link
Collaborator

allaway commented Jan 24, 2020

I think this behavior is OK. I suspect (just a guess, though) that users would prefer to see what data we have, even if it's not the full cohort.

I agree that we should add a disclaimer to this effect. It could be something like checking all(specimens() %in% x$specimenID) - if this is false, plot some text near or as a part of the plot...we might even be able to do something that allows people to download the cohort table for each plot if they really want to see what is plotted in each.

Copy link
Collaborator

@allaway allaway left a comment

Choose a reason for hiding this comment

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

LGTM!

I added a validation statement to catch an error when no samples are selected. I should add this to my modules too....

validate(need(length(tumor_sample_bc)>0, "No variant data found. Please modify your cohort."))

Feel free to change the wording of the message. The condition might need to be changed in the future to catch other scenarios that I'm not thinking of now.... If it looks good to you, please merge. Thanks!

@jaybee84
Copy link
Collaborator Author

Ah! like the validation message.... will merge...

Also like the idea of checking if all samples are plotted and putting out a disclaimer if that is not the case. Will add that .

@jaybee84 jaybee84 merged commit 634253c into nf-osi:develop Jan 24, 2020
@allaway allaway mentioned this pull request Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants