diff --git a/t/scripts_output.t b/t/scripts_output.t index c34781f7..11f3914e 100644 --- a/t/scripts_output.t +++ b/t/scripts_output.t @@ -603,6 +603,15 @@ system(" $script --gff $input_folder/agat_sp_merge_annotations/fileA.gff --gff ok( system("diff $result $outtmp") == 0, "output $script"); unlink $outtmp; +# ------------------- check agat_sp_move_attributes_within_records script------------------- + +$script = $script_prefix."bin/agat_sp_move_attributes_within_records.pl"; +$result = "$output_folder/agat_sp_move_attributes_within_records.gff"; +system(" $script --gff $input_folder/agat_sp_move_attributes_within_records.gff --fp exon,CDS --fc mRNA -o $outtmp 2>&1 1>/dev/null"); +#run test +ok( system("diff $result $outtmp") == 0, "output $script"); +unlink $outtmp; + # ------------------- check agat_sp_prokka_fragmented_gene_annotations script------------------- $script = $script_prefix."bin/agat_sp_prokka_fix_fragmented_gene_annotations.pl"; diff --git a/t/scripts_output/in/agat_sp_move_attributes_within_records.gff b/t/scripts_output/in/agat_sp_move_attributes_within_records.gff new file mode 100644 index 00000000..d77cec81 --- /dev/null +++ b/t/scripts_output/in/agat_sp_move_attributes_within_records.gff @@ -0,0 +1,3 @@ +ptg000002l AUGUSTUS mRNA 3255 4626 0.5 + . ID=NBISM00000000001;Parent=NBISG00000000001;Dbxref=CDD:cd07067,Gene3D:G3DSA:3.40.50.1240,InterPro:IPR013078,InterPro:IPR029033,;Name=ARB_03491;Ontology_term=-;makerName=g1.t1;product=Probable phosphoglycerate mutase ARB_03491;uniprot_id=D4B4V1 +ptg000002l AUGUSTUS CDS 3255 3275 0.98 + 0 ID=NBISC00000000001;Parent=NBISM00000000001;makerName=g1.t1.CDS1 + diff --git a/t/scripts_output/out/agat_sp_move_attributes_within_records.gff b/t/scripts_output/out/agat_sp_move_attributes_within_records.gff new file mode 100644 index 00000000..06aded93 --- /dev/null +++ b/t/scripts_output/out/agat_sp_move_attributes_within_records.gff @@ -0,0 +1,6 @@ +##gff-version 3 +ptg000002l AGAT gene 3255 4626 . + . ID=NBISG00000000001;Dbxref=CDD:cd07067,Gene3D:G3DSA:3.40.50.1240,InterPro:IPR013078,InterPro:IPR029033;Name=ARB_03491;Ontology_term=-;makerName=g1.t1;product=Probable phosphoglycerate mutase ARB_03491;uniprot_id=D4B4V1 +ptg000002l AUGUSTUS mRNA 3255 4626 0.5 + . ID=NBISM00000000001;Parent=NBISG00000000001;Dbxref=CDD:cd07067,Gene3D:G3DSA:3.40.50.1240,InterPro:IPR013078,InterPro:IPR029033;Name=ARB_03491;Ontology_term=-;makerName=g1.t1;product=Probable phosphoglycerate mutase ARB_03491;uniprot_id=D4B4V1 +ptg000002l AGAT exon 3255 4626 . + . ID=agat-exon-1;Parent=NBISM00000000001;Dbxref=CDD:cd07067,Gene3D:G3DSA:3.40.50.1240,InterPro:IPR013078,InterPro:IPR029033;Name=ARB_03491;Ontology_term=-;makerName=g1.t1.CDS1,g1.t1;product=Probable phosphoglycerate mutase ARB_03491;uniprot_id=D4B4V1 +ptg000002l AUGUSTUS CDS 3255 3275 0.98 + 0 ID=NBISC00000000001;Parent=NBISM00000000001;Dbxref=CDD:cd07067,Gene3D:G3DSA:3.40.50.1240,InterPro:IPR013078,InterPro:IPR029033;Name=ARB_03491;Ontology_term=-;makerName=g1.t1.CDS1,g1.t1;product=Probable phosphoglycerate mutase ARB_03491;uniprot_id=D4B4V1 +ptg000002l AGAT three_prime_UTR 3276 4626 . + . ID=agat-three_prime_utr-1;Parent=NBISM00000000001;makerName=g1.t1.CDS1