morinlab / GAMBLR

Set of standardized functions to operate with genomic data
https://morinlab.github.io/GAMBLR/
MIT License
3 stars 2 forks source link

Unhelpful error when nonexistent patient_id is provided to get_coding_ssm #179

Closed rdmorin closed 1 year ago

rdmorin commented 1 year ago

Can someone figure out how to catch this type of error and warn the user with something more informative than what R spits out?

get_coding_ssm(these_samples_metadata = dplyr::filter(all_meta,patient_id=="MORON"))
reading from: /Users/rmorin/gambl_results/
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'as.data.frame': File '/Users/rmorin/gambl_results/' is a directory. Not yet implemented.
rdmorin commented 1 year ago

The same error happens if the user specifies a sample_id that doesn't exist in the metadata.

mattssca commented 1 year ago

I'll self-assign this issue. Thanks for reporting it, Ryan.