Package de.julielab.genemapper.apps
Class AppUtils
- java.lang.Object
-
- de.julielab.genemapper.apps.AppUtils
-
public class AppUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcollectMatchingCandidates(Set<String> taxIds, List<de.julielab.geneexpbase.candidateretrieval.SynHit> candidates, List<String> synonymsAndTax)Retrieves the taxonomy IDs that have the synonym of the first candidatestatic de.julielab.geneexpbase.candidateretrieval.SynHitgetCandidateForTaxId(List<de.julielab.geneexpbase.candidateretrieval.SynHit> candidates, String taxId)Sets the given taxonomy ID to the top candidate and returns it.
-
-
-
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:
-
-