SCENIC
SCENIC copied to clipboard
✖ Column `features` doesn't exist.
Please explain what the bug is, and if possible, the steps to reproduce it.
Error in dplyr::pull()
:
! Can't extract columns that don't exist.
✖ Column features
doesn't exist.
Providing a minimal example or a mini-dataset to reproduce the error will help a lot!
library(SCENIC)
data(list="motifAnnotations_mgi_v9", package="RcisTarget")
motifAnnotations_mgi <- motifAnnotations_mgi_v9
scenicOptions <- initializeScenic(org = "mgi", dbDir="mm9_databases")
Motif databases selected: mm9-500bp-upstream-7species.mc9nr.feather mm9-tss-centered-10kb-7species.mc9nr.feather [1] "The index column 'features' is not available in the file." [1] "The index column 'features' is not available in the file." Using the column 'motifs' as feature index for the ranking database. Error in
dplyr::pull()
: ! Can't extract columns that don't exist. ✖ Columnfeatures
doesn't exist. Runrlang::last_trace()
to see where the error occurred. Warning messages: 1: In initializeScenic(org = "mgi", dbDir = "mm9_databases") : It was not possible to load the following databses; check whether they are downloaded correctly: mm9-500bp-upstream-7species.mc9nr.feather mm9-tss-centered-10kb-7species.mc9nr.feather 2: In RcisTarget::importRankings(dbFile, columns = rnktype) : The following columns are missing from the database: features
rlang::last_trace() <error/vctrs_error_subscript_oob> Error in
dplyr::pull()
: ! Can't extract columns that don't exist. ✖ Columnfeatures
doesn't exist.
Backtrace: ▆
- └─SCENIC::initializeScenic(org = "mgi", dbDir = "mm9_databases")
- └─SCENIC::checkAnnots(object, motifAnnot)
-
└─base::lapply(...)
-
└─SCENIC (local) FUN(X[[i]], ...)
-
├─dplyr::pull(nRnks, rnktype)
-
└─dplyr:::pull.data.frame(nRnks, rnktype)
Run rlang::last_trace(drop = FALSE) to see 17 hidden frames.
rlang::last_trace(drop = FALSE) <error/vctrs_error_subscript_oob> Error in
dplyr::pull()
: ! Can't extract columns that don't exist. ✖ Columnfeatures
doesn't exist.
Backtrace: ▆
- ├─SCENIC::initializeScenic(org = "mgi", dbDir = "mm9_databases")
- │ └─SCENIC::checkAnnots(object, motifAnnot)
- │ └─base::lapply(...)
- │ └─SCENIC (local) FUN(X[[i]], ...)
- │ ├─dplyr::pull(nRnks, rnktype)
- │ └─dplyr:::pull.data.frame(nRnks, rnktype)
- │ └─tidyselect::vars_pull(names(.data), !!enquo(var))
- │ └─tidyselect:::pull_as_location2(...)
- │ ├─tidyselect:::with_subscript_errors(...)
- │ │ └─rlang::try_fetch(...)
- │ │ └─base::withCallingHandlers(...)
- │ └─vctrs::vec_as_location2(...)
- │ ├─vctrs:::result_get(...)
- │ └─vctrs:::vec_as_location2_result(...)
- │ ├─base::tryCatch(...)
- │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
- │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
- │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
- │ └─vctrs::vec_as_location(i, n, names = names, arg = arg, call = call)
- └─vctrs (local)
<fn>
() - └─vctrs:::stop_subscript_oob(...)
-
└─vctrs:::stop_subscript(...)
-
└─rlang::abort(...)
I have the same problem here. And many other people have reported this bug. One solution is to use the old version of the cistarget files: https://github.com/aertslab/SCENIC/issues/379
Rolling back to the 3.x version of R may also work, but then we will also have to use an older version of SCENIC. I really hope there can be a proper solution.
Also having issues running this on R4.2 and above