How can I get Transcript ID from the gene ID?
Dear all
I have a list of gene IDs in a tabular format. How I can extract the transcript IDs for the list of genes IDs mentioned above, from a gff file?
Thank you so much.
Carlos
• 5,842 views
•
link
1 answer
Hope the below one liner helps or at least, indicates the way to go ..
awk<yourGeneModel.gff3 -F'\t' '$3=="transcript" {print$9}' | sed -e 's|ID=transcript:\([^;]*\)\(.*\)Parent=gene:\([^;]*\)\(.*\)|\2\t\1|g'
If it is one gene one transcript for the genemodel, this should do. Else one more script to combine multiple transcripts per gene would be required.
• 0 views
•
link
Log in to answer this question.
Depends on what genome this is but you could try BioMart tool from Ensembl.
I have a data from a bacterium specie, so I think BioMart does not function in this case.
If this is a bacterium then you should have a single transcript from each gene since there is no alternate splicing, right?
Of course, you are right. I going to try to do a better explanation of my question.
A gff file is something like this:
I have a list with ID:gene
And I need to get for each gene in the list the transcript ID
For instance:
And so on.