Class AbstractGeneIdentifierBasedDesignElementMapper<K>
java.lang.Object
ubic.gemma.core.loader.util.mapper.AbstractGeneIdentifierBasedDesignElementMapper<K>
- All Implemented Interfaces:
DesignElementMapper,EntityMapper<CompositeSequence>
- Direct Known Subclasses:
EnsemblIdDesignElementMapper,GeneNameDesignElementMapper,NcbiIdDesignElementMapper,OfficialSymbolDesignElementMapper
public abstract class AbstractGeneIdentifierBasedDesignElementMapper<K>
extends Object
implements DesignElementMapper
Base class for design element mapper that use gene identifiers.
- Author:
- poirigui
-
Nested Class Summary
Nested classes/interfaces inherited from interface ubic.gemma.core.loader.util.mapper.EntityMapper
EntityMapper.MappingStatistics, EntityMapper.StatefulEntityMapper<T extends Identifiable> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionforCandidates(Collection<CompositeSequence> candidates) Create a stateful mapper for a set of candidates.protected abstract KgetIdentifier(Gene gene) Extract an identifier from the gene.protected abstract KprocessIdentifier(String identifier) Extract an identifier from an externally supplied string.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ubic.gemma.core.loader.util.mapper.DesignElementMapper
forCandidatesMethods inherited from interface ubic.gemma.core.loader.util.mapper.EntityMapper
contains, containsAny, getMappingStatistics, getName, matchAll, matchAll, matchOne, matchOne
-
Constructor Details
-
AbstractGeneIdentifierBasedDesignElementMapper
-
-
Method Details
-
forCandidates
public EntityMapper.StatefulEntityMapper<CompositeSequence> forCandidates(Collection<CompositeSequence> candidates) Description copied from interface:EntityMapperCreate a stateful mapper for a set of candidates.- Specified by:
forCandidatesin interfaceEntityMapper<K>
-
toString
-
getIdentifier
Extract an identifier from the gene. -
processIdentifier
Extract an identifier from an externally supplied string.This may return null if the identifier cannot be parsed.
-