使用命令df = OG %>% group_by(Gene,Domain) %>% summarise(count())
出现如下报错:
Error: Problem with `summarise()` input `..1`.
i `..1 = count()`.
x no applicable method for 'count' applied to an object of class "NULL"
把命令改为df = OG %>% group_by(Gene,Domain) %>% summarise(n = n())
即可