Class CompositeSequenceServiceImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractService<CompositeSequence>
ubic.gemma.persistence.service.AbstractFilteringVoEnabledService<CompositeSequence, CompositeSequenceValueObject>
ubic.gemma.persistence.service.expression.designElement.CompositeSequenceServiceImpl
- All Implemented Interfaces:
BaseImmutableService<CompositeSequence>, BaseReadOnlyService<CompositeSequence>, BaseService<CompositeSequence>, BaseVoEnabledService<CompositeSequence, CompositeSequenceValueObject>, CompositeSequenceService, FilteringService<CompositeSequence>, FilteringVoEnabledService<CompositeSequence, CompositeSequenceValueObject>
@Service
public class CompositeSequenceServiceImpl
extends AbstractFilteringVoEnabledService<CompositeSequence, CompositeSequenceValueObject>
implements CompositeSequenceService
- Author:
- keshav, pavlidis
- See Also:
-
Field Summary
Fields inherited from class AbstractService
log -
Constructor Summary
ConstructorsConstructorDescriptionCompositeSequenceServiceImpl(CompositeSequenceDao compositeSequenceDao, BioSequenceService bioSequenceService, GeneProductService geneProductService, BlatResultService blatResultService, ArrayDesignService arrayDesignService, CompositeSequenceReadService compositeSequenceReadService) -
Method Summary
Modifier and TypeMethodDescriptionfindByBioSequence(BioSequence bioSequence) findByBioSequenceName(String name) findByGene(Gene gene, boolean useGene2Cs) findByGene(Gene gene, ArrayDesign arrayDesign, boolean useGene2Cs) findByGenes(Collection<Gene> genes, boolean useGene2Cs) findByGenes(Collection<Gene> genes, ArrayDesign arrayDesign, boolean useGene2Cs) findByName(String name) findByName(ArrayDesign arrayDesign, String name) findByNamesInArrayDesigns(Collection<String> compositeSequenceNames, Collection<ArrayDesign> arrayDesigns) Checks to see if the CompositeSequence exists in any of the array designs.findIdsByGeneIds(Collection<Long> geneIds, Long arrayDesignId) getGeneData(Collection<Long> compositeSequenceIds) getGeneMappingSummary(BioSequence biologicalCharacteristic, CompositeSequenceValueObject cs) getGenes(Collection<CompositeSequence> sequences, boolean useGene2Cs) getGenes(CompositeSequence compositeSequence, boolean useGene2Cs) getGenes(CompositeSequence compositeSequence, int offset, int limit, boolean useGene2Cs) getGenesByCursor(CompositeSequence compositeSequence, Cursor cursor, int limit, boolean useGene2Cs) Cursor-mode counterpart toCompositeSequenceService.getGenes(CompositeSequence, int, int, boolean)— seeCURSOR_PAGINATION_STEP1_PLAN.mdstep 1l.getGenesWithSpecificity(Collection<CompositeSequence> compositeSequences) Collection<Object[]> getRawSummary(Collection<CompositeSequence> compositeSequences) Collection<Object[]> getRawSummary(ArrayDesign arrayDesign, int numResults) getSequenceData(Collection<Long> compositeSequenceIds) loadValueObjectsForGene(Gene gene, int start, int limit, boolean useGene2Cs) loadValueObjectsForGeneByCursor(Gene gene, Cursor cursor, int limit, boolean useGene2Cs) Cursor-mode counterpart toCompositeSequenceService.loadValueObjectsForGene(Gene, int, int, boolean)— seeCURSOR_PAGINATION_STEP1_PLAN.mdstep 1m.Include gene mapping summary in theCompositeSequenceValueObject.voidremove(Collection<CompositeSequence> sequencesToDelete) thaw(Collection<CompositeSequence> compositeSequences) thaw(CompositeSequence compositeSequence) Methods inherited from class AbstractFilteringVoEnabledService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery, load, load, loadAllValueObjects, loadIds, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjects, loadValueObjects, loadValueObjectsByCursor, loadValueObjectsByIdsMethods inherited from class AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, remove, save, save, streamAll, streamAll, update, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseImmutableService
createMethods inherited from interface BaseReadOnlyService
countAll, findOrFail, getElementClass, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface BaseService
save, save, updateMethods inherited from interface BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from interface CompositeSequenceService
create, find, findOrCreate, load, remove, updateMethods inherited from interface FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery, load, load, loadIdsMethods inherited from interface FilteringVoEnabledService
loadValueObjects, loadValueObjects, loadValueObjectsByCursor
-
Constructor Details
-
CompositeSequenceServiceImpl
@Autowired public CompositeSequenceServiceImpl(CompositeSequenceDao compositeSequenceDao, BioSequenceService bioSequenceService, GeneProductService geneProductService, BlatResultService blatResultService, ArrayDesignService arrayDesignService, CompositeSequenceReadService compositeSequenceReadService)
-
-
Method Details
-
findByBioSequence
- Specified by:
findByBioSequencein interfaceCompositeSequenceService
-
findByBioSequenceName
- Specified by:
findByBioSequenceNamein interfaceCompositeSequenceService
-
findByGene
- Specified by:
findByGenein interfaceCompositeSequenceService
-
loadValueObjectWithGeneMappingSummary
@Transactional(readOnly=true) public CompositeSequenceValueObject loadValueObjectWithGeneMappingSummary(CompositeSequence cs) Description copied from interface:CompositeSequenceServiceInclude gene mapping summary in theCompositeSequenceValueObject.- Specified by:
loadValueObjectWithGeneMappingSummaryin interfaceCompositeSequenceService
-
loadValueObjectsForGene
@Transactional(readOnly=true) public Slice<CompositeSequenceValueObject> loadValueObjectsForGene(Gene gene, int start, int limit, boolean useGene2Cs) - Specified by:
loadValueObjectsForGenein interfaceCompositeSequenceService
-
loadValueObjectsForGeneByCursor
@Transactional(readOnly=true) public CursorPage<CompositeSequenceValueObject> loadValueObjectsForGeneByCursor(Gene gene, @Nullable Cursor cursor, int limit, boolean useGene2Cs) Description copied from interface:CompositeSequenceServiceCursor-mode counterpart toCompositeSequenceService.loadValueObjectsForGene(Gene, int, int, boolean)— seeCURSOR_PAGINATION_STEP1_PLAN.mdstep 1m. Always sorts by ascendingcs.id(the primary key, indexed and unique); the cursor DAO restricts cursors to single-component id sorts until the index audit lands.Same value-object shape as the offset variant: the per-row
CompositeSequenceValueObjectcarries theArrayDesignVO populated via a singleloadValueObjectscall over the platforms touched by the page (matching the offset implementation).- Specified by:
loadValueObjectsForGeneByCursorin interfaceCompositeSequenceService- See Also:
-
findByGene
public Collection<CompositeSequence> findByGene(Gene gene, ArrayDesign arrayDesign, boolean useGene2Cs) - Specified by:
findByGenein interfaceCompositeSequenceService
-
findByGenes
public Map<Gene, Collection<CompositeSequence>> findByGenes(Collection<Gene> genes, boolean useGene2Cs) - Specified by:
findByGenesin interfaceCompositeSequenceService
-
findByGenes
public Map<Gene, Collection<CompositeSequence>> findByGenes(Collection<Gene> genes, ArrayDesign arrayDesign, boolean useGene2Cs) - Specified by:
findByGenesin interfaceCompositeSequenceService
-
findByName
- Specified by:
findByNamein interfaceCompositeSequenceService
-
findByName
- Specified by:
findByNamein interfaceCompositeSequenceService
-
findByNamesInArrayDesigns
public Collection<CompositeSequence> findByNamesInArrayDesigns(Collection<String> compositeSequenceNames, Collection<ArrayDesign> arrayDesigns) Checks to see if the CompositeSequence exists in any of the array designs. If so, it is internally stored in the collection of composite sequences as a HashSet, preserving order based on insertion.- Specified by:
findByNamesInArrayDesignsin interfaceCompositeSequenceService
-
getGenes
public Map<CompositeSequence, Collection<Gene>> getGenes(Collection<CompositeSequence> sequences, boolean useGene2Cs) - Specified by:
getGenesin interfaceCompositeSequenceService
-
getGenes
- Specified by:
getGenesin interfaceCompositeSequenceService
-
getGenes
public Slice<Gene> getGenes(CompositeSequence compositeSequence, int offset, int limit, boolean useGene2Cs) - Specified by:
getGenesin interfaceCompositeSequenceService
-
getGenesByCursor
public CursorPage<Gene> getGenesByCursor(CompositeSequence compositeSequence, @Nullable Cursor cursor, int limit, boolean useGene2Cs) Description copied from interface:CompositeSequenceServiceCursor-mode counterpart toCompositeSequenceService.getGenes(CompositeSequence, int, int, boolean)— seeCURSOR_PAGINATION_STEP1_PLAN.mdstep 1l. Always sorts by ascendinggene.id(the primary key, indexed and unique); the cursor DAO restricts cursors to single-component id sorts until the index audit lands.- Specified by:
getGenesByCursorin interfaceCompositeSequenceService- See Also:
-
getGenesWithSpecificity
public Map<CompositeSequence, Collection<BioSequence2GeneProduct>> getGenesWithSpecificity(Collection<CompositeSequence> compositeSequences) - Specified by:
getGenesWithSpecificityin interfaceCompositeSequenceService- Parameters:
compositeSequences- sequences- Returns:
- a map of CompositeSequences to collection of BioSequence2GeneProducts at each location.
-
getRawSummary
- Specified by:
getRawSummaryin interfaceCompositeSequenceService
-
getRawSummary
- Specified by:
getRawSummaryin interfaceCompositeSequenceService
-
getGeneMappingSummary
@Transactional(readOnly=true) public Collection<GeneMappingSummary> getGeneMappingSummary(BioSequence biologicalCharacteristic, @Nullable CompositeSequenceValueObject cs) - Specified by:
getGeneMappingSummaryin interfaceCompositeSequenceService
-
thaw
- Specified by:
thawin interfaceCompositeSequenceService
-
thaw
- Specified by:
thawin interfaceCompositeSequenceService
-
getSequenceData
public Map<Long, CompositeSequenceDao.BioSequenceLite> getSequenceData(Collection<Long> compositeSequenceIds) - Specified by:
getSequenceDatain interfaceCompositeSequenceService- See Also:
-
getGeneData
- Specified by:
getGeneDatain interfaceCompositeSequenceService- See Also:
-
findIdsByGeneIds
- Specified by:
findIdsByGeneIdsin interfaceCompositeSequenceService- See Also:
-
remove
- Specified by:
removein interfaceBaseImmutableService<CompositeSequence>- Overrides:
removein classAbstractService<CompositeSequence>- See Also:
-