/** * Constructor. * * @param extraSynonyms a set of lists of unofficial names or common typos * @param ontologyManager the object that gives access to some of controlled vocabularies/ontologies (OBO) */ public XrefHelper(Set<List<String>> extraSynonyms, BiopaxOntologyManager ontologyManager) { // all database names and ID patterns go here this.dataPatterns = new ConcurrentHashMap<String, Pattern>(); // copy/normalize provided extra synonyms this.extraGroups = new CompositeCollection<String>(); if(extraSynonyms != null) { for(List<String> group : extraSynonyms) { Collection<String> newG = new ArrayList<String>(); for(String s : group) newG.add(dbName(s)); //trim, uppercase, add this.extraGroups.addComposited(newG); } } this.ontologyManager = ontologyManager; }
/** * Constructor. * * @param extraSynonyms a set of lists of unofficial names or common typos * @param ontologyManager the object that gives access to some of controlled vocabularies/ontologies (OBO) */ public XrefHelper(Set<List<String>> extraSynonyms, BiopaxOntologyManager ontologyManager) { // all database names and ID patterns go here this.dataPatterns = new ConcurrentHashMap<String, Pattern>(); // copy/normalize provided extra synonyms this.extraGroups = new CompositeCollection<String>(); if(extraSynonyms != null) { for(List<String> group : extraSynonyms) { Collection<String> newG = new ArrayList<String>(); for(String s : group) newG.add(dbName(s)); //trim, uppercase, add this.extraGroups.addComposited(newG); } } this.ontologyManager = ontologyManager; }
this.allSynonyms = new CompositeCollection<String>(); this.unofficialDbNames = Collections.newSetFromMap(new ConcurrentHashMap<String, Boolean>()); CompositeCollection<String> allSynonyms = new CompositeCollection<String>();
this.allSynonyms = new CompositeCollection<String>(); this.unofficialDbNames = Collections.newSetFromMap(new ConcurrentHashMap<String, Boolean>()); CompositeCollection<String> allSynonyms = new CompositeCollection<String>();