%% error in Rstudio
1
0
Entering edit mode
3.2 years 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: 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.
seurat r • 1.7k views
ADD COMMENT
3
Entering edit mode
3.2 years ago
fracarb8 ★ 1.7k

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

ADD COMMENT

Login before adding your answer.

Traffic: 816 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