|
412 | 412 | </sql> |
413 | 413 | </sqlQuery> |
414 | 414 |
|
| 415 | + <sqlQuery name="Products" isCacheable="false" > |
| 416 | + <column name="source_id"/> |
| 417 | + <column name="product"/> |
| 418 | + <sql> |
| 419 | + <![CDATA[ |
| 420 | + select 'dots.GeneFeature' as source, source_id, product |
| 421 | + from dots.GeneFeature |
| 422 | + where product is not null |
| 423 | + union |
| 424 | + select 'dots.TranscriptFeature' as source, gf.source_id, t.product |
| 425 | + from dots.GeneFeature gf, dots.Transcript t |
| 426 | + where gf.na_feature_id = t.parent_id |
| 427 | + and t.product is not null |
| 428 | + union |
| 429 | + select 'apidb.GeneFeatureProduct' as source, gf.source_id, gfp.product |
| 430 | + from dots.GeneFeature gf, apidb.GeneFeatureProduct gfp |
| 431 | + where gfp.na_feature_id = gf.na_feature_id |
| 432 | + union |
| 433 | + select 'apidb.TranscriptProduct' as source, gf.source_id, tp.product |
| 434 | + from dots.GeneFeature gf, dots.Transcript t, |
| 435 | + apidb.TranscriptProduct tp |
| 436 | + where t.parent_id = gf.na_feature_id |
| 437 | + and tp.na_feature_id = t.na_feature_id |
| 438 | + ]]> |
| 439 | + </sql> |
| 440 | + </sqlQuery> |
| 441 | + |
| 442 | + |
| 443 | +<!-- |
415 | 444 | <sqlQuery name="PreferredProducts" isCacheable="false" > |
416 | 445 | <column name="source_id"/> |
417 | 446 | <column name="transcript_ids"/> |
|
518 | 547 | ]]> |
519 | 548 | </sql> |
520 | 549 | </sqlQuery> |
| 550 | +--> |
521 | 551 |
|
522 | 552 | <sqlQuery name="gene_dbrefs"> |
523 | 553 | <column name="source_id"/> |
|
0 commit comments