annotate get_gff_part.R @ 12:755a4d643184
draft default tip
planemo upload commit a61591d548f42ff417781e7fe7418dc2901ccc23
author |
petr-novak |
date |
Tue, 26 Sep 2023 07:28:04 +0000 |
parents |
ea6a3059a6af |
children |
|
rev |
line source |
0
|
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])
|