Question: Fetching minimal \ maximal transcription position per gene for UCSC\RefSeq gene tables
0
gravatar for nonish5
5.4 years ago by
nonish540
European Union
nonish540 wrote:

Hi,

I'm working with two gene tables (the UCSC knowngene table and the RefSeq refGene table) - the user of my program will choose which data to use.

For both table I want to execute the same process: for each gene find the minimal start and the maximal end position of its transcripts Thusm for example, if the two transcripts are

chr1 + 100 200 mygene

chr1 + 150 300 mygene

the required output should be "chr1 + 100 300" - although no such stranscript exists - this is like a merging of transcripts to form the "maximal transcript".

I added to the both tables an additional column of the kg_x_ref.geneSymbol.

My analysis assume that geneSymbol should be unique (for my needs I need it to be unique at least on the same chromosome and strand so this solves part of the problem of having the same gene name in different places on the genome). 

However, I found a few examples of gene with the same gene symbol residing on distant places in the same chr & strand, in the knownGene table (maybe this happens in the refGene as well).

Two examples: 

1) chr9, +, ANKRD20A3. Has several transcripts, among them we can find the following  non overlapping ranges that define their locations:

a. 42368302 - 42411863

​b.67926760​ - 67970293

2) chr17, -, LRRC37A3.Among the non overlapping transcripts we can find:

a. 43592714 - 43625261

b. 62850487 - 62915586

Is this a bug that is going to be fixed or should I find a way of working with this?

For the two examples above my tool returns (42368302 - 67970293) and (43592714 - 62915586) respectively which is obviously a wrong result since it merges two different genes, but it the source of the confusion is the raw data. The required result in this case is two separate lines for the two different gene locations on the matching chr and strand.

I found the UCSC knownCanonical table that at first glance seems to fit my needs. However, for the 2nd example above it didn't match what I expected to see. In the knownCanonical  table the LRRC37A3 indeed appears twice:

I) 43596707 43625261

II) 62850487 62914988

but the minimal position of (I) is not he minimal position found in the knownGene table and the same goes for the maximal position of (II).

Another disadvantage of using the knownCanonical  is that I didn't find the matching table for refGene and I prefer to apply the same algorithm to both tables.

I'd love to hear any ideas.

Thanks in advance!

 

gene genome • 2.0k views
ADD COMMENTlink modified 5.4 years ago by Pierre Lindenbaum126k • written 5.4 years ago by nonish540

If your application depends on a unique designator that doesn't appear across strands/chromosomes then don't use UCSC datasets. You'll be OK with Ensembl, though.

ADD REPLYlink written 5.4 years ago by Devon Ryan94k

Hello nonish5!

It appears that your post has been cross-posted to another site: SEQanswers.

This is typically not recommended as it runs the risk of annoying people in both communities.

ADD REPLYlink modified 5.4 years ago • written 5.4 years ago by Devon Ryan94k

Thank you for the prompt reply.

a. I am familiar with Ensembl. It sounds like a good idea and I'll try to use it but my instructor asked me specifically to enable to user to choose from UCSC\RefSeq tables.

b. Sorry. I hoped to get a wider range of answers this way and didn't think it is not legitimate. 

Best,

 

 

ADD REPLYlink written 5.4 years ago by nonish540

You're better off talking to your instructor about the issues innate with UCSC annotations. While you could take care of this by parsing things into overlapping loci (just parse the original txt files from ucsc, since you can get the bounds directly from them) that's more trouble than it's worth.

ADD REPLYlink written 5.4 years ago by Devon Ryan94k
0
gravatar for Pierre Lindenbaum
5.4 years ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum126k wrote:

your regions overlap a segmental duplication: that's why your gene is mapped twice:

$ mysql --user=genome --host=genome-mysql.cse.ucsc.edu -A -D hg19 -e 'select chrom,chromStart,chromEnd,otherChrom,otherStart,otherEnd from genomicSuperDups where chrom="chr9" and NOT(chromStart>42411863 OR chromEnd<42368302)'
+-------+------------+----------+----------------------+------------+-----------+
| chrom | chromStart | chromEnd | otherChrom           | otherStart | otherEnd  |
+-------+------------+----------+----------------------+------------+-----------+
| chr9  |   42288089 | 42613955 | chr9                 |   42887957 |  43213698 |
| chr9  |   42312409 | 42452474 | chr9                 |   44032248 |  44174373 |
| chr9  |   42340913 | 42613955 | chr9                 |   69354533 |  69621365 |
| chr9  |   42340913 | 42429581 | chr9                 |   67899291 |  67987998 |
| chr9  |   42365046 | 42370924 | chrY                 |   13325830 |  13331883 |
| chr9  |   42365046 | 42370895 | chrUn_gl000218       |      55186 |     61174 |
| chr9  |   42365046 | 42427114 | chrUn_gl000211       |      99999 |    166552 |
| chr9  |   42365046 | 42370924 | chr4_gl000194_random |      69974 |     75981 |
| chr9  |   42365046 | 42370924 | chr21                |    9923577 |   9929613 |
| chr9  |   42365046 | 42569309 | chr2                 |   95326171 |  95526261 |
| chr9  |   42367889 | 42372925 | chr21                |   15436107 |  15441948 |
| chr9  |   42368067 | 42410045 | chr21                |   15309851 |  15352570 |
| chr9  |   42368067 | 42466326 | chr18                |   14179031 |  14278835 |
| chr9  |   42368344 | 42373115 | chr13                |   24514690 |  24520152 |
| chr9  |   42369759 | 42370819 | chr4                 |   70317515 |  70318588 |
| chr9  |   42373487 | 42466382 | chr13                |   19346387 |  19448885 |
| chr9  |   42382929 | 42415780 | chr21                |    9742340 |   9775155 |
| chr9  |   42382929 | 42468766 | chr1                 |  143351483 | 143420542 |
| chr9  |   42382929 | 42423193 | chr1                 |  143200000 | 143236904 |
| chr9  |   42383190 | 42440418 | chr1                 |  142800000 | 142853020 |
| chr9  |   42390874 | 42416121 | chrUn_gl000214       |      65650 |     90826 |
| chr9  |   42392446 | 42468740 | chr1                 |  142670989 | 142731003 |
| chr9  |   42394740 | 42440418 | chrUn_gl000221       |          6 |     42041 |
| chr9  |   42402486 | 42429581 | chr4                 |   49488941 |  49512110 |
+-------+------------+----------+----------------------+------------+-----------+

In consequence you cannot have a 1<->1 relationship between a gene-name and a region on the genome.

 

ADD COMMENTlink written 5.4 years ago by Pierre Lindenbaum126k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2237 users visited in the last hour