thierrygosselin / radiator

RADseq Data Exploration, Manipulation and Visualization using R
https://thierrygosselin.github.io/radiator/
GNU General Public License v3.0
59 stars 23 forks source link

Input not supported for this function #73

Closed MboiTui closed 4 years ago

MboiTui commented 4 years ago

I encountered this issue trying to run individual filtering functions. The error traceback was as follows:

Error: Input not supported for this function: read function documentation

  1. stop(fallback)
  2. signal_abort(cnd)
  3. rlang::abort("Input not supported for this function: read function documentation")
  4. filter_individuals(gds, interactive.filter=T)

This happened for:

MboiTui commented 4 years ago

I might have found the issue, and it might have been on my side and not a bug.

I was reading the dart file with 'tidy.dart=FALSE', which returned a 'tbl_df' format when running it through 'detect_genomic_format'. Then looking at the function I saw this:

data.type <- radiator::detect_genomic_format(data) if (!data.type %in% c("SeqVarGDSClass", "gds.file")) { rlang::abort("Input not supported for this function: read function documentation")

I then changed 'tidy.dart' to FALSE, which returns a SeqVarGDSClass object, and they are now working.