jaleesr / BITFAM

BITFAM is a Bayesian approach and platform to infer transcription factor activities within individual cells using single cell RNA-sequencing data. Please see Gao S et al., Genome Research (2021) https://genome.cshlp.org/content/31/7/1296 for details.
31 stars 16 forks source link

Error in eval(predvars, data, env) #7

Closed JDBLab closed 1 year ago

JDBLab commented 1 year ago

Hello, Thank you for this package. Its really helpful. I am exactly following the tutorial. However, I am getting the following error. Could you please help me with the following issue-

fit_rf <- randomForest(D3~., data = Z1_D3) Error in eval(predvars, data, env) : object 'NKX2-2' not found D3_tf_top10 <- importance(fit_rf)[order(importance(fit_rf)[, 1], decreasing = T), ][1:10] Error in importance(fit_rf) : object 'fit_rf' not found

sgao30 commented 1 year ago

Hi, Thank you for trying our tool! It looks like the issue about the object name. Could you please check the TF names in Z1_D3? If the there is ‘'NKX2-2’, try to change it to ''NKX2.2' and run again. Thank you.