Closed Rafaelsoler13 closed 1 year ago
You have plenty of WARNING l2 and l1 features not on same seq_id @ LOC120317568__rna-XM_039364246.1.208590 level2 feature is on HiC_scaffold_1 sequence while LOC120317568 level1 feature is on ptg000195l_add
AGAT does not work well on records spread over different sequences. If a gene has two isoforms mRNA1 on sequenceA, and mRNA2 on sequenceB, AGAT takes the higher value as stop position for the gene... but the gene can be on sequenceA and the higher value comes form the mRNA2 from sequenceB. So if sequenceA and B are not the same length then AGAT can look for positions on sequenceA that do not exist because the sequenceA is shorter.
Basically this case is not really supposed to happen... Check how the file has been created.
If you are really sure you want to process this file, I would suggest you create one file by seq_id using an awk command:
awk '{if($1 !~ /^#/) { file=$1".gff"; print $0 >> file }}' input.gff
Then process each file independently with AGAT.
Modify ID that all files have no similar IDs (with AGAT)
then concatenate your files in one.
I am obtaining this bug in AGAT 1.0.0 (Linux) when I am tryining to run agat_convert_sp_gff2gtf.pl into a gff file generated by agat_convert_sp_gxf2gxf.pl
Can't call method "end" on an undefined value at /usr/local/bin/agat_convert_sp_gff2gtf.pl line 339.
Same as here https://github.com/NBISweden/AGAT/issues/245#issue-1220227757
This is the output: