| 42 | | IDMapper mapper = BridgeDb.connect ("idmapper-cronos:hsa"); |
| 43 | | BioDataSource.init(); |
| 44 | | Xref insr = new Xref ("3643", BioDataSource.ENTREZ_GENE); |
| 45 | | Set<Xref> result = mapper.mapID(insr, BioDataSource.ENSEMBL); |
| 46 | | for (Xref ref : result) System.out.println (ref); |
| | 42 | try { |
| | 43 | IDMapper mapper = BridgeDb.connect ("idmapper-cronos:hsa"); |
| | 44 | BioDataSource.init(); |
| | 45 | Xref insr = new Xref ("3643", BioDataSource.ENTREZ_GENE); |
| | 46 | Set<Xref> result = mapper.mapID(insr, BioDataSource.ENSEMBL); |
| | 47 | for (Xref ref : result) System.out.println (ref); |
| | 48 | } catch (Exception ex){ |
| | 49 | System.err.println("**** Warning Cronos Test FAILED due to Cronos server not responding"); |
| | 50 | System.err.println(ex); |
| | 51 | } |