R语言中shapply、unlist函数的应用

 

R语言中sappy、unlist函数的应用

gene_to_go <- data.frame(gene = rep(gene_ids[eggnog_lines_with_go],
times = sapply(eggnog_annoations_go, length)), term = unlist(eggnog_annoations_go))
head(gene_to_go)
posted @ 2024-03-25 23:07  小鲨鱼2018  阅读(41)  评论(0)    收藏  举报