@Provides @LocusNames @Singleton
    Table<String, String, String> createLocusNames() {
        AllelelistHistoryReader allelelistHistoryReader = new AllelelistHistoryReader("https://gl.nmdp.org/imgt-hla/");
        try {
            allelelistHistoryReader.readAllelelistHistory();
            allelelistHistoryReader.readGgroups();
        }
        catch (IOException e) {
            throw new RuntimeException("could not read Allelelist_history.txt", e);
        }
        return allelelistHistoryReader.getLocusNames();
    }
@ Provides @ LocusNames @ Singleton Table < String , String , String > createLocusNames ( ) { AllelelistHistoryReader allelelistHistoryReader = new AllelelistHistoryReader ( "https://gl.nmdp.org/imgt-hla/" ) ; try { allelelistHistoryReader . readAllelelistHistory ( ) ; allelelistHistoryReader . readGgroups ( ) ; } catch ( IOException e ) { throw new RuntimeException ( "could not read Allelelist_history.txt" , e ) ; } return allelelistHistoryReader . getLocusNames ( ) ; }
todo: sucks to read Allelelist_history.txt twice