Class AppUtils


  • public class AppUtils
    extends Object
    • Method Detail

      • collectMatchingCandidates

        public static void collectMatchingCandidates​(Set<String> taxIds,
                                                     List<de.julielab.geneexpbase.candidateretrieval.SynHit> candidates,
                                                     List<String> synonymsAndTax)
        Retrieves the taxonomy IDs that have the synonym of the first candidate
        Parameters:
        taxIds -
        candidates -
        synonymsAndTax -
      • getCandidateForTaxId

        public static de.julielab.geneexpbase.candidateretrieval.SynHit getCandidateForTaxId​(List<de.julielab.geneexpbase.candidateretrieval.SynHit> candidates,
                                                                                             String taxId)

        Sets the given taxonomy ID to the top candidate and returns it.

        If the top candidate doesn't have the passed taxonomy ID, the next candidates will be tried until one candidate does have the taxonomy ID or the list is depleted.

        Parameters:
        candidates -
        taxId -
        Returns: