R 語言中雙中括號 [[]]與資料型別列表的關係。
for (row in 1:nrow(gterms)) { gene_terms <- str_split(gterms[row,"GOs"], ",", simplify = FALSE)[[1]] gene_id <- gterms[row, "query_name"][[1]] tmp <- data_frame(gene = rep(gene_id, length(gene_terms)), term = gene_terms) gene2go <- rbind(gene2go, tmp)}
。