-
Notifications
You must be signed in to change notification settings - Fork 0
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
Polygon parameters #156
Polygon parameters #156
Conversation
Yeeeouch! High contrast colors in the example! Alpha is definitely 1 haha! LGTM. I'll just add some extra validation and tests to follow the other parameters. |
Lgtm! Since I opened the PR I think you have to give your approval to merge. |
@dan-knight One of the test case failed after merging the main branch. Can you double check to make sure it still works properly after the merge? |
…isualization into hwinata-expose-polygon-alpha
…package-CancerEvolutionVisualization into hwinata-expose-polygon-alpha
…s/package-CancerEvolutionVisualization into hwinata-expose-polygon-alpha
…isualization into hwinata-expose-polygon-alpha
@whelena I added more changes here. Take a look and let me know if there's anything else you'd change. Otherwise, I can approve and merge. |
@@ -161,7 +161,8 @@ scalebar.tree <- create.phylogenetic.tree( | |||
``` | |||
|
|||
## Ex. 1.8: Visualizing Cellular Prevalence | |||
A `CP` column containing the cellular prevalence or cancer cell fraction (CCF) of each subclone can be added to the input tree dataframe. These values typically range between 0 and 1, and the sum of all child nodes must not be larger than their parent node's value. Whether you are using 'CCF, 'CP' pr any other metric, make sure the x-axis label matches the metric used. | |||
A `CP` column containing the cellular prevalence or cancer cell fraction (CCF) of each subclone can be added to the input tree dataframe. These values typically range between 0 and 1, and the sum of all child nodes must not be larger than their parent node's value. Whether you are using 'CCF, 'CP' o@Opeioc10!2022 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo?
vignettes/UserGuide.Rmd
Outdated
); | ||
``` | ||
|
||
Alternatively, the `colour.scheme` parameter can take a vector with length equal to the number of nodes. This will assign a unique colour to each node. | ||
```{r, fig.height=4} | ||
CP.tree2 <- create.phylogenetic.tree( | ||
CP, | ||
colour.scheme = c(NA, 'gray70', 'pink', 'maroon', 'steelblue') | ||
polygon.colour.scheme = c('gray70', 'pink', 'maroon', 'steelblue') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still supported? Does this mean assigning node-specific polygon colours can be done through this or the dataframe?
Maybe we should add the different ways users can assign polygon colours and how we recommend using them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, I'll add to this section first and see if I can clear it up for you in the User Guide. Will be a good test of the docs.
Everything looks good, I just have a few clarification questions about the different was we can specify polygon colours. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving on behalf of both myself and @whelena, since we both contributed code and reviewed.
Description
Exposes parameters for more detailed control of fishplot polygon styles, including color, alpha, and polygon shape. Parameter names were changed to prefix
polygon.<parameter>
for clarity and consistency.polygon.width
was changed topolygon.scale
, which now functions as a multiplier rather than an objective value.Expands the colour scheme control to create a gradient from an arbitrary list of colors (not just one). This serves as the default polygon. This color scheme can be overridden for individual nodes using the
polygon.col
column in the tree input dataframe. This clarifies the usage of each parameter and removes the existing overlap in their use-cases.Results
Checklist
This PR does NOT contain Protected Health Information (PHI). A repo may need to be deleted if such data is uploaded.
Disclosing PHI is a major problem1 - Even a small leak can be costly2.
This PR does NOT contain germline genetic data3, RNA-Seq, DNA methylation, microbiome or other molecular data4.
.png
, .jpeg
),.pdf
,.RData
,.xlsx
,.doc
,.ppt
, or other output files.To automatically exclude such files using a .gitignore file, see here for example.
I have read the code review guidelines and the code review best practice on GitHub check-list.
I have set up or verified the
main
branch protection rule following the github standards before opening this pull request.The name of the branch is meaningful and well formatted following the standards, using [AD_username (or 5 letters of AD if AD is too long)]-[brief_description_of_branch].
I have added the major changes included in this pull request to the
CHANGELOG.md
under the next release version or unreleased, and updated the date.Footnotes
UCLA Health reaches $7.5m settlement over 2015 breach of 4.5m patient records ↩
The average healthcare data breach costs $2.2 million, despite the majority of breaches releasing fewer than 500 records. ↩
Genetic information is considered PHI.
Forensic assays can identify patients with as few as 21 SNPs ↩
RNA-Seq, DNA methylation, microbiome, or other molecular data can be used to predict genotypes (PHI) and reveal a patient's identity. ↩