How to filter a gff3 file by gene IDs
0
0
Entering edit mode
3.9 years ago
William ★ 5.3k

How to filter a gff3 file by gene IDs?

Just grepping on the IDs does output the exons and other features that are below the gene.

I thought this would be a common use case.

But can't find a command line tool that can filter a gff3 file based on IDs provided on the CLI or in a file.

gff3 • 3.2k views
ADD COMMENT
0
Entering edit mode

You can use AGAT

ADD REPLY
0
Entering edit mode

I looked at the AGAT documentation. But I could not find a AGAT command that could do this filtering. Can you share which command to use, with which options. Thank you.

ADD REPLY
1
Entering edit mode

agat_sp_filter_feature_from_kill_list.pl --gff input.gff --kill_list file.txt
the kill list will be an ID per line

ADD REPLY
1
Entering edit mode

I could use this agat script from the latest agat version for the filtering.

ADD REPLY
0
Entering edit mode

Thank you. I'll install a recent version of AGAT and then try this.

ADD REPLY
0
Entering edit mode

You can use AGAT

ADD REPLY

Login before adding your answer.

Traffic: 1799 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6