carmonalab / ProjecTILs

Interpretation of cell states using reference single-cell maps
GNU General Public License v3.0
231 stars 27 forks source link

Function error: ProjecTILs::FindAllMarkers.bygroup #58

Closed halterc closed 9 months ago

halterc commented 1 year ago

I get the following error message:

Error in dplyr::filter(): In argument: cluster == i. Caused by error: ! object 'cluster' not found Backtrace:

  1. ProjecTILs::FindAllMarkers.bygroup(...)
  2. base::lapply(...)
  3. ProjecTILs (local) FUN(X[[i]], ...)
  4. base::lapply(...)
  5. ProjecTILs (local) FUN(X[[i]], ...)
  6. dplyr:::filter.data.frame(x, cluster == i)
  7. dplyr:::filter_rows(.data, dots, by)
    1. dplyr:::filter_eval(...)
    2. mask$eval_all_filter(dots, env_filter)
    3. dplyr (local) eval()

Probably, in some of the samples, some clusters are not present. We might need to include a check there "for each object in object.list, if cluster == i exists, then ..."

mass-a commented 9 months ago

Should be solved in latest version.