karissawhiting / oncokbR

Annotate mutation, copy number alteration and structural variant data in R using oncoKB Annotation API
http://www.karissawhiting.com/oncokbR/
Other
5 stars 9 forks source link

Check results returned with and without tumor type parameter and document differences #13

Closed karissawhiting closed 1 year ago

karissawhiting commented 1 year ago

When you run the functions with and without the tumor type parameter you get different columns of data back. This is to be expected but we should double check data is consistent between them and also check and document what is being returned in each.

We may want to add some info/warning messages accordingly.

library(oncokbR)
library(dplyr)

blca_mutation <- oncokbR::blca_mutation %>%
  mutate(tumor_type = "BLCA")

annotated_with_type <- annotate_mutations(mutations = blca_mutation[1:50,])

blca_mutation <- oncokbR::blca_mutation

annotated_no_type <- annotate_mutations(mutations = blca_mutation[1:50,])

annotated_no_type %>%
  select(oncogenic) %>% 
  table()
karissawhiting commented 1 year ago

17