MSKCC-Epi-Bio / gnomeR

Package to wrangle and visualize genomic data in R
https://mskcc-epi-bio.github.io/gnomeR/
Other
26 stars 16 forks source link

add_pathways .mut ending requirement for custom pathway #301

Closed hfuchs5 closed 11 months ago

hfuchs5 commented 1 year ago

If your gene binary has mutation columns with no endings, they won't show up if the user gives custom pathways.

Ex:

TP53_mine <- c("ATM.mut",   "CHEK2.mut", "MDM2.mut",  "MDM4.mut",  "TP53.mut", "TP63.mut")

  gene_binary <- create_gene_binary(samples = samples, mutation = mutations, cna = cna,
                          mut_type = "somatic_only", snp_only = FALSE) %>%
    select(any_of(c(TP53_mine, "sample_id")))

  gene_binary_compare <- create_gene_binary(samples = samples, mutation = mutations, cna = cna,
                          mut_type = "somatic_only", snp_only = FALSE) %>%
    select(any_of(c("ATM",   "CHEK2", "MDM2",  "MDM4",  "TP53", "TP63", "sample_id")))

See code in function where we work with ".any" endings and adapt.

karissawhiting commented 1 year ago

Double check with newest gnomeR Version.