Mercurial > repos > petr-novak > various_galaxy_tools
annotate gff2tabular.R @ 0:696e702ebf74 draft
"planemo upload commit 0f6eca49bafc3c946189d793161a7f81d595e1a1-dirty"
author | petr-novak |
---|---|
date | Mon, 09 May 2022 08:26:30 +0000 |
parents | |
children | 639c0edb7e64 |
rev | line source |
---|---|
0
696e702ebf74
"planemo upload commit 0f6eca49bafc3c946189d793161a7f81d595e1a1-dirty"
petr-novak
parents:
diff
changeset
|
1 #!/usr/bin/env Rscript |
696e702ebf74
"planemo upload commit 0f6eca49bafc3c946189d793161a7f81d595e1a1-dirty"
petr-novak
parents:
diff
changeset
|
2 library(rtracklayer) |
696e702ebf74
"planemo upload commit 0f6eca49bafc3c946189d793161a7f81d595e1a1-dirty"
petr-novak
parents:
diff
changeset
|
3 gff <- import(commandArgs(T)[1], format='GFF') |
696e702ebf74
"planemo upload commit 0f6eca49bafc3c946189d793161a7f81d595e1a1-dirty"
petr-novak
parents:
diff
changeset
|
4 tabular <- as.data.frame(gff) |
696e702ebf74
"planemo upload commit 0f6eca49bafc3c946189d793161a7f81d595e1a1-dirty"
petr-novak
parents:
diff
changeset
|
5 write.table(tabular, file = commandArgs(T)[2], quote=FALSE, sep="\t", row.names=FALSE) |
696e702ebf74
"planemo upload commit 0f6eca49bafc3c946189d793161a7f81d595e1a1-dirty"
petr-novak
parents:
diff
changeset
|
6 |