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.
You can use AGAT
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.
agat_sp_filter_feature_from_kill_list.pl --gff input.gff --kill_list file.txt
the kill list will be an ID per line
I could use this agat script from the latest agat version for the filtering.
Thank you. I'll install a recent version of AGAT and then try this.
You can use AGAT