comparison clusterProfiler_bitr.R @ 0:e7a71e686f53 draft

planemo upload for repository https://github.com/kpbioteam/clusterProfiler_bitr commit 470dccce41afc79ef1cc7a6722b50d0c258e0f4f
author kpbioteam
date Mon, 19 Mar 2018 14:03:04 -0400
parents
children 90120121398f
comparison
equal deleted inserted replaced
-1:000000000000 0:e7a71e686f53
1 require("clusterProfiler", quietly = TRUE)
2 require("org.Hs.eg.db", quietly = TRUE)
3
4 args <- commandArgs(trailingOnly = TRUE)
5
6 input1 = args[1]
7 input2 = args[2]
8 input3 = args[3]
9 output = args[4]
10
11 gene <- c(read.table(input1))
12 gene.df = bitr(gene$V1, fromType=input2, toType=input3, OrgDb="org.Hs.eg.db")
13
14 write.table(gene.df,file = output,row.names = FALSE)