Interface CompositeSequenceService
- All Superinterfaces:
BaseImmutableService<CompositeSequence>,BaseReadOnlyService<CompositeSequence>,BaseService<CompositeSequence>,BaseVoEnabledService<CompositeSequence,,CompositeSequenceValueObject> FilteringService<CompositeSequence>,FilteringVoEnabledService<CompositeSequence,CompositeSequenceValueObject>
- All Known Implementing Classes:
CompositeSequenceServiceImpl
public interface CompositeSequenceService
extends BaseService<CompositeSequence>, FilteringVoEnabledService<CompositeSequence,CompositeSequenceValueObject>
- Author:
- paul
-
Method Summary
Modifier and TypeMethodDescriptioncreate(CompositeSequence compositeSequence) Creates the given entity in the persistent storage.find(CompositeSequence compositeSequence) Does a search for the entity in the persistent storagefindByBioSequence(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) findOrCreate(CompositeSequence compositeSequence) Does a search for the entity in the persistent storage, and if not found, creates it.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) load(Collection<Long> ids) Loads objects with given ids.loadValueObjectsForGene(Gene gene, int start, int limit) Include gene mapping summary in theCompositeSequenceValueObject.voidremove(CompositeSequence compositeSequence) Removes the given entity from the persistent storage.thaw(Collection<CompositeSequence> compositeSequences) thaw(CompositeSequence compositeSequence) voidupdate(CompositeSequence compositeSequence) Updates the given entity in the persistent storage.Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, remove, 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.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
-
Method Details
-
find
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) CompositeSequence find(CompositeSequence compositeSequence) Description copied from interface:BaseReadOnlyServiceDoes a search for the entity in the persistent storage- Specified by:
findin interfaceBaseReadOnlyService<CompositeSequence>- Parameters:
compositeSequence- the entity to be searched for- Returns:
- the version of entity retrieved from the persistent storage, if found, otherwise null.
-
findOrCreate
Description copied from interface:BaseImmutableServiceDoes a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreatein interfaceBaseImmutableService<CompositeSequence>- Parameters:
compositeSequence- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
create
Description copied from interface:BaseImmutableServiceCreates the given entity in the persistent storage.- Specified by:
createin interfaceBaseImmutableService<CompositeSequence>- Parameters:
compositeSequence- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
load
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> load(Collection<Long> ids) Description copied from interface:BaseReadOnlyServiceLoads objects with given ids.- Specified by:
loadin interfaceBaseReadOnlyService<CompositeSequence>- Parameters:
ids- the ids of objects to be loaded.- Returns:
- collection containing object with given IDs.
-
remove
Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<CompositeSequence>- Parameters:
compositeSequence- the entity to be removed.
-
update
Description copied from interface:BaseServiceUpdates the given entity in the persistent storage.- Specified by:
updatein interfaceBaseService<CompositeSequence>- Parameters:
compositeSequence- the entity to be updated.
-
findByBioSequence
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> findByBioSequence(BioSequence bioSequence) -
findByBioSequenceName
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> findByBioSequenceName(String name) -
findByGene
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> findByGene(Gene gene) -
loadValueObjectWithGeneMappingSummary
@Nullable @Transactional(readOnly=true) CompositeSequenceValueObject loadValueObjectWithGeneMappingSummary(CompositeSequence cs) Include gene mapping summary in theCompositeSequenceValueObject. -
loadValueObjectsForGene
-
findByGene
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> findByGene(Gene gene, ArrayDesign arrayDesign) -
findByName
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> findByName(String name) -
findByName
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_READ"}) CompositeSequence findByName(ArrayDesign arrayDesign, String name) -
findByNamesInArrayDesigns
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> findByNamesInArrayDesigns(Collection<String> compositeSequenceNames, Collection<ArrayDesign> arrayDesigns) -
getGenes
Given a Collection of composite sequences returns of map of a composite sequence to a collection of genes- Parameters:
sequences- sequences- Returns:
- map
-
getGenes
-
getGenes
-
getGenesWithSpecificity
Map<CompositeSequence,Collection<BioSequence2GeneProduct>> getGenesWithSpecificity(Collection<CompositeSequence> compositeSequences) - Parameters:
compositeSequences- sequences- Returns:
- a map of CompositeSequences to collection of BioSequence2GeneProducts at each location.
-
getRawSummary
-
getRawSummary
-
getGeneMappingSummary
Collection<GeneMappingSummary> getGeneMappingSummary(BioSequence biologicalCharacteristic, @Nullable CompositeSequenceValueObject cs) -
thaw
@CheckReturnValue Collection<CompositeSequence> thaw(Collection<CompositeSequence> compositeSequences) -
thaw
-