%% error in Rstudio
1
0
Entering edit mode
3 months ago
AbsaR • 0

dc.markers %>% group_by(cluster) %>% top_n(2, wt = avg_logFC)

the above code is giving error even after using dplyr and matrix libraries in seurat analysis in rstudio

error : Error: Problem with filter() input ..1. i Input ..1 is top_n_rank(2, avg_logFC). x object 'avg_logFC' not found i The error occurred in group 1: cluster = 0. Run rlang::last_error() to see where the error occurred.

rstudio ERROR seurat clustering • 243 views
ADD COMMENT
2
Entering edit mode
3 months ago
fracarb8 ▴ 400

Try with avg_log2FC, They changed the names of the columns in the newer version

ADD COMMENT

Login before adding your answer.

Traffic: 1704 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6