gmt <- readLines('xxx.gmt')
gmt <- strsplit(gmt, "\t")
names(gmt) <- vapply(gmt, function(y) y[1], character(1))
gmt <- lapply(gmt, "[", -c(1:2))
gmt <- readLines('xxx.gmt')
gmt <- strsplit(gmt, "\t")
names(gmt) <- vapply(gmt, function(y) y[1], character(1))
gmt <- lapply(gmt, "[", -c(1:2))
本文标题:R语言读入gmt格式后转换为list
本文链接:https://www.haomeiwen.com/subject/yplbhdtx.html
网友评论