Advertisement
Guest User

Untitled

a guest
May 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.70 KB | None | 0 0
  1. /*
  2.  * Why doesn't the EventEntity.getCrossReference() function return a list of cross refences?
  3.  * The example enters ID '70668' which is 'proline dehydrogenase [mitochondrial inner membrane]'
  4.  * and contains the following xrefs on the Reactome website:
  5.  * BioGPS Gene:5625
  6.  * Brenda:1.5.99.8
  7.  * CTD Gene:5625
  8.  * EC:1.5.99.8
  9.  * ENSEMBL:ENSG00000100033
  10.  * Entrez Gene:5625
  11.  * HapMap:NM_016335
  12.  * IntEnz:1.5.99.8
  13.  * KEGG:5625
  14.  * OMIM:181500
  15.  * OMIM:239500
  16.  * OMIM:600850
  17.  * OMIM:606810
  18.  * RefSeq:NM_016335
  19.  * RefSeq:NP_057419
  20.  * UCSC human:O43272
  21.  * UniProt:O43272
  22.  * dbSNP Gene:5625
  23.  *
  24.  * Am I using the wrong function? It seems as well, for metabolites, to only return the KEGG Compound identifier. But the Reactome website is  
  25.  * showing more cross reference IDs.
  26.  */
  27.  
  28.  
  29. /* EXAMPLE CODE */
  30. List<CatalystActivity> reactomeCatalysts = reactomeReaction.getCatalystActivity();
  31.                        
  32.     for(CatalystActivity catalystActivity : reactomeCatalysts) {
  33.         if(catalystActivity.getPhysicalEntity() != null) {
  34.         //Append known data to the catalyst proxy
  35.         EventEntity physicalEntity = (EventEntity) queryByObject.invoke(new Object[]{catalystActivity.getPhysicalEntity()});
  36.                                    
  37.         System.out.println("Entering: " + physicalEntity.getName());
  38.         System.out.println("ID: " + physicalEntity.getId());
  39.                                
  40.         List<DatabaseCrossReference> xrefs = physicalEntity.getCrossReference();
  41.                                
  42.         if(xrefs == null)
  43.             System.out.println("Cannot find xrefs!");
  44.         else
  45.             System.out.println("Number of xrefs: " + xrefs.size());
  46.         }
  47.     }
  48.  
  49.  
  50. /* GENERATED OUTPUT */
  51. Entering: proline dehydrogenase [mitochondrial inner membrane]
  52. ID: 70668
  53. Cannot find xrefs!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement