Answers.Body: <p>I'm not quite sure what you're asking, but pretty much anything can happen in terms of exons and transcripts:</p>
  <ul>
  <li><p>Two different genes encoded on different strands can share the same genomic region as an exon</p>
  </li>
  <li><p>Two different genes encoded on <em>the same strand</em> can share the same genomic region as an exon (including identical exon boundaries)</p>
  </li>
  <li><p>A gene can have multiple transcript isoforms that share the same genomic region on the same frame</p>
  </li>
  <li><p>A gene can have multiple isoforms that share the same genomic region in different frames</p>
  </li>
  <li><p>Genes can have variable regions which are modified during somatic development (e.g. T-cell and B-cell receptors)</p>
  </li>
  <li><p>Gene transcripts can be spliced together in different orders in different isoforms</p>
  </li>
  <li><p>Exons from one transcript isoform can overlap with exons from another isoform (but not necessarily cover identical regions)</p>
  </li>
  <li><p>Stop codons can occasionally be &quot;read-through&quot;, resulting in a longer protein/peptide than the expected translation</p>
  </li>
  </ul>
  <p>As an example of different isoforms within the same gene exhibiting different translation mechanisms, here are graphical representations of annotated transcript isoforms for Gapdh on the mouse GRCm38 assembly, created in <a href="https://jbrowse.org/jb2/" rel="nofollow noreferrer">JBrowse</a>. I wouldn't put complete trust in any of these (especially not the ones that have no defined intronic regions), but it's a useful demonstration of the types of things that can happen. Compare, Gapdh-207, where an untranslated region starts halfway through an exon, and Gapdh-209, where the translated protein starts halfway through an untranslated exon in Gapdh-207:</p>
  <p><a href="https://i.sstatic.net/NHFDE.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/NHFDE.png" alt="Gapdh isoforms, showing overlapping exons" /></a></p>
  <p>If there is a situation where it seems like exons <em>from the same isoform</em> have overlapping regions, it might be worth looking elsewhere in the genome to see if there's a transcribed gene copy somewhere. That, at least, doesn't seem to be something I'd expect to happen through the normal translation process.</p>
  <p>Also, don't expect annotations to be complete. Even on something as [presumably] well-studied as the mouse mitochondrial genome, we can identify clear transcript start/stop points from long polyA cDNA sequences that are completely absent in the genome annotations. This is most obvious for the completely unannotated reverse strand (e.g. transcript starting at around 16,200bp), but also happens on the forward strand as well (e.g. coverage steps within mt-Nd5):</p>
  <p><a href="https://i.sstatic.net/srLJ4.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/srLJ4.png" alt="GRCm38 mitochondrial genome, with annotation and mapped transcript coverage plots" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-19T12:24:54.283Z
