comparison change_o/select_first_in_clone.r @ 0:64d74ba01a7c draft

"planemo upload commit 78d1fae87dbcf490e49a9f99e7a06de7328e16d4"
author rhpvorderman
date Wed, 27 Oct 2021 12:34:47 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:64d74ba01a7c
1 args <- commandArgs(trailingOnly = TRUE)
2
3 input.file = args[1]
4 output.file = args[2]
5
6 print("select_in_first_clone.r")
7 print(input.file)
8 print(output.file)
9
10 input = read.table(input.file, header=T, sep="\t", fill=T, stringsAsFactors=F, quote="")
11
12 input = input[!duplicated(input$CLONE),]
13
14 names(input)[1] = "Sequence.ID"
15
16 write.table(input, output.file, quote=F, sep="\t", row.names=F, col.names=T, na="")