Closed lkhilton closed 7 months ago
Can you please check if this PR fixes the issue? https://github.com/morinlab/GAMBLR.viz/pull/44 This PR was just merged yesterday There was recently a bug introduced that was not handling factors properly, I wonder if this is the same issue.
I actually revisited this and I think I'm wrong, but no matter what combination of metadata variables or custom colours I pass to prettyOncoplot
I can't get it to produce a plot if I include either bcl2_ba
or bcl6_ba
columns...
Hm, I just installed GAMBLR 30 minutes ago but the change from the PR doesn't appear in the version I just installed...
The other thing I can think of is that the GAMBLR.viz was also recently updated to drop the ggsci dependency. Maybe that one is not up to date? I am using the viz master version and this is the plot if I run the example usage but use the full metadata and add the fish columns to plot
maf_metadata <- GAMBLR.results::get_gambl_metadata(seq_type_filter = "genome") %>%
dplyr::filter(pathology %in% c("FL", "DLBCL"))
maf_data <- get_ssm_by_samples(
these_samples_metadata = maf_metadata
)
fl_genes = c("RRAGC", "CREBBP", "VMA21", "ATP6V1B2")
dlbcl_genes = c("EZH2", "KMT2D", "MEF2B", "CD79B", "MYD88", "TP53")
genes = c(fl_genes, dlbcl_genes)
gene_groups = c(rep("FL", length(fl_genes)), rep("DLBCL", length(dlbcl_genes)))
names(gene_groups) = genes
prettyOncoplot(
maf_df = maf_data,
genes = genes,
these_samples_metadata = maf_metadata %>%
arrange(patient_id),
splitGeneGroups = gene_groups,
keepGeneOrder = TRUE,
splitColumnName = "pathology",
metadataBarHeight = 5,
metadataBarFontsize = 8,
legend_row = 2,
fontSizeGene = 11,
metadataColumns = c("pathology", "lymphgen", "sex", "myc_ba", "bcl2_ba", "bcl6_ba"),
sortByColumns = c("pathology", "lymphgen", "sex", "myc_ba", "bcl2_ba", "bcl6_ba")
)
Hm, maybe this is an unexpected behaviour from using the version tags in the DESCRIPTION :thinking: So, even though there is later commit available with update, it installs the commit associated with that version tag
Did you have a chance to check this towards the latest master and see if this is fixed, or does it need some action still? I can investigate if there are still some problems 😃
I forced installing from Master using renv::install("morinlab/GAMBLR.viz@3680b4c2c6933859d610ac80ed1e81f636315fca")
.
It works as expected now and it automatically retrieves the standard colours for LymphGen and the FISH POS/NEG columns.
I noticed there is no default for the minMutationPercent
- maybe this would be a good feature to add? ]
Thanks for your help!
prettyOncoplot
is missing the line that assigns POS/NEG colours for columns when a custom colours aren't specified.When I run it in
verbose
mode it does indicate that it found the colours:But it then returns the error
This is using the
bcl2_ba
andbcl6_ba
columns returned byget_gambl_metadata
.