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.voidremove(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, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery, load, load, loadAllValueObjects, loadIds, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjects, loadValueObjects, loadValueObjectsByIdsMethods inherited from class ubic.gemma.persistence.service.AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, remove, remove, save, save, streamAll, streamAll, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, removeMethods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, findOrFail, getElementClass, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface ubic.gemma.persistence.service.BaseService
save, save, updateMethods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from interface ubic.gemma.persistence.service.expression.designElement.CompositeSequenceService
create, find, findOrCreate, load, remove, updateMethods inherited from interface ubic.gemma.persistence.service.FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery, load, load, loadIdsMethods 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:
findByBioSequencein interfaceCompositeSequenceService
-
findByBioSequenceName
@Transactional(readOnly=true) public Collection<CompositeSequence> findByBioSequenceName(String name) - 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) - Specified by:
loadValueObjectsForGenein interfaceCompositeSequenceService
-
findByGene
@Transactional(readOnly=true) public Collection<CompositeSequence> findByGene(Gene gene, ArrayDesign arrayDesign) - Specified by:
findByGenein interfaceCompositeSequenceService
-
findByName
- Specified by:
findByNamein interfaceCompositeSequenceService
-
findByName
@Transactional(readOnly=true) public CompositeSequence findByName(ArrayDesign arrayDesign, String name) - Specified by:
findByNamein 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:
findByNamesInArrayDesignsin interfaceCompositeSequenceService
-
getGenes
@Transactional(readOnly=true) public Map<CompositeSequence,Collection<Gene>> getGenes(Collection<CompositeSequence> sequences) Description copied from interface:CompositeSequenceServiceGiven a Collection of composite sequences returns of map of a composite sequence to a collection of genes- Specified by:
getGenesin interfaceCompositeSequenceService- Parameters:
sequences- sequences- Returns:
- map
-
getGenes
- Specified by:
getGenesin interfaceCompositeSequenceService
-
getGenes
@Transactional(readOnly=true) public Slice<Gene> getGenes(CompositeSequence compositeSequence, int offset, int limit) - Specified by:
getGenesin interfaceCompositeSequenceService
-
getGenesWithSpecificity
@Transactional(readOnly=true) 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
@Transactional(readOnly=true) public Collection<Object[]> getRawSummary(Collection<CompositeSequence> compositeSequences) - Specified by:
getRawSummaryin interfaceCompositeSequenceService
-
getRawSummary
@Transactional(readOnly=true) public Collection<Object[]> getRawSummary(ArrayDesign arrayDesign, int numResults) - Specified by:
getRawSummaryin interfaceCompositeSequenceService
-
getGeneMappingSummary
@Transactional(readOnly=true) public Collection<GeneMappingSummary> getGeneMappingSummary(BioSequence biologicalCharacteristic, @Nullable CompositeSequenceValueObject cs) - Specified by:
getGeneMappingSummaryin interfaceCompositeSequenceService
-
thaw
@Transactional(readOnly=true) public Collection<CompositeSequence> thaw(Collection<CompositeSequence> compositeSequences) - Specified by:
thawin interfaceCompositeSequenceService
-
thaw
- Specified by:
thawin interfaceCompositeSequenceService
-
remove
Description copied from interface:BaseImmutableServiceRemoves all the given entities from persistent storage.- Specified by:
removein interfaceBaseImmutableService<CompositeSequence>- Overrides:
removein classAbstractService<CompositeSequence>- Parameters:
sequencesToDelete- the entities to be removed.
-