Closed lkhilton closed 7 months ago
Could @mattssca take a look at the change that broke this functionality? Still broken as of latest master 52fb6802ea00f6744291e4f4d1cbd50cf4620981.
I went over the old PR that added this and was looking for the reason. Seems this was commented out to allow the vignettes to be knitted, pretty sparse information. I think I am going to un-comment this on my branch, reknit the vignettes and see if the problem is still relevant and what another potential fix might be, that allows tissue_status_filter = "normal"
to work the intended way with get_gambl_metadata
.
Yay, thank you!
@mattssca there is still a bug with this function, unfortunately. If you specify both tumour and normal (e.g. tissue_status_filter = c("tumour", "normal")
), it returns this error:
get_gambl_metadata(tissue_status_filter = c("tumour","normal"))
Error in if (tissue_status_filter == "normal") { :
the condition has length > 1
This is because this test requires that tissue_status_filter
is a vector of length 1. I think you need to include a test of the vector length first, e.g.
if (length(tissue_status_filter) == 1 & tissue_status_filter == "normal")
When I try to run
get_gambl_metadata(tissue_status_filter = "normal")
I get the following error:I think this can be traced back to commit c752dfb, which commented out the part that simply returns the basic metadata columns when
normal
is the requested tissue_status. Could someone look into this?This is with the current master eecaa88.