Skip to content
New issue

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

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

Already on GitHub? # to your account

Parameters missing in GAMBLR.data::calc_mutation_frequency_bin_regions #23

Open
vladimirsouza opened this issue Nov 30, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vladimirsouza
Copy link
Contributor

heatmap_mutation_frequency_bin internally calls calc_mutation_frequency_bin_regions. However, when using the
bundled data, GAMBLR.data::calc_mutation_frequency_bin_regions is missing the parameters from_indexed_flatfile and mode, which are required in heatmap_mutation_frequency_bin.

dlbcl_bl_meta = get_gambl_metadata() %>%
    dplyr::filter(pathology %in% c("DLBCL", "BL"))

some_regions = GAMBLR.data::somatic_hypermutation_locations_GRCh37_v_latest %>% 
  dplyr::filter(!gene %in% c("BTG2", "CXCR4", "ST6GAL1", "BCL6", "LPP", "RHOH", "CD83", 
                             "PIM1", "BACH2", "SGK1", "MYC", "PAX5", "GRHPR", "FANK1", "BIRC3", 
                             "BTG1", "DTX1", "BCL7A", "ZFP36L1", "SERPINA9", "TCL1A", "CIITA", 
                             "IRF8", "S1PR2", "MEF2B", "IGLL5", "TMSB4X", "PIM2")) %>% 
  select(chr_name, hg19_start, hg19_end, gene) %>% 
  rename( "chrom"="chr_name", "start"="hg19_start", "end"="hg19_end", "name"="gene") %>% 
  mutate( chrom = str_remove(chrom, "chr") )

heatmap_mutation_frequency_bin(these_samples_metadata = dlbcl_bl_meta,
                               regions_bed = some_regions,
                               from_indexed_flatfile = TRUE,
                               mode = "slms-3")
# Warning: Multiple regions in the provided data frame have the same name. Merging these entries based on min(start) and max(end) per name value. 
#  Error:  You have given one or more unsupported or deprecated argument to  calc_mutation_frequency_bin_regions . Please check the documentation and spelling of your arguments.
# Offending argument(s): from_indexed_flatfile,mode 

Should we remove both from_indexed_flatfile and mode parameters from heatmap_mutation_frequency_bin and don't specify these parameters in the internal call of calc_mutation_frequency_bin_regions? Then the GAMBLR.results version of calc_mutation_frequency_bin_regions would always use the default values for these parameters.

@vladimirsouza vladimirsouza added the bug Something isn't working label Nov 30, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant