UMCUGenetics / MutationalPatterns

R package for extracting and visualizing mutational patterns in base substitution catalogues
MIT License
104 stars 45 forks source link

fit_to_signatures_strict: Error in if (delta <= max_delta) { : missing value where TRUE/FALSE needed #69

Closed lincj1994 closed 2 years ago

lincj1994 commented 3 years ago
> CBCGASBS_refit <- fit_to_signatures_strict(CBCGASBS_mat, as.matrix(COSMICSBS_BRCA), max_delta = 0.002, method = 'best_subset')
Error in if (delta <= max_delta) { : 
  missing value where TRUE/FALSE needed

Hi. I want to refit COSMIC signatures using best_subset method but it returned an error. I dont understand it since I have assigned the max_delta.

FreekManders commented 3 years ago

That's strange. Do the examples of this function also give an error? (See ?fit_to_signatures_strict) for the examples.