jmonlong / scCNAutils

Functions to analyze copy number aberrations in single-cell data
MIT License
11 stars 7 forks source link

qc_cells function produces error with the cell-cycle file #1

Open PiStefania opened 3 years ago

PiStefania commented 3 years ago

When executing the function:

cells.df = auto_cna_signal(
  'SAMPLES/sampleA',
  'genes.tsv',
  prefix = 'example',
  cell_cycle = 'cc_genes.tsv',
  use_cache = FALSE
)

using the files:

The error is the following: <error/vctrs_error_subscript_type> Must subset columns with a valid subscript vector. x Subscript has the wrong type rlang_data_pronoun. ℹ It must be numeric or character. Backtrace:

  1. scCNAutils::auto_cna_signal(...)
  2. dplyr:::ungroup.grouped_df(., .data)
  3. tidyselect::vars_select(names(x), ...)
    1. tidyselect:::eval_select_impl(...)
    2. tidyselect:::vars_select_eval(...)
    3. tidyselect:::walk_data_tree(expr, data_mask, context_mask)
    4. tidyselect:::eval_c(expr, data_mask, context_mask)
    5. tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
    6. tidyselect:::walk_data_tree(new, data_mask, context_mask)
    7. tidyselect:::as_indices_sel_impl(...)
    8. tidyselect:::as_indices_impl(x, vars, strict = strict)
    9. vctrs::vec_as_subscript(x, logical = "error")

R version executed: 4.1, ubuntu bionic 18.04.

jmonlong commented 2 years ago

I tried @andynkili fix on @PiStefania data, and it looks like it works now. Thanks @andynkili!