comparison get_gff_part.R @ 0:d14182506989 draft default tip

"planemo upload commit d7966a292ed4209f4058e77ab8c0e49a67847b16-dirty"
author petrn
date Tue, 15 Feb 2022 16:44:31 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d14182506989
1 #!/usr/bin/env Rscript
2 suppressPackageStartupMessages(library(rtracklayer))
3 g = import(commandArgs(T)[1])
4 gd = mcols(g)
5 col_name=commandArgs(T)[2]
6 col_value=commandArgs(T)[3]
7 inc = gd[,col_name] %in% col_value
8 g_part = sort(sortSeqlevels(g[inc]))
9 export(g_part, format = 'gff3', commandArgs(T)[4])