Mercurial > repos > davidvanzessen > shm_csr
annotate change_o/select_first_in_clone.r @ 99:5b79485234e1 draft default tip
planemo upload commit 0d652311f9c4ccc26b27eebc44a3ae91a72e57b0
| author | rhpvorderman |
|---|---|
| date | Mon, 03 Feb 2025 13:37:26 +0000 |
| parents | 6cd12c71c3d3 |
| children |
| rev | line source |
|---|---|
| 55 | 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="") |
