Mercurial > repos > ebi-gxa > gtf2gene_list
view gtf2gene.R @ 0:040d4b3a19d5 draft
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/tree/develop/tools/util/.shed.yml commit 9bf9a6e46a330890be932f60d1d996dd166426c4
author | ebi-gxa |
---|---|
date | Wed, 03 Apr 2019 12:05:26 -0400 |
parents | |
children |
line wrap: on
line source
#!/usr/bin/env Rscript suppressPackageStartupMessages(require(rtracklayer)) args <- commandArgs(TRUE) annotation <- elementMetadata(import( args[1] )) genes <- unique(annotation[['gene_id']]) writeLines(genes[ ! is.na(genes)], con = 'genes.txt')