Answers.Text: May I know which software or tool you are using to show Gadph exons in the images your provided here
Answers.UserDisplayName: SArvind M17BS006
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-19T12:35:40.590Z
Answers.Text: I've updated my answer. I used JBrowse (v1 to be specific, but v2 is the most current version).
Answers.UserDisplayName: gringer
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-16T01:07:32.327Z
Answers.Text: Thank you, I believe my confusion was due to the fact that I was not aware of the exon behavior from your two last points. This I think might explain what it is happening in my case, where the exon 1 from the first transcript shares some bases (but not exactly the same interval) with exon 1 from the second transcript. I used to think that transcripts (on the same strand) might have different exons, but the set of exons from which they could select their subset was composed by non-overlapping exons.
Answers.UserDisplayName: gc5
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-16T00:08:33.377Z
Answers.LastActivityDate: 2023-02-19T12:35:06.737Z
Answers.LastEditDate: 2023-02-19T12:35:06.737Z
Answers.UserDisplayName: gringer
Body: <p>I want to get a set of exon regions for each protein coding gene.</p>
  <p>I extracted a set of relevant information (chromosome, start, end, gene ID, gene name, gene type, exon number and exon ID) from a GTF using:</p>
  <pre><code>awk '$3 == &quot;exon&quot;' annotation.gtf \
    | gtf2bed \
    | cut -f1-4,10 \
    | awk 'match($0, /gene_name \&quot;[a-zA-Z0-9\_\-.\/]*\&quot;/, gene_name) 
      &amp;&amp; match($0, /gene_type \&quot;[^&quot;]*\&quot;/, gene_type) 
      &amp;&amp; match($0, /exon_number [0-9]*/, exon_number) 
      &amp;&amp; match($0, /exon_id \&quot;[^&quot;]*\&quot;/, exon_id) { 
        print $1,$2,$3,$4,gene_name[0],gene_type[0],exon_number[0],exon_id[0];
      }' \
    | tr -d '&quot;' \
    | tr ' ' $'\t' \
    | cut -f1-4,6,8,10,12 \
    | grep 'protein_coding' \
    &gt; annotation.exons.bed
  </code></pre>
  <p>However, during a sanity check, I noticed that for some genes there are some exons with overlapping coordinates, same gene information and exon number, but different exon ID, e.g.:</p>
  <pre><code>chr2    9423650 9424052 ENSG00000119203.14      CPSF3   protein_coding  1       ENSE00001829522.1
  chr2    9423653 9423823 ENSG00000119203.14      CPSF3   protein_coding  1       ENSE00001830696.2
  chr2    9423883 9424960 ENSG00000119203.14      CPSF3   protein_coding  1       ENSE00001932298.1
  </code></pre>
  <p>I did not directly work with exons in the past, but I am aware of alternative splicing.
  My understanding was that exons can be skipped during alternative splicing, but I assumed that exon number was unique for bases, within the same gene (on the same strand).</p>
  <p>In the example above, the first 2 listed exons have the same exon number, overlapping (but not exactly the same) bases, and different exon ID. Is this due to some additional information that I can retrieve from the GTF, i.e., from:</p>
  <pre><code>chr2    9423650 9424052 ENSG00000119203.14      .       +       HAVANA  exon    .       gene_id &quot;ENSG00000119203.14&quot;; transcript_id &quot;ENST00000475482.5&quot;; gene_type &quot;protein_coding&quot;; gene_name &quot;CPSF3&quot;; transcript_type &quot;protein_coding&quot;; transcript_name &quot;CPSF3-203&quot;; exon_number 1; exon_id &quot;ENSE00001829522.1&quot;; level 2; protein_id &quot;ENSP00000419744.1&quot;; transcript_support_level &quot;4&quot;; hgnc_id &quot;HGNC:2326&quot;; tag &quot;mRNA_end_NF&quot;; tag &quot;cds_end_NF&quot;; havana_gene &quot;OTTHUMG00000090415.5&quot;; havana_transcript &quot;OTTHUMT00000353331.3&quot;;
  chr2    9423653 9423823 ENSG00000119203.14      .       +       HAVANA  exon    .       gene_id &quot;ENSG00000119203.14&quot;; transcript_id &quot;ENST00000238112.8&quot;; gene_type &quot;protein_coding&quot;; gene_name &quot;CPSF3&quot;; transcript_type &quot;protein_coding&quot;; transcript_name &quot;CPSF3-201&quot;; exon_number 1; exon_id &quot;ENSE00001830696.2&quot;; level 2; protein_id &quot;ENSP00000238112.3&quot;; transcript_support_level &quot;1&quot;; hgnc_id &quot;HGNC:2326&quot;; tag &quot;basic&quot;; tag &quot;MANE_Select&quot;; tag &quot;appris_principal_1&quot;; tag &quot;CCDS&quot;; ccdsid &quot;CCDS1664.1&quot;; havana_gene &quot;OTTHUMG00000090415.5&quot;; havana_transcript &quot;OTTHUMT00000206843.2&quot;;
  </code></pre>
  <p>?</p>
  <p>Is this because the different exons belong to different transcripts?
  However, shouldn't different exons still be non-overlapping one against each other?</p>
  
Tags: <proteins><sequence-annotation><gtf><rna-splicing><exon>
Title: On the same strand, for the same gene, can exons be overlapping?
ThreadText: # On the same strand, for the same gene, can exons be overlapping?
  
  (Asked by: username_0 on 2022-03-15)
  
  I want to get a set of exon regions for each protein coding gene.
  
  I extracted a set of relevant information (chromosome, start, end, gene ID, gene name, gene type, exon number and exon ID) from a GTF using:
  
  ```
  awk '$3 == "exon"' annotation.gtf \
    | gtf2bed \
    | cut -f1-4,10 \
    | awk 'match($0, /gene_name \"[a-zA-Z0-9\_\-.\/]*\"/, gene_name) 
      && match($0, /gene_type \"[^"]*\"/, gene_type) 
      && match($0, /exon_number [0-9]*/, exon_number) 
      && match($0, /exon_id \"[^"]*\"/, exon_id) { 
        print $1,$2,$3,$4,gene_name[0],gene_type[0],exon_number[0],exon_id[0];
      }' \
    | tr -d '"' \
    | tr ' ' $'\t' \
    | cut -f1-4,6,8,10,12 \
    | grep 'protein_coding' \
    > annotation.exons.bed
  
  ```
  
  However, during a sanity check, I noticed that for some genes there are some exons with overlapping coordinates, same gene information and exon number, but different exon ID, e.g.:
  
  ```
  chr2    9423650 9424052 ENSG00000119203.14      CPSF3   protein_coding  1       ENSE00001829522.1
  chr2    9423653 9423823 ENSG00000119203.14      CPSF3   protein_coding  1       ENSE00001830696.2
  chr2    9423883 9424960 ENSG00000119203.14      CPSF3   protein_coding  1       ENSE00001932298.1
  
  ```
  
  I did not directly work with exons in the past, but I am aware of alternative splicing.
  My understanding was that exons can be skipped during alternative splicing, but I assumed that exon number was unique for bases, within the same gene (on the same strand).
  
  In the example above, the first 2 listed exons have the same exon number, overlapping (but not exactly the same) bases, and different exon ID. Is this due to some additional information that I can retrieve from the GTF, i.e., from:
  
  ```
  chr2    9423650 9424052 ENSG00000119203.14      .       +       HAVANA  exon    .       gene_id "ENSG00000119203.14"; transcript_id "ENST00000475482.5"; gene_type "protein_coding"; gene_name "CPSF3"; transcript_type "protein_coding"; transcript_name "CPSF3-203"; exon_number 1; exon_id "ENSE00001829522.1"; level 2; protein_id "ENSP00000419744.1"; transcript_support_level "4"; hgnc_id "HGNC:2326"; tag "mRNA_end_NF"; tag "cds_end_NF"; havana_gene "OTTHUMG00000090415.5"; havana_transcript "OTTHUMT00000353331.3";
  chr2    9423653 9423823 ENSG00000119203.14      .       +       HAVANA  exon    .       gene_id "ENSG00000119203.14"; transcript_id "ENST00000238112.8"; gene_type "protein_coding"; gene_name "CPSF3"; transcript_type "protein_coding"; transcript_name "CPSF3-201"; exon_number 1; exon_id "ENSE00001830696.2"; level 2; protein_id "ENSP00000238112.3"; transcript_support_level "1"; hgnc_id "HGNC:2326"; tag "basic"; tag "MANE_Select"; tag "appris_principal_1"; tag "CCDS"; ccdsid "CCDS1664.1"; havana_gene "OTTHUMG00000090415.5"; havana_transcript "OTTHUMT00000206843.2";
  
  ```
  
  ?
  
  Is this because the different exons belong to different transcripts?
  However, shouldn't different exons still be non-overlapping one against each other?
  
  **Tags:** proteins, sequence-annotation, gtf, rna-splicing, exon
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-03-16. Score: 5 | Accepted answer
  
  I'm not quite sure what you're asking, but pretty much anything can happen in terms of exons and transcripts:
  
  * Two different genes encoded on different strands can share the same genomic region as an exon
  * Two different genes encoded on *the same strand* can share the same genomic region as an exon (including identical exon boundaries)
  * A gene can have multiple transcript isoforms that share the same genomic region on the same frame
  * A gene can have multiple isoforms that share the same genomic region in different frames
  * Genes can have variable regions which are modified during somatic development (e.g. T-cell and B-cell receptors)
  * Gene transcripts can be spliced together in different orders in different isoforms
  * Exons from one transcript isoform can overlap with exons from another isoform (but not necessarily cover identical regions)
  * Stop codons can occasionally be "read-through", resulting in a longer protein/peptide than the expected translation
  
  As an example of different isoforms within the same gene exhibiting different translation mechanisms, here are graphical representations of annotated transcript isoforms for Gapdh on the mouse GRCm38 assembly, created in [JBrowse](https://jbrowse.org/jb2/). I wouldn't put complete trust in any of these (especially not the ones that have no defined intronic regions), but it's a useful demonstration of the types of things that can happen. Compare, Gapdh-207, where an untranslated region starts halfway through an exon, and Gapdh-209, where the translated protein starts halfway through an untranslated exon in Gapdh-207:
  
  [![Gapdh isoforms, showing overlapping exons](https://i.sstatic.net/NHFDE.png)](https://i.sstatic.net/NHFDE.png)
  
  If there is a situation where it seems like exons *from the same isoform* have overlapping regions, it might be worth looking elsewhere in the genome to see if there's a transcribed gene copy somewhere. That, at least, doesn't seem to be something I'd expect to happen through the normal translation process.
  
  Also, don't expect annotations to be complete. Even on something as [presumably] well-studied as the mouse mitochondrial genome, we can identify clear transcript start/stop points from long polyA cDNA sequences that are completely absent in the genome annotations. This is most obvious for the completely unannotated reverse strand (e.g. transcript starting at around 16,200bp), but also happens on the forward strand as well (e.g. coverage steps within mt-Nd5):
  
  [![GRCm38 mitochondrial genome, with annotation and mapped transcript coverage plots](https://i.sstatic.net/srLJ4.png)](https://i.sstatic.net/srLJ4.png)
  
  > **Comments:**
  > **username_0**: Thank you, I believe my confusion was due to the fact that I was not aware of the exon behavior from your two last points. This I think might explain what it is happening in my case, where the exon 1 from the first transcript shares some bases (but not exactly the same interval) with exon 1 from the second transcript. I used to think that transcripts (on the same strand) might have different exons, but the set of exons from which they could select their subset was composed by non-overlapping exons.  
  > **username_2**: May I know which software or tool you are using to show Gadph exons in the images your provided here  
  > **username_1**: I've updated my answer. I used JBrowse (v1 to be specific, but v2 is the most current version).  
  
  ---
  
  