NBISweden / AGAT

Another Gtf/Gff Analysis Toolkit
GNU General Public License v3.0
467 stars 56 forks source link

change the chromosome name of the gff3 file #300

Closed tiramisutes closed 2 years ago

tiramisutes commented 2 years ago

Dear, Sometimes we need to rename the chromosome names in the gff3 file. It is true that sed can achieve this goal, but when the number of chromosomes or scaffolding is large, sed replacement is time-consuming. Therefore, can AGAT implement this function in the following way?

agat_xxx.pl -g infile.gff -f rename_table.txt [ -o outfile ]

The contents of the rename_table.txt file are as follows. The first column is the original name, and the second column is the corresponding name to be modified.

A1    B1
A2    B2
....

Any help is much appreciated. Thanks.

Best regards, Zhongping Xu