Class NcbiIdDesignElementMapper
- java.lang.Object
-
- ubic.gemma.core.loader.util.mapper.AbstractGeneIdentifierBasedDesignElementMapper<Integer>
-
- ubic.gemma.core.loader.util.mapper.NcbiIdDesignElementMapper
-
- All Implemented Interfaces:
DesignElementMapper
,EntityMapper<CompositeSequence>
public class NcbiIdDesignElementMapper extends AbstractGeneIdentifierBasedDesignElementMapper<Integer>
Match design elements using the NCBI ID.- Author:
- poirigui
- See Also:
Gene.getNcbiGeneId()
-
-
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
Constructors Constructor Description NcbiIdDesignElementMapper(Map<CompositeSequence,Set<Gene>> cs2g)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Integer
getIdentifier(Gene gene)
Extract an identifier from the gene.String
getName()
Obtain the name of the mapping strategy.protected Integer
processIdentifier(String identifier)
Extract an identifier from an externally supplied string.-
Methods inherited from class ubic.gemma.core.loader.util.mapper.AbstractGeneIdentifierBasedDesignElementMapper
forCandidates, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ubic.gemma.core.loader.util.mapper.DesignElementMapper
forCandidates
-
Methods inherited from interface ubic.gemma.core.loader.util.mapper.EntityMapper
contains, containsAny, getMappingStatistics, matchAll, matchAll, matchOne, matchOne
-
-
-
-
Constructor Detail
-
NcbiIdDesignElementMapper
public NcbiIdDesignElementMapper(Map<CompositeSequence,Set<Gene>> cs2g)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:EntityMapper
Obtain the name of the mapping strategy.
-
getIdentifier
protected Integer getIdentifier(Gene gene)
Description copied from class:AbstractGeneIdentifierBasedDesignElementMapper
Extract an identifier from the gene.- Specified by:
getIdentifier
in classAbstractGeneIdentifierBasedDesignElementMapper<Integer>
-
processIdentifier
protected Integer processIdentifier(String identifier)
Description copied from class:AbstractGeneIdentifierBasedDesignElementMapper
Extract an identifier from an externally supplied string.This may return null if the identifier cannot be parsed.
- Specified by:
processIdentifier
in classAbstractGeneIdentifierBasedDesignElementMapper<Integer>
-
-