Biology Stack Exchange is a question and answer site for biology researchers, academics, and students. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to get the gene length information of all the human genes. Is there a quick way to get this information? Thank you!

share|improve this question
Which genome are you looking for? – Chris May 4 '14 at 20:15
The Ensembl 2005 data is here:… – kmm May 5 '14 at 0:13
Please accept the answer that you find the most suitable. – WYSIWYG Jul 31 '14 at 9:30

I'd use Ensembl's BioMart. It's not connecting for me right this second, but it should have that information.

share|improve this answer

Some basic information like length can be obtained in the GTF file (you can get the latest ENCODE GTF from the UCSC genome browser). Other information are also available and obtainable from the UCSC genome browser → table browser. Select the group and tracks that you want from the corresponding dropdown boxes. You can export the data as a text file or forward it to the galaxy interface for analysis.

If you are familiar with some programming then you can pull out the lengths (it is not explicitly given in the output or in the GTF). Also, the gene length may be different from the mRNA length because of the presence of introns in the former. The third field in the GTF file denotes the feature (gene, transcript, exon, etc); you can parse the GTF for picking up only desired features, lets say the mRNAs. The fourth and fifth fields denote start and end positions respectively; all you have to do is end - start to obtain the length.

A small scriptlet such as this would work in linux/cygwin terminal (I wont go in detail because this is not the scope of this forum):

awk -F "\t" '$3=="transcript"{print $9, $5-$4}' file.gtf > output.txt

The $9 refers to the ninth field which holds information about that feature including the gene name, gene id etc.

The first link that I mentioned also shows some basic methods of extracting information from GTF.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.