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

get_cn_states gets error when all_cytobands = TRUE #243

Open
vladimirsouza opened this issue Aug 8, 2023 · 0 comments
Open

get_cn_states gets error when all_cytobands = TRUE #243

vladimirsouza opened this issue Aug 8, 2023 · 0 comments

Comments

@vladimirsouza
Copy link
Contributor

Code to reproduce the error and output error message:

library(GAMBLR)
library(dplyr)

fl_meta = get_gambl_metadata() %>% dplyr::filter(pathology == "FL")
cn_matrix = get_cn_states(these_samples_metadata = fl_meta, all_cytobands = TRUE, use_cytoband_name = TRUE)

# Currently, only grch37 is supported                                                                                                         
# Cytobands are in respect to hg19. This will take awhile but it does work, trust me!
# Error in `[.data.frame`(cn_matrix, , region_names, drop = FALSE) :                                                                          
#   undefined columns selected

In the last line of get_cn_states code, region_names contains column names that are not in cn_matrix data.frame.

#order the regions the same way the user provided them for convenience
cn_matrix = cn_matrix[,region_names, drop=FALSE]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant