...ibao/jcvi/wiki/ALLMAPS%3A-How-to-lift-over-gene-annotations
But, you want the reverse mapping here so we'd need to swap the AGP file.
python -m jcvi.formats.agp swap assembly.agp
This generates a new AGP assembly.swapped.agp. You'll see that it basically swaps the components/objects from the or...
...00 GFF lines processed.Error occured when processing GFF file (line 546354 of file /bioData/run_data/lixp/work/GZ_yangtao2/2.alignment/stringtie/stringtie_merged.gtf): Feature Yangtao2000001 does not contain a 'gene_id' attribute [Exception type: ValueError, raised in count.py:53]