This is a test version of Biostars. For the public version, visit https://www.biostars.org.
getting exon coordinates

How to get the exon co-ordinates of a particular gene?

genomics

Please do not use bioinformatics as a tag unless your post in about the field of bioinformatics itself.

1 answer

A combination of bash and awk can do the work, suppose you have the gff file annotation of your gene of interest and a text file with GeneName by line you can do something like :

grep -w -F -f geneofinterest.tsv yourannotationfile.gff | awk '{print $1,$2,$3, $4, $5}'|head

You can save and redirect the output to file

grep -w -F -f geneofinterest.tsv yourannotationfile.gff | awk '{print $1,$2,$3, $4, $5}' > genecoodinate.tsv

I hope this works for you

Log in to answer this question.