I have a gff file like this
scaffold_1 source mRNA 2987526 2992430 . - . ID=protein_id_68892;Name="foobar";locus_tag=my_organism_68892;translation=MHTGDALEGSTGNVSILV...
scaffold_1 source exon 2987526 2987805 . - . name "foobar"; transcriptId 68892;locus_tag=my_organism_68892
scaffold_1 source CDS 2987526 2987805 . - 1 name "foobar"; proteinId 68892; exonNumber 5;locus_tag=my_organism_68892;Parent=protein_id_68892
scaffold_1 source exon 2988610 2988745 . - . name "foobar"; transcriptId 68892;locus_tag=my_organism_68892
scaffold_1 source CDS 2988610 2988745 . - 2 name "foobar"; proteinId 68892; exonNumber 4;locus_tag=my_organism_68892;Parent=protein_id_68892
scaffold_1 source exon 2989157 2989645 . - . name "foobar"; transcriptId 68892;locus_tag=my_organism_68892
scaffold_1 source CDS 2989157 2989645 . - 2 name "foobar"; proteinId 68892; exonNumber 3;locus_tag=my_organism_68892;Parent=protein_id_68892
scaffold_1 source exon 2990903 2991541 . - . name "foobar"; transcriptId 68892;locus_tag=my_organism_68892
scaffold_1 source CDS 2990903 2991541 . - 2 name "foobar"; proteinId 68892; exonNumber 2;locus_tag=my_organism_68892;Parent=protein_id_68892
scaffold_1 source exon 2991587 2992430 . - . name "foobar"; transcriptId 68892;locus_tag=my_organism_68892
scaffold_1 source CDS 2991587 2992430 . - 0 name "foobar"; proteinId 68892; exonNumber 1;locus_tag=my_organism_68892;Parent=protein_id_68892
The mRNA
entry was not present at first and I added it in. I also have the protein fast file available and would now like to add the amino acid sequences to the gff. I originally added them in column 9 to the mRNA
entry which is apparently incorrect. Here it is written that the sequences should go at the end of the file in the ##Fasta
section. However, I struggle to figure out which identifier I should use to link it to my mRNA
entries.
Do I have to use
##Fasta
>protein_id_68892
MHTGDALEGSTGNVSILV...
or does it work with the locus_tag
##Fasta
>my_organism_68892
MHTGDALEGSTGNVSILV...
or is it something completely else? Where and how do can I add the translation information?
In the link above (and also in the comments it is suggested) the identifier in the first column is used, in my case that would be scaffold_1
. However, I do have a lot of entries with scaffold_1
in my file so a link between scaffold_1
and an amino acid sequence would not be unique as I would have
##Fasta
>scaffold_1
MHTGDALEGSTGNVSILV...
>scaffold_1
GDAHTEGSTGNVSILV...
. In the end, I want to create a genbank file (which does not exist yet) where I can link a CDS to an amino acid sequence.
scaffold_1
for a lot of proteins. Then it would still unclear which sequence to add. Also, in the link in my question is writtenThis notation indicates that the annotation portion of the file is at an end and that the remainder of the file contains one or more sequences (nucleotide or protein) in FASTA format.
So adding proteins should be ok. Any ideas? $\endgroup$