annotate remove_redundant_entries.R @ 1:6fd1efe69a78 draft default tip

planemo upload commit 1a2e0f7cf917d319b32efac4ce8f9c3b0e838b8b-dirty
author anmoljh
date Sun, 03 Jun 2018 03:42:10 -0400
parents dee6d2dd558c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dee6d2dd558c planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
anmoljh
parents:
diff changeset
1 args <- commandArgs(TRUE)
dee6d2dd558c planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
anmoljh
parents:
diff changeset
2
dee6d2dd558c planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
anmoljh
parents:
diff changeset
3
dee6d2dd558c planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
anmoljh
parents:
diff changeset
4 res1 <- read.csv(args[1])
dee6d2dd558c planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
anmoljh
parents:
diff changeset
5 #res11 <- duplicated(res1[,1:length(res1) - 1])
dee6d2dd558c planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
anmoljh
parents:
diff changeset
6 res11 <- duplicated(res1[,1])
dee6d2dd558c planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
anmoljh
parents:
diff changeset
7 result <- res1[!res11,]
dee6d2dd558c planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
anmoljh
parents:
diff changeset
8 names1 <- result[,1]
dee6d2dd558c planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
anmoljh
parents:
diff changeset
9 rownames(result) <- names1
dee6d2dd558c planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
anmoljh
parents:
diff changeset
10 result$Name <- NULL
dee6d2dd558c planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
anmoljh
parents:
diff changeset
11 write.csv(result,file=args[2])