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

Addressing README and prettyOncoplot issues #59

Merged
merged 4 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions R/prettyOncoplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ prettyOncoplot = function(maf_df,
group_by(Tumor_Sample_Barcode) %>%
summarize(total = n(), .groups = "drop") %>%
arrange(desc(total)) %>% pull(Tumor_Sample_Barcode)
print(paste("numcases:", length(tsbs)))
if(verbose){
print(paste("numcases:", length(tsbs)))
}

if(!removeNonMutated){
tsb.include = matrix(data = 0, nrow = nrow(mat_origin), ncol = length(tsbs[!tsbs %in% colnames(mat_origin)]))
Expand Down Expand Up @@ -238,8 +240,10 @@ prettyOncoplot = function(maf_df,
group_by(Tumor_Sample_Barcode) %>%
summarize(total = n(), .groups = "drop") %>%
arrange(desc(total)) %>% pull(Tumor_Sample_Barcode)
print(paste("numcases:",length(tsbs)))
print(paste("numgenes:",length(mat_origin[,1])))
if(verbose){
print(paste("numcases:",length(tsbs)))
print(paste("numgenes:",length(mat_origin[,1])))
}
if(!removeNonMutated){
tsb.include = matrix(data = 0, nrow = nrow(mat_origin), ncol = length(tsbs[!tsbs %in% colnames(mat_origin)]))
colnames(tsb.include) = tsbs[!tsbs %in% colnames(mat_origin)]
Expand Down Expand Up @@ -648,12 +652,12 @@ prettyOncoplot = function(maf_df,
is.na(estimate) ~ "NA",
estimate<=1 & q.value <= 0.1 ~ these_comparisons[2],
estimate > 1 & q.value <= 0.1 ~ these_comparisons[1],
TRUE ~ "Both"
TRUE ~ "Neither"
)) %>%
pull("Enriched in")

right_annotation = rowAnnotation(" " = enrichment_label,
col = list(" " = c(GAMBLR.helpers::get_gambl_colours()[these_comparisons], Both = "#ACADAF", "NA" = "#000000")),
col = list(" " = c(GAMBLR.helpers::get_gambl_colours()[these_comparisons], Neither = "#ACADAF", "NA" = "#000000")),
simple_anno_size = unit(metadataBarHeight, "mm"),
annotation_legend_param =
list(title = "Enriched in",
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
![Build check](https://github.com/morinlab/GAMBLR.viz/actions/workflows/build_check.yaml/badge.svg)
![GitHub R package version](https://img.shields.io/github/r-package/v/morinlab/GAMBLR.viz)
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/morinlab/GAMBLR.viz)
![GitHub last commit](https://img.shields.io/github/last-commit/morinlab/GAMBLR.viz)


# GAMBLR.viz

Collection of functions to make plots for Genomic Analysis of Mature B-cell Lymphomas in R
Collection of functions to make plots for Genomic Analysis of Mature B-cell
Lymphomas in R.

For detailed information about how to install, bundled resources, functionality
overview, tutorials, frequently asked questions and much more please visit the
website [morinlab.github.io/GAMBLR.viz](https://morinlab.github.io/GAMBLR.viz/)

# Contributing

Expand Down
Loading