Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions R/grn.R
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,9 @@ fit_grn_models.SeuratPlus <- function(
peak_data <- peak_data[, peaks_use, drop=FALSE]

log_message('Preparing model input', verbose=verbose)
tfs_use <- colnames(motif2tf)
motif2tf <- motif2tf[, tfs_use, drop=FALSE]
tfs_use <- names(motif2tf)
tfs_use <- na.omit(tfs_use)
motif2tf <- motif2tf[tfs_use, drop=FALSE]

log_message('Fitting models for ', length(features), ' target genes' , verbose=verbose)
# Loop through features and fit models/run CV for each
Expand Down