* candidate terms to 'capture' in ontology groupings
* @return
*/
+ @Override
public Map<String, List<String>> findSequenceOntologyGroupings(
String givenTerm, List<String> targetTerms)
{
Collections.sort(sortedTypes);
Map<String, List<String>> parents = new HashMap<>();
-
+ if (!isValidTerm(givenTerm))
+ {
+ return parents;
+ }
+
/*
* method:
* walk up featureType and all of its parents
*/
List<String> candidates = new ArrayList<>();
SequenceOntologyI so = SequenceOntologyFactory.getInstance();
+
candidates.add(givenTerm);
while (!candidates.isEmpty())
{