Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Why doesn't the EventEntity.getCrossReference() function return a list of cross refences?
- * The example enters ID '70668' which is 'proline dehydrogenase [mitochondrial inner membrane]'
- * and contains the following xrefs on the Reactome website:
- * BioGPS Gene:5625
- * Brenda:1.5.99.8
- * CTD Gene:5625
- * EC:1.5.99.8
- * ENSEMBL:ENSG00000100033
- * Entrez Gene:5625
- * HapMap:NM_016335
- * IntEnz:1.5.99.8
- * KEGG:5625
- * OMIM:181500
- * OMIM:239500
- * OMIM:600850
- * OMIM:606810
- * RefSeq:NM_016335
- * RefSeq:NP_057419
- * UCSC human:O43272
- * UniProt:O43272
- * dbSNP Gene:5625
- *
- * Am I using the wrong function? It seems as well, for metabolites, to only return the KEGG Compound identifier. But the Reactome website is
- * showing more cross reference IDs.
- */
- /* EXAMPLE CODE */
- List<CatalystActivity> reactomeCatalysts = reactomeReaction.getCatalystActivity();
- for(CatalystActivity catalystActivity : reactomeCatalysts) {
- if(catalystActivity.getPhysicalEntity() != null) {
- //Append known data to the catalyst proxy
- EventEntity physicalEntity = (EventEntity) queryByObject.invoke(new Object[]{catalystActivity.getPhysicalEntity()});
- System.out.println("Entering: " + physicalEntity.getName());
- System.out.println("ID: " + physicalEntity.getId());
- List<DatabaseCrossReference> xrefs = physicalEntity.getCrossReference();
- if(xrefs == null)
- System.out.println("Cannot find xrefs!");
- else
- System.out.println("Number of xrefs: " + xrefs.size());
- }
- }
- /* GENERATED OUTPUT */
- Entering: proline dehydrogenase [mitochondrial inner membrane]
- ID: 70668
- Cannot find xrefs!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement