Skip to main content

The number of exons

If you follow steps similar to the above, you ought to know how you could also add columns to the dataset reflecting the number of exons in each gene. has (in its canonical transcript).

For example you could do it like this:

  • Load the exon data from the gff file (they have type == 'exon').
  • join it to the canonical transcripts table, by dataset and transcript_id.
  • Now re-do your join of the genes table to the canonical transcripts table.

Good luck!

Solutions

You should definitely do this yourself. But if you get stuck, here is a solution.

Click the tab above to see some hints and a solution.