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 ubic.gemma.persistence.service.AbstractService
log
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeSequenceServiceImpl
(CompositeSequenceDao compositeSequenceDao, BioSequenceService bioSequenceService, GeneProductService geneProductService, BlatResultService blatResultService, ArrayDesignService arrayDesignService) -
Method Summary
Modifier and TypeMethodDescriptionfindByBioSequence
(BioSequence bioSequence) findByBioSequenceName
(String name) findByGene
(Gene gene) findByGene
(Gene gene, ArrayDesign arrayDesign) 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.getGeneMappingSummary
(BioSequence biologicalCharacteristic, CompositeSequenceValueObject cs) getGenes
(Collection<CompositeSequence> sequences) Given a Collection of composite sequences returns of map of a composite sequence to a collection of genesgetGenes
(CompositeSequence compositeSequence) getGenes
(CompositeSequence compositeSequence, int offset, int limit) getGenesWithSpecificity
(Collection<CompositeSequence> compositeSequences) Collection
<Object[]> getRawSummary
(Collection<CompositeSequence> compositeSequences) Collection
<Object[]> getRawSummary
(ArrayDesign arrayDesign, int numResults) loadValueObjectsForGene
(Gene gene, int start, int limit) Include gene mapping summary in theCompositeSequenceValueObject
.void
remove
(Collection<CompositeSequence> sequencesToDelete) Removes all the given entities from persistent storage.thaw
(Collection<CompositeSequence> compositeSequences) thaw
(CompositeSequence compositeSequence) Methods inherited from class ubic.gemma.persistence.service.AbstractFilteringVoEnabledService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getIdentifierPropertyName, getSort, load, load, loadAllValueObjects, loadIds, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjects, loadValueObjects, loadValueObjectsByIds
Methods inherited from class ubic.gemma.persistence.service.AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, remove, remove, save, save, streamAll, streamAll, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, remove
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, findOrFail, getElementClass, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
Methods inherited from interface ubic.gemma.persistence.service.BaseService
save, save, update
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
Methods inherited from interface ubic.gemma.persistence.service.expression.designElement.CompositeSequenceService
create, find, findOrCreate, load, remove, update
Methods inherited from interface ubic.gemma.persistence.service.FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getIdentifierPropertyName, getSort, load, load, loadIds
Methods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledService
loadValueObjects, loadValueObjects
-
Constructor Details
-
CompositeSequenceServiceImpl
@Autowired public CompositeSequenceServiceImpl(CompositeSequenceDao compositeSequenceDao, BioSequenceService bioSequenceService, GeneProductService geneProductService, BlatResultService blatResultService, ArrayDesignService arrayDesignService)
-
-
Method Details
-
findByBioSequence
@Transactional(readOnly=true) public Collection<CompositeSequence> findByBioSequence(BioSequence bioSequence) - Specified by:
findByBioSequence
in interfaceCompositeSequenceService
-
findByBioSequenceName
@Transactional(readOnly=true) public Collection<CompositeSequence> findByBioSequenceName(String name) - Specified by:
findByBioSequenceName
in interfaceCompositeSequenceService
-
findByGene
- Specified by:
findByGene
in interfaceCompositeSequenceService
-
loadValueObjectWithGeneMappingSummary
@Transactional(readOnly=true) public CompositeSequenceValueObject loadValueObjectWithGeneMappingSummary(CompositeSequence cs) Description copied from interface:CompositeSequenceService
Include gene mapping summary in theCompositeSequenceValueObject
.- Specified by:
loadValueObjectWithGeneMappingSummary
in interfaceCompositeSequenceService
-
loadValueObjectsForGene
@Transactional(readOnly=true) public Slice<CompositeSequenceValueObject> loadValueObjectsForGene(Gene gene, int start, int limit) - Specified by:
loadValueObjectsForGene
in interfaceCompositeSequenceService
-
findByGene
@Transactional(readOnly=true) public Collection<CompositeSequence> findByGene(Gene gene, ArrayDesign arrayDesign) - Specified by:
findByGene
in interfaceCompositeSequenceService
-
findByName
- Specified by:
findByName
in interfaceCompositeSequenceService
-
findByName
@Transactional(readOnly=true) public CompositeSequence findByName(ArrayDesign arrayDesign, String name) - Specified by:
findByName
in interfaceCompositeSequenceService
-
findByNamesInArrayDesigns
@Transactional(readOnly=true) 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:
findByNamesInArrayDesigns
in interfaceCompositeSequenceService
-
getGenes
@Transactional(readOnly=true) public Map<CompositeSequence,Collection<Gene>> getGenes(Collection<CompositeSequence> sequences) Description copied from interface:CompositeSequenceService
Given a Collection of composite sequences returns of map of a composite sequence to a collection of genes- Specified by:
getGenes
in interfaceCompositeSequenceService
- Parameters:
sequences
- sequences- Returns:
- map
-
getGenes
- Specified by:
getGenes
in interfaceCompositeSequenceService
-
getGenes
@Transactional(readOnly=true) public Slice<Gene> getGenes(CompositeSequence compositeSequence, int offset, int limit) - Specified by:
getGenes
in interfaceCompositeSequenceService
-
getGenesWithSpecificity
@Transactional(readOnly=true) public Map<CompositeSequence,Collection<BioSequence2GeneProduct>> getGenesWithSpecificity(Collection<CompositeSequence> compositeSequences) - Specified by:
getGenesWithSpecificity
in interfaceCompositeSequenceService
- Parameters:
compositeSequences
- sequences- Returns:
- a map of CompositeSequences to collection of BioSequence2GeneProducts at each location.
-
getRawSummary
@Transactional(readOnly=true) public Collection<Object[]> getRawSummary(Collection<CompositeSequence> compositeSequences) - Specified by:
getRawSummary
in interfaceCompositeSequenceService
-
getRawSummary
@Transactional(readOnly=true) public Collection<Object[]> getRawSummary(ArrayDesign arrayDesign, int numResults) - Specified by:
getRawSummary
in interfaceCompositeSequenceService
-
getGeneMappingSummary
@Transactional(readOnly=true) public Collection<GeneMappingSummary> getGeneMappingSummary(BioSequence biologicalCharacteristic, @Nullable CompositeSequenceValueObject cs) - Specified by:
getGeneMappingSummary
in interfaceCompositeSequenceService
-
thaw
@Transactional(readOnly=true) public Collection<CompositeSequence> thaw(Collection<CompositeSequence> compositeSequences) - Specified by:
thaw
in interfaceCompositeSequenceService
-
thaw
- Specified by:
thaw
in interfaceCompositeSequenceService
-
remove
Description copied from interface:BaseImmutableService
Removes all the given entities from persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<CompositeSequence>
- Overrides:
remove
in classAbstractService<CompositeSequence>
- Parameters:
sequencesToDelete
- the entities to be removed.
-