/** * Search a protein in the cache * * @param id * @param bioSource * * @return */ public static ProteinHolder getProtein( String id, String db, BioSource bioSource ) { String taxid = null; if ( null != bioSource ) { taxid = bioSource.getTaxId(); } // System.out.println( "Search cache using: " + buildID( id, db, taxid ) ); return (ProteinHolder) cache.get( buildID( id, db, taxid ) ); }
/** * Search a protein in the cache * * @param id * @param bioSource * * @return */ public static ProteinHolder getProtein( String id, String db, BioSource bioSource ) { String taxid = null; if ( null != bioSource ) { taxid = bioSource.getTaxId(); } // System.out.println( "Search cache using: " + buildID( id, db, taxid ) ); return (ProteinHolder) cache.get( buildID( id, db, taxid ) ); }
/** * Search a protein in the cache * * @param id * @param bioSource * * @return */ public static ProteinHolder getProtein( String id, String db, BioSource bioSource ) { String taxid = null; if ( null != bioSource ) { taxid = bioSource.getTaxId(); } // System.out.println( "Search cache using: " + buildID( id, db, taxid ) ); return (ProteinHolder) cache.get( buildID( id, db, taxid ) ); }
String db = proteinInteractor.getPrimaryXref().getDb(); final String cacheId = buildID( proteinId, db, taxId );
String db = proteinInteractor.getPrimaryXref().getDb(); final String cacheId = buildID( proteinId, db, taxId );
String db = proteinInteractor.getPrimaryXref().getDb(); final String cacheId = buildID( proteinId, db, taxId